I have the following directory tree
myproject βββ data βββ libs βββ wsgi βββ openshift βββ static
openshift contains a settings file and a manage.py file. I want the user to control .py through pycharm, but it will not work, neither the runerver command, nor startapp nor anything that needs to be done.
running startapp gives me the following errors
bash -cl "/usr/bin/python2.7 manage.py startapp quiz" /usr/bin/python2.7: can't open file 'manage.py': [Errno 2] No such file or directory Process finished with exit code 2
running runningerver gives me the following
ImportError: Could not import settings 'openshift.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named openshift.settings Process finished with exit code 1
I turned on django support and installed wsig as a django root project. Running manage.py from the terminal works fine.
what am I doing wrong?
EDIT: the manage.py shell starts from pycharm EDIT2: I managed to get it to work by following the openshift structure and creating the openshift django project root folder and some import changes. Now everything works fine
source share