Bonjour,
Avez-vous vérifié les droits ? J'ai eu le même problème et en mettant
les droits www-data et en siupprimant les .pyc, ca s'est mis à
fonctionner. De plus, il faut regarder aussi au niveau du apache et du
wsgi. Avez-vous une application django qui fonctionne avec Apache ?
sinon, le mod_wsgi est- il installé et changé par apache (include).
Voici un exemple de vhost apache :
WSGIDaemonProcess videotheque
WSGIProcessGroup videotheque
WSGIScriptAlias / /path_to_my_project/wsgi.py
<Directory //path_to_my_project/>
<Files wsgi.py>
Order deny,allow
Allow from all
Options FollowSymLinks
</Files>
</Directory>
Enfin, le wsgi doit ressembler à un truc dans ce style :
import os,sys
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if path not in sys.path:
sys.path.append(path)
path = '/path_to_my_project'
if path not in sys.path:
sys.path.append(path)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Bon courage
Le 18/11/13 10:29, Bourhis Yves a écrit :
> Bonjour,
>
> j'ai un projet très simple avec une application toute aussi simple :
> lorsque je lance mon serveur de test sur ma machine, tout fonctionne,
> mais lorsque que je veux l'implanter sur mon serveur de production
> (apache en mode wsgi) je n'arrive plus à voir mon application !
> Est-ce que quelqu'un aurait une piste pour me dépanner ?
>
> N.B. : Django est en version 1.6 (mais j'avais le même soucis avec la
> 1.5.1)
>
> Cordialement.
--
Signature Nicolas CAN
*Nicolas CAN*
Ingénieur développement et intégration Service Enseignement et MultiMédia
Tel : (+33) 03 20 33 63 41
Courriel : [email protected] <mailto:[email protected]>
Site : http://semm.univ-lille1.fr
*Université Lille 1*
Boulevard Paul Langevin
59655 Villeneuve d'Ascq Cedex
Tel : (+33)0320336441
Fax : (33)0320336395
http://www.univ-lille1.fr
<<attachment: nicolas_can.vcf>>
_______________________________________________ django mailing list [email protected] http://lists.afpy.org/mailman/listinfo/django
