Commit d7f7127d authored by Falk, Dennis Nikolas's avatar Falk, Dennis Nikolas
Browse files

Static Seiten/Bilder werden jetzt auch im Debug=False Modus geliefert

parent a9dfad71
No preview for this file type
......@@ -19,6 +19,7 @@ from django.conf.urls.static import static
from django.conf import settings
from startpage import views
from django.conf.urls import url, include
from django.views.static import serve
urlpatterns = [
path('admin/',, name='admin_area'),
......@@ -26,6 +27,9 @@ urlpatterns = [
path('blog/', include('blog.urls')),
path('startpage/', include('startpage.urls')),
url(r'^ckeditor/', include('ckeditor_uploader.urls')),
url(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
url(r'^static/(?P<path>.*)$', serve, {'document_root': settings.STATIC_ROOT}),
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment