Create basic admin site

This commit is contained in:
Gergely Polonkai 2014-12-23 10:39:56 +01:00 committed by Gergely Polonkai
parent 4d9f4242e3
commit c7722c418a
2 changed files with 15 additions and 0 deletions

11
booking/admin.py Normal file
View File

@ -0,0 +1,11 @@
from django.contrib import admin
from booking.models import Species, Location, Competence, Duck, Booking, DuckCompetence, DuckName, DuckNameVote
admin.site.register(Species)
admin.site.register(Location)
admin.site.register(Competence)
admin.site.register(Duck)
admin.site.register(Booking)
admin.site.register(DuckCompetence)
admin.site.register(DuckName)
admin.site.register(DuckNameVote)

View File

@ -1,7 +1,11 @@
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
'',
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('accounts.urls', namespace = 'accounts')),
url('', include('booking.urls', namespace = 'booking')),
)