Skip to content

Instantly share code, notes, and snippets.

@nathans
Created July 5, 2010 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathans/464822 to your computer and use it in GitHub Desktop.
Save nathans/464822 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName api.ossandbox.info
ServerAdmin nathan@ndansmith.net
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE openscriptures.settings
PythonDebug On
PythonPath "['/home/ndansmith/django', '/home/ndansmith/django/openscriptures'] + sys.path"
Allow from all
</Location>
</VirtualHost>
@paltman
Copy link

paltman commented Jul 5, 2010

is there still a settings.py in /home/ndansmith/django/openscriptures?

if so, i wonder if putting this at the stop of it would help:

import sys
sys.path.append(os.path.abspath(os.curdir))
sys.path.append(os.path.abspath(os.pardir))

@nathans
Copy link
Author

nathans commented Jul 6, 2010

Yes, there is a settings file. The actual apps are currently in /home/ndansmith/django/openscriptures/api/openscriptures_api_*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment