Opened 18 years ago

Closed 17 years ago

#4059 closed (invalid)

Adding django.contrib.databrowse to INSTALLED_APPS cause error.

Reported by: Jeong-Min Lee <falsetru@…> 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.

  1. Adding models.py to django.contrib.databrowse
  2. 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 Adrian Holovaty, 18 years ago

Resolution: worksforme
Status: newclosed

Hmmm, it works for me...

comment:2 by Simon G. <dev@…>, 18 years ago

Looks like it's a duplicate of #4058?

comment:3 by Giuseppe, 17 years ago

Resolution: worksforme
Status: closedreopened
Version: SVN0.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 Ramiro Morales, 17 years ago

Resolution: invalid
Status: reopenedclosed

The databrowse app is not included with Django 0.96, it was added on r5011 whilst 0.96 was tagged on r4810.

Note: See TracTickets for help on using tickets.
Back to Top