mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔧 Register models in the admin page
This commit is contained in:
parent
476d2b6b0e
commit
1c28a89dfa
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
from . import models
|
||||||
|
|
||||||
# Register your models here.
|
|
||||||
|
admin.site.register(models.Project)
|
||||||
|
admin.site.register(models.DataSource)
|
||||||
|
|
|
@ -39,7 +39,7 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
'sophon.core',
|
'sophon.core', # FIXME: Is .apps.CoreConfig not needed?
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
|
Loading…
Reference in a new issue