Create basic admin site
This commit is contained in:
parent
4d9f4242e3
commit
c7722c418a
11
booking/admin.py
Normal file
11
booking/admin.py
Normal 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)
|
@ -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')),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user