Open kastork opened 10 years ago
Same issue for me on Ubuntu 14.04 - with python3.3.5 in virtualenv. Can't run locally.
I had this today as well. Managed to solve it in the following fashion. I am on windows though not sure if it will work for everyone.
I added
sys.path.append(os.path.join(os.path.dirname(__file__), '..', ".."))
inside openshift/manage.py
and
an else in mysite/wsgi.py
else:
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Thanks Qblack. I'm on Linux Mint 17 and worked fine for me! :)
I suggest a slightly different fix by operating change in settings.py, and wrap it by os.path.normpath() to avoid annoying OS issues !
Thanks for these starter projects, they're very helpful.
In https://github.com/rancavil/django-openshift-quickstart, you had a nice little tutorial on how to set up a virtualenv to run the app locally. You didn't include this in the py3 version of the project, so I performed all the same steps as in the other tutorial.
But it doesn't work. I get
But the little main program 'wsgi.py' at the root of the directory does start a local Django.
Is there no way to use
manage.py
on a local dev setup?I'm using python 3.3.5 from homebrew on OSX.