mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 23:04:21 +00:00
🔧 Register models in the admin page
This commit is contained in:
parent
9567e4d5a3
commit
ba13da2d31
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