Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If your settings.py is correct and has your correct INSTALLED_APPS and it works in the development server, then I'd say it's you Apache configuration file.</p> <p>Try running my python app to create Apache configuration files for mod_python + Django. The source is <a href="http://github.com/hughdbrown/Apache-conf/tree/master" rel="nofollow noreferrer">here</a> at github.com. Once you have a working configuration file, you can modify it.</p> <p>Run like this:</p> <pre><code>C:\Users\hughdbrown\Documents\django\Apache-conf&gt;python http_conf_gen.py --flavor=mod_python --source_dir=. --server_name=foo.com --project_name=foo Writing 'foo.vhost.python.conf' </code></pre> <p>Result looks like this:</p> <pre><code># apache_template.txt NameVirtualHost *:80 &lt;VirtualHost *:80&gt; ServerAdmin webmaster@foo.com ServerName foo.com DocumentRoot "./foo/" &lt;Location "/"&gt; # without this, you'll get 403 permission errors # Apache - "Client denied by server configuration" allow from all SetHandler python-program PythonHandler django.core.handlers.modpython PythonOption django.root /foo PythonDebug On PythonPath "[os.path.normpath(s) for s in (r'.', r'C:\Python26\lib\site-packages\django') ] + sys.path" SetEnv DJANGO_SETTINGS_MODULE foo.settings PythonAutoReload Off &lt;/Location&gt; &lt;Location "/media" &gt; SetHandler None allow from all &lt;/Location&gt; &lt;Location "/site-media" &gt; SetHandler None allow from all &lt;/Location&gt; &lt;LocationMatch "\.(jpg|gif|png)$"&gt; SetHandler None allow from all &lt;/LocationMatch&gt; &lt;/VirtualHost&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload