Closed managingwholes closed 8 years ago
It looks like rest.router.urls
still doesn't support use without the include statement. It doesn't hurt to have it there, but it would be nice to be consistent with the new admin usage. I made a note in wq/wq.db#55.
I've begun configuring admin, wanting to be able to edit data and data types from admin, and added an admin.py to obs directory as follows:
I also modified urls.py as recommended here https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf (note that in Django 1.9 the include statement is not needed):
When I ran migrate I got the following error, and the admin interface did not include links to Sites, Observations, or ObservationTypes:
pdonovan@atlasbiowork:/var/www/atlasbiowork/db$ ./manage.py migrate