Opened 18 years ago
Closed 17 years ago
#4059 closed (invalid)
Adding django.contrib.databrowse to INSTALLED_APPS cause error.
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Contrib apps | Version: | 0.96 |
Severity: | Keywords: | databrowse | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django.contrib.databrowse has no models.py
After adding django.contrib.databrwose to INSTALLED_APPS, running ./manage.py syncdb, ./manage.py runserver, ... raises following exception.
AttributeError: 'module' object has no attribute 'databrowse'
IMHO, following 2 solutions are possible.
- Adding models.py to django.contrib.databrowse
- Or modify documentation; remove following lines from docs/databrowse.txt
* Add ``'django.contrib.databrowse'`` to your ``INSTALLED_APPS`` setting. This will work if your ``TEMPLATE_LOADERS`` setting includes the ``app_directories`` template loader (which is the case by default). See the `template loader docs`_ for more.}}}
Change History (4)
comment:1 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:3 by , 17 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Version: | SVN → 0.96 |
Same problem this is my stack trace:
Traceback (most recent call last): File "./manage.py", line 11, in <module> execute_manager(settings) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1672, in execute_manager execute_from_command_line(action_mapping, argv) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1564, in execute_from_command_line translation.activate('en-us') File "/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 208, in activate _active[currentThread()] = translation(language) File "/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 197, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 180, in _fetch app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:]) AttributeError: 'module' object has no attribute 'databrowse'
If I set USE_I18N = False
then I have this output when I run ./manage validate
:
django.contrib.databrowse: No module named databrowse 1 error found
comment:4 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
Hmmm, it works for me...