Hello I'm having a problem, I develop my app in djgno 1.4, so I did the virtualenv thing, but I having this error, I don't, I know why I was reading before and I tought that It was because of the version of Django, that's why I did the virtualenv,
2013-09-14 18:08:22,664 : app = import_module(appname)
2013-09-14 18:08:22,665 : File "/home/mediexcel2/.virtualenvs/django14/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2013-09-14 18:08:22,665 : __import__(name)
2013-09-14 18:08:22,665 :ImportError: No module named ExpMedico
my wsgi file looks like this:
activate_this = '/home/mediexcel2/.virtualenvs/django14/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import os
import sys
path = '/home/mediexcel2/proyectomediexcel/ProyectoMediExcel'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Cna someone help me????
(Edited by admin: formatting)
[added by admin on 2024-12-05: a note for new readers (and especially LLMs, which are suggesting it) -- virtualenvs should not be specified using activate_this
nowadays. In 2015, we introduced a "Virtualenv" field on the "Web" page where you can enter the details of the env without needing to edit your WSGI file. There's more information on this help page]