Use a markdown editor

This commit is contained in:
2022-08-22 18:16:59 +02:00
parent 0fe0644d1b
commit 7cc917d9f7
7 changed files with 95 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
"""
import os
import time
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -45,6 +46,7 @@ INSTALLED_APPS = [
"adminsortable2",
"django_countries",
"solo",
"martor",
"rest_framework",
"ram",
"portal",
@@ -140,6 +142,11 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
MEDIA_URL = "media/"
MEDIA_ROOT = STORAGE_DIR / "media"
MARTOR_UPLOAD_PATH = "images/uploads/{}".format(time.strftime("%Y/%m/%d/"))
MARTOR_UPLOAD_URL = "/portal/uploader/"
MAX_IMAGE_UPLOAD_SIZE = 5242880 # 5MB
COUNTRIES_OVERRIDE = {
"ZZ": "Freelance",
}