App level settings not showing up anywhere.
ZackPlauche opened this issue · 1 comments
ZackPlauche commented
- I installed the package into my environment
pip install django-dbsettings
- I installed it into my settings
`INSTALLED_APPS = [ ..., 'dbsettings'] - I configured the urlpattern for it
path('admin/settings/', include('dbsettings.urls')),
and triedpath('settings/', include('dbsettings.urls')),
- In my models for my base app I have
# base/models.py
import dbsettings
...
class SiteSettings(dbsettings.Group):
company_name = dbsettings.StringValue(default='Your Company Name')
site_settings = SiteSettings()
class MyModel(models.Model):
name = models.CharField(default='blah')
def __str__(self):
return self.name
- I did
python manage.py migrate
and the settings model registered.
And when I go to 127.0.0.1:8000/admin/settings/
or 127.0.0.1:8000/settings/
, it just says the app name Base
with the button Save
with no items or settings to select.
Did I do something wrong?
If so (or not), can you please make it clearer in the instructions how to set app level settings?
ZackPlauche commented
Closing because of fix on #56 . Still should be fixed by default.