Je tente de déployer mon projet sur pythonanywhere. Ma structureErreur WSGI dans Django
MyBlog
│ ├── blog
│ │ ├── blog
│ │ │ ├── __init__.py
│ │ │ ├── __init__.pyc
│ │ │ ├── settings.py
│ │ │ ├── settings.pyc
│ │ │ ├── urls.py
│ │ │ ├── urls.pyc
│ │ │ └── wsgi.py
│ │ ├── db.sqlite3
│ │ ├── manage.py
│ │ ├── posts
│ │ │ ├── __init__.py
│ │ │ ├── __init__.pyc
.........
Mon fichier wsgi au serveur
import os
import sys
path = '/home/Ivan/MyBlog' # use your own username here
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'blog.settings'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Je suis l'erreur:
Error running WSGI application
ImportError: No module named blog.settings
File "/var/www/ivan_pythonanywhere_com_wsgi.py", line 11, in <module>
application = get_wsgi_application()
quel est le problème?
'blog.blog. settings' est ce travail ni non? –
Erreur d'application WSGI en cours d'exécution ImportError: Aucun module nommé blog.blog.settings fichier "/var/www/ivan_pythonanywhere_com_wsgi.py", ligne 11, dans application = get_wsgi_application() –
question1