Thanks Guys,
The server is up and running with mod_wsgi, tho the admin page is not 
loading with the static files.
I have added this to my apache.conf file:
 Alias /static/admin 
/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin
Kind of stuck after this



On Sunday, 12 May 2013 11:17:04 UTC+1, Stanley Agba wrote:
>
> Hello guys, 
> please I'm kind of a noob at django and I'm trying to deploy a django site 
> on Apache with mod_wsgi, I am not using a virtualenv as the server has 
> python installed.
> I added the following to my /etc/apache2/apache2.conf 
>
> <VirtualHost example:80>
>    ServerName example
>    ServerAlias example
>    ServerAdmin exam...@example.com
>
>    DocumentRoot /var/www/example/static
>    WSGIScriptAlias / /var/www/example/example/wsgi.py
>    WSGIPythonPath  /var/www/example
>    <Directory /var/www/example/example>
>    <Files wsgi.py>
>       Order allow,deny
>       Allow from all
>    </Files>
>    </Directory>
>
>    Alias /head.jpg  /var/www/example/static/head.jpg
>    Alias /media/ /var/www/example/uploads
>    Alias /static /var/www/example/static
>
>    <Directory /var/www/example/static>
>    Order deny,allow
>    Allow from all
>    </Directory>
>
>   <Directory /var/www/example/uploads>
>   Order deny,allow
>   Allow from all
>   </Directory>
>
>   ErrorLog /var/www/python_ng/logs/error.log
>   CustomLog /var/www/python_ng/logs/access.log combined
> </VirtualHost>
>
> I got a 'WSGIPythonPath cannot be in virtual host section' error.
> I have searched for previous topics but i have not been able to get a 
> solution, I would greatly appreciate any help.
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to