Browse Source

DJDT opet funkcni.

mamweb/urls.py preveden na tabulatory.
export_seznamu_prednasek
parent
commit
7b9db7c533
  1. 1
      mamweb/settings_local.py
  2. 3
      mamweb/urls.py
  3. 4
      requirements.txt

1
mamweb/settings_local.py

@ -24,6 +24,7 @@ INSTALLED_APPS += (
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
INTERNAL_IPS = ['127.0.0.1']
TEMPLATES[0]['OPTIONS']['debug'] = True TEMPLATES[0]['OPTIONS']['debug'] = True

3
mamweb/urls.py

@ -1,5 +1,4 @@
from django.urls import path, include from django.urls import path, include
from django.conf.urls.i18n import i18n_patterns
from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin from django.contrib import admin
from django.conf import settings from django.conf import settings
@ -31,8 +30,10 @@ urlpatterns = [
# This is only needed when using runserver. # This is only needed when using runserver.
if settings.DEBUG: if settings.DEBUG:
import debug_toolbar
urlpatterns += [ urlpatterns += [
path('media/<path:path>', views.static.serve, # NOQA path('media/<path:path>', views.static.serve, # NOQA
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
path('__debug__/', include(debug_toolbar.urls)),
] ]
urlpatterns += staticfiles_urlpatterns() urlpatterns += staticfiles_urlpatterns()

4
requirements.txt

@ -28,13 +28,13 @@ django-imagekit
# Comments # Comments
akismet==1.0.1 akismet==1.0.1
django-fluent-comments==2.0.2 django-fluent-comments==2.1
django-threadedcomments==1.2 django-threadedcomments==1.2
django-contrib-comments==1.9.0 django-contrib-comments==1.9.0
# debug tools/extensions # debug tools/extensions
django-debug-toolbar==1.9.1 django-debug-toolbar==1.11
django-extensions==2.1.9 django-extensions==2.1.9
sqlparse==0.2.4 sqlparse==0.2.4
Werkzeug==0.14.1 Werkzeug==0.14.1

Loading…
Cancel
Save