Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting django to work with apache/mod_wsgi... any ideas?
    primarykey
    data
    text
    <p>I have read several tutorials, but I just can't this to work. My apache config file looks like this (with the important few lines at the bottom):</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin webmaster@localhost DocumentRoot /var/www &lt;Directory /&gt; Options FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory /var/www/&gt; Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all &lt;/Directory&gt; ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ &lt;Directory "/usr/lib/cgi-bin"&gt; AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all &lt;/Directory&gt; ErrorLog /var/log/apache2/error.log LogLevel warn WSGIScriptAlias /wsgi/ /neuroling/projects/lnldb/lnldbproject/lnldb.wsgi &lt;Directory /neuroling/projects/lnldb/lnldbproject/&gt; Order allow,deny Allow from all &lt;/Directory&gt; </code></pre> <p>My lnldb.wsgi file looks like this:</p> <pre><code>import os import sys path = '/neuroling/projects/lnldb' if path not in sys.path: sys.path.append(path) path = '/neuroling/projects/lnldb/lnldbproject' if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'lnldbproject.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() </code></pre> <p>Now if I go to [MY_IP_ADDRESS]/wsgi with my broswer, I see this:</p> <p>Using the URLconf defined in lnldbproject.urls, Django tried these URL patterns, in this order: ^admin/ The current URL, , didn't match any of these.</p> <p>Fair enough, I haven't really given it a URL. But at least lnldb.wsgi is getting called.</p> <p>But I want to see the admin, so I go to [MY_IP_ADDRESS]/wsgi/admin, and I just get:</p> <p>Not Found The requested URL /wsgi/admin was not found on this server.</p> <p>Could someone please point out what I'm doing wrong, I'm sure it's something rather simple...</p> <p>Thanks a lot.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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