Code

Opened 7 years ago

Closed 7 years ago

#4110 closed (duplicate)

import settings.py errors

Reported by: stanislas.guerra@… Owned by: jacob
Component: Documentation Version: master
Severity: Keywords: mod_python pythonpath
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (0)

Change History (1)

comment:1 Changed 7 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version changed from 0.96 to SVN

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 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.