Opened 18 years ago

Closed 18 years ago

#3477 closed (fixed)

Changeset 4485 broke django?

Reported by: Øyvind Saltvik <oyvind.saltvik@…> Owned by: Jacob
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

At revision 4484 all is ok. After svn up I get this traceback:

MOD_PYTHON ERROR

ProcessId:      54687
Interpreter:    'www.sapmievangelisten.org'

ServerName:     'www.sapmievangelisten.org'
DocumentRoot:   '/home/www/vhosts/www.sapmievangelisten.org/httpdocs'

URI:            '/admin/markdowneditor/image/'
Location:       '/'
Directory:      None
Filename:       '/home/www/vhosts/www.sapmievangelisten.org/httpdocs/admin'
PathInfo:       '/markdowneditor/image/'

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/local/lib/python2.4/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/local/lib/python2.4/site-packages/mod_python/importer.py", line 1202, in _process_target
    module = import_module(module_name, path=path)

  File "/usr/local/lib/python2.4/site-packages/mod_python/importer.py", line 304, in import_module
    return __import__(module_name, {}, {}, ['*'])

  File "/home/www/vhosts/django_newformsfile/django/core/handlers/modpython.py", line 1, in ?
    from django.core.handlers.base import BaseHandler

  File "/home/www/vhosts/django_newformsfile/django/core/handlers/base.py", line 3, in ?
    from django import http

  File "/home/www/vhosts/django_newformsfile/django/http/__init__.py", line 6, in ?
    from django.utils.translation import gettext as _
Showing traceback after svn up

  File "/home/www/vhosts/django_newformsfile/django/utils/translation/__init__.py", line 3, in ?
    if settings.USE_I18N:

  File "/home/www/vhosts/django_newformsfile/django/conf/__init__.py", line 27, in __getattr__
    self._import_settings()

  File "/home/www/vhosts/django_newformsfile/django/conf/__init__.py", line 52, in _import_settings
    raise EnvironmentError, "Environment variable %s is undefined." % ENVIRONMENT_VARIABLE

EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.

Change History (1)

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in [4486]. See this thread for the reason for the bug, if you're interested.

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