Hello, thanks for the answer.

I've this code in my wsgi:

import os, sys
#Calculate the path based on the location of the WSGI script
apache_configuration = os.path.dirname(__file__)
project = os.path.dirname(apache_configuration)
workspace = os.path.dirname(project)
sys.path.append(workspace)

os.environ['DJANGO_SETTINGS_MODULE'] = 'pizzaclub.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

And I don't know how to find the error as it works well when I run the 
project with manage.py.

My settings file is there:
/var/www/html/pizzaclub/pizza_club/settings.py

I just added this in httpd.conf:

Include "/var/www/html/pizzaclub/public/django_wsgi.conf"


and this in the wsgi:

Alias /static/ /var/www/html/pizzaclub/public/static/
Alias /media/ "/var/www/html/pizzaclub/public/media/"

WSGIScriptAlias / "/var/www/html/pizzaclub/public/pizzaclub.wsgi"
WSGIPythonPath 
/var/www/html/emergence/:/var/www/html/pizzaclub/pizza_club:/var/www/html/pizzaclub/pizza_club/db:/var/www/html/pizzaclub/public/media:/var/www/html/pizzaclub/apache:/usr/bin/python

<Directory "/var/www/html/pizzaclub/public">
Allow from all
</Directory>

Thanks again for your help.


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ec3bba44-a637-48e5-9636-ff5ffadd13e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to