Register models with django-admin
This commit is contained in:
parent
b266da63b2
commit
03812ecf93
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
from django.contrib import admin
|
||||
from .models import *
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(Person)
|
||||
admin.site.register(Resource)
|
||||
admin.site.register(Range)
|
||||
admin.site.register(Method)
|
||||
admin.site.register(Scale)
|
||||
admin.site.register(Taxon)
|
||||
admin.site.register(Field)
|
||||
|
|
|
@ -58,10 +58,11 @@ def get_paginated(query, request):
|
|||
|
||||
urlpatterns = [
|
||||
path('', HomePageView.as_view(), name='home'),
|
||||
path('offline', OfflinePageView.as_view(), name='offline'),
|
||||
path('offline/', OfflinePageView.as_view(), name='offline'),
|
||||
path('geodata/<path:path>/', send_from_file, name='send_geodata_file'),
|
||||
path('data/<path:path>', send_from_file, name='send_data_file'),
|
||||
path('demo', DemoPageView.as_view(), name='demo'),
|
||||
path('demo/', DemoPageView.as_view(), name='demo'),
|
||||
path('admin/', admin.site.urls, name='demo'),
|
||||
|
||||
# TODO Implement the following
|
||||
# path('reindex/', admin.site.urls),
|
||||
|
|
Loading…
Reference in a new issue