mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-05 05:37:50 +02:00
Use a markdown editor
This commit is contained in:
@@ -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",
|
||||
}
|
||||
|
@@ -21,6 +21,7 @@ from django.urls import include, path
|
||||
|
||||
urlpatterns = [
|
||||
path("", lambda r: redirect("portal/")),
|
||||
path('martor/', include('martor.urls')),
|
||||
path("portal/", include("portal.urls")),
|
||||
path("ht/", include("health_check.urls")),
|
||||
path("admin/", admin.site.urls),
|
||||
|
Reference in New Issue
Block a user