jaredly / jaredly/django-appsettings

AttributeError - 'Settings' object has no attribute 'mysetting'

Open
#11 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
88
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I have created a 'mysetting' in one of my apps.

register = appsettings.register('mysettings')

I can change the appsettings/ for my settings, but when I restart django, I get the following error:

AttributeError - 'Settings' object has no attribute 'mysetting'
appsettings/settingsobj.py in update_from_db
app = getattr(self, setting.app)

Contributor guide

No contributing guide indexed for this repository

Research direction

The report points to appsettings/settingsobj.py and update_from_db; start by reproducing the failure after a Django restart and tracing the registered setting through that method. Confirm the intended setting name and registration path, then verify the database-backed setting loads without AttributeError after restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.