Django

Code

Ticket #4110 (closed: duplicate)

Opened 2 years ago

Last modified 2 years ago

import settings.py errors

Reported by: stanislas.guerra@gmail.com Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords: mod_python pythonpath
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Using apache 2.2.x with mod_python 3.3.1, I was unable to get my project running with the configuration tips provided concerning the PYTHONPATH.

Instead of

PythonPath "['/path/to/project'] + sys.path"

I have to use :

PythonPath "['/path/to/project'] + sys.path"
PythonPath "['/path/to'] + sys.path"

My example of httpd.conf

<Location "/myproject/">
        SetHandler mod_python
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE myproject.settings
        PythonDebug On
        PythonPath "['/var/www/localhost/htdocs/myproject'] + sys.path"
        PythonPath "['/var/www/localhost/htdocs'] + sys.path"
</Location>

I need

Attachments

Change History

04/25/07 06:16:49 changed by Simon G. <dev@simon.net.nz>

  • status changed from new to closed.
  • needs_better_patch changed.
  • needs_tests changed.
  • version changed from 0.96 to SVN.
  • needs_docs changed.
  • resolution set to duplicate.

Yes, we should clarify this (c.f. #3842). If you're still having issues with this, please drop by the django-users mailing list and ask there.


Add/Change #4110 (import settings.py errors)




Change Properties
Action