diff --git a/billard/templates/billard/base.html b/billard/templates/billard/base.html index 137ddb3..b88fc67 100644 --- a/billard/templates/billard/base.html +++ b/billard/templates/billard/base.html @@ -28,9 +28,9 @@
Code | +Name | +Strasse | +Plz | +Ort | +
---|---|---|---|---|
{{ loc.code }} | +{{ loc.name }} | +{{ loc.street }} | +{{ loc.plz }} | +{{ loc.city }} | +
Keine Standorte Zugeordnet.
+{% endif %} + +{% endblock %} diff --git a/billard/urls.py b/billard/urls.py index c61e51c..020de52 100644 --- a/billard/urls.py +++ b/billard/urls.py @@ -1,16 +1,27 @@ from django.conf.urls import url, include +from django.contrib.auth.decorators import login_required from rest_framework import routers from billard import views router = routers.DefaultRouter() router.register(r'location_data', views.LocationDataViewSet) +app_name = 'billard' urlpatterns = [ - url(r'^$', views.index, name='carom_index'), - url(r'^(?P