Skip to content
Snippets Groups Projects
Commit a34d726f authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Init media dir

parent 4d9c28d0
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -221,3 +221,7 @@ AUTHENTICATION_BACKENDS = (
logger = logging.getLogger('django_auth_ldap')
logger.addHandler(logging.StreamHandler())
logger.setLevel(logging.DEBUG)
# Media
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
......@@ -20,36 +20,39 @@ from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
#############
# Dashboard #
#############
path('', include('dashboard.urls')),
########
# Auth #
########
path('accounts/', include('django.contrib.auth.urls')),
#######
# AUB #
#######
path('aub/', include('aub.urls')),
#############
# TIMETABLE #
#############
path('timetable/', include('timetable.urls')),
#############
# MEAL PLAN #
#############
path('mealplan/', include('mealplan.urls')),
#########
# Admin #
#########
path('settings/', include('dbsettings.urls')),
path('admin/', admin.site.urls),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
#handler404 = 'dashboard.views.error_404'
#############
# Dashboard #
#############
path('', include('dashboard.urls')),
########
# Auth #
########
path('accounts/', include('django.contrib.auth.urls')),
#######
# AUB #
#######
path('aub/', include('aub.urls')),
#############
# TIMETABLE #
#############
path('timetable/', include('timetable.urls')),
#############
# MEAL PLAN #
#############
path('mealplan/', include('mealplan.urls')),
#########
# Admin #
#########
path('settings/', include('dbsettings.urls')),
path('admin/', admin.site.urls),
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# handler404 = 'dashboard.views.error_404'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment