Deploying django app on Apache mod_python -


I have finished creating a site in 'Django' named Django, and I am trying to deploy.

All the codes for the Zodiac site are in the home / git / DjangoProjects / kazbah and my httpd.conf looks like this:

  & lt; Place "/" & gt; SetHandler Python-program Python Handler DJencore. Handlers.modpython SetEnv DJANGO_SETTINGS_MODULE kazbah.settings PythonDebug PythonPath "['/ home / git / DjangoProjects'] + sys.path" & lt; / Location & gt;  

I get the following error:

importError: 'kazbah.settings' setting can not be imported (is it on sys.path? Is it syntax errors ?): A module called a module. Settings

Any idea why this name failed?

/ var / www / bbb (called "BBB") For a project that rests under, I have the following set in the configuration file:

  & lt; Place "/" & gt; SetHandler Python-Python Handler Django.Co. Handlers.modpython SetEnv DJANGO_SETTINGS_MODULE bbb.settings PythonPath "['/ var / www /', '/ var / www / bbb /'] + sys.path" on the Python Dube & lt; / Location & gt;  

Comments