Answer the question
In order to leave comments, you need to log in
How to fix errors when opening Django Python projects?
Good day!
I want to run a Github project https://github.com/bstewartny/pnews or any other django project using PyCharm.
And with each project, the same errors occur, I think something very simple, but due to the absolute absence of experience, I can’t find and fix it. Googled solutions did not help, I just realized from stackoverflow that the django version should be accurate, and all modules are installed, in fact, I double-checked that and everything is fine.
How to solve the problem?
Error log:
"C:\Program Files (x86)\JetBrains\PyCharm 4.0.4\bin\runnerw.exe" "C:\Program Files (x86)\Python3\python.exe" D:/Playground/pnews-master/manage.py runserver 8000
Traceback (most recent call last):
File "D:/Playground/pnews-master/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "C:\Program Files (x86)\Python3\lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line
utility.execute()
File "C:\Program Files (x86)\Python3\lib\site-packages\django\core\management\__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Program Files (x86)\Python3\lib\site-packages\django\core\management\__init__.py", line 261, in fetch_command
commands = get_commands()
File "C:\Program Files (x86)\Python3\lib\site-packages\django\core\management\__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "C:\Program Files (x86)\Python3\lib\site-packages\django\conf\__init__.py", line 54, in __getattr__
self._setup(name)
File "C:\Program Files (x86)\Python3\lib\site-packages\django\conf\__init__.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "C:\Program Files (x86)\Python3\lib\site-packages\django\conf\__init__.py", line 128, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question