From 28cdd7c3c427cc17e75b19da82f7c6731bc80541 Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Fri, 3 Feb 2023 16:57:51 +0100 Subject: [PATCH] Setup tinymce integration --- project/settings.py | 3 +-- project/urls.py | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/project/settings.py b/project/settings.py index 9c4581f..2941df5 100644 --- a/project/settings.py +++ b/project/settings.py @@ -60,9 +60,8 @@ INSTALLED_APPS = [ "cms", "menus", "treebeard", - # "oauth2_provider", - # "mfa", "taggit", + "tinymce", ] MIDDLEWARE = [ diff --git a/project/urls.py b/project/urls.py index 9e2c772..4a9e96e 100644 --- a/project/urls.py +++ b/project/urls.py @@ -13,18 +13,19 @@ Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ +from django.conf import settings +from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path -# from froide_govplan.admin import govplan_admin_site - urlpatterns = [ path( "follow/", include("froide.follow.urls", namespace="follow"), ), - # path("account/", include("froide.account.urls")), -] + [ path("admin/", admin.site.urls), path("", include("cms.urls")), ] + +if settings.DEBUG: + urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)