Code

Opened 7 years ago

Closed 7 years ago

#3477 closed (fixed)

Changeset 4485 broke django?

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

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.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.