add all apps, still blank

This commit is contained in:
erichhasl
2017-11-18 14:47:44 +01:00
parent 72135d654f
commit c5c35759e0
18 changed files with 71 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
from django.core.urlresolvers import resolve
def appname(request):
return {'appname': resolve(request.path).app_name}
+3
View File
@@ -43,6 +43,8 @@ USE_X_FORWARDED_HOST = True
# Application definition
INSTALLED_APPS = (
'datenbank',
'meingoethopia',
'startpage',
'django.contrib.admin',
'django.contrib.auth',
@@ -76,6 +78,7 @@ TEMPLATES = [
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'sas_web.contexts.appname',
],
},
},
+6 -1
View File
@@ -17,6 +17,11 @@ from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^$', include('startpage.urls')),
url(r'^$', include('startpage.urls', namespace='startpage', app_name='startpage')),
url(r'^meingoethopia', include('meingoethopia.urls',
namespace='meingoethopia',
app_name='meingoethopia')),
url(r'^datenbank', include('datenbank.urls', app_name='datenbank',
namespace='datenbank')),
url(r'^admin/', include(admin.site.urls)),
]