Running manage.py from terminal works fine.ĮDIT: running manage.py shell from pycharm also worksĮDIT2: I managed to get it working by following openshift's structure and making openshift the django project root folder, and some edits to the imports. I have enabled django support and set wsig as django root project. Running runserver it gives me the following ImportError: Could not import settings 'ttings' (Is it on sys.path? Is there an import error in the settings file?): No module named ttings Solution: Follow all steps except step 3. For this we need make available the installed python packages in the Pycharm environment. For this the Project Interpreter has to be changed to Python version where Django is installed. usr/bin/python2.7: can't open file 'manage.py': No such file or directory Issue 1: Pycharm has wrong python interpreter. Running startapp gives me the following errors bash -cl "/usr/bin/python2.7 manage.py startapp quiz" I want to user manage.py through pycharm but it won't work, nor the runserver command nor the startapp neither anything to be precice. Openshift contains the settings file and the manage.py file. I have the following directory tree myproject
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |