zlorf/django-dbsettings

App level settings not showing up anywhere.

ZackPlauche opened this issue · 1 comments

  1. I installed the package into my environment
    pip install django-dbsettings
  2. I installed it into my settings
    `INSTALLED_APPS = [ ..., 'dbsettings']
  3. I configured the urlpattern for it
    path('admin/settings/', include('dbsettings.urls')), and tried path('settings/', include('dbsettings.urls')),
  4. 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
  1. 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.
image

Did I do something wrong?

If so (or not), can you please make it clearer in the instructions how to set app level settings?

Closing because of fix on #56 . Still should be fixed by default.