From 79adac907cfef1222e9b29b4feb3b2f71b660e30 Mon Sep 17 00:00:00 2001 From: maxbr Date: Mon, 12 Sep 2016 11:19:18 +0200 Subject: Add user info panel JIRA: PHAROS-264 Change-Id: I5404812a78755ce1026401b8dda1f0d167dc6fda Signed-off-by: maxbr --- tools/pharos-dashboard/pharos_dashboard/urls.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools/pharos-dashboard/pharos_dashboard/urls.py') diff --git a/tools/pharos-dashboard/pharos_dashboard/urls.py b/tools/pharos-dashboard/pharos_dashboard/urls.py index 26ab3677..d8bf5608 100644 --- a/tools/pharos-dashboard/pharos_dashboard/urls.py +++ b/tools/pharos-dashboard/pharos_dashboard/urls.py @@ -13,13 +13,18 @@ Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ +from django.conf import settings from django.conf.urls import url, include +from django.conf.urls.static import static from django.contrib import admin urlpatterns = [ url(r'^', include('dashboard.urls', namespace='dashboard')), url(r'^booking/', include('booking.urls', namespace='booking')), - url(r'^account/', include('account.urls', namespace='account')), + url(r'^accounts/', include('account.urls', namespace='account')), url(r'^admin/', admin.site.urls), -] \ No newline at end of file +] + +if settings.DEBUG is True: + urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file -- cgit 1.2.3-korg