M
M
MISHA93002017-04-11 17:28:21
linux
MISHA9300, 2017-04-11 17:28:21

Why won't the server start via django-admin?

I have a small question: I'm trying to start the django server via
django-admin runserver --setting=mysite.settings (mysite is the project folder, settings is the settings module)
exactly as it says here https://docs.djangoproject.com/ en/1.8/ref/django-admin/
Instead of success, I get an error: "ImportError: No module named 'mysite' "
even though I specify everything correctly.
I also tried to change the environment variable DJANGO_SETTINGS_MODULE - the effect is the same.
Python version -3.4; Django-1.8
There is __init__.py in mysite directory.
a354cc0f4a5042778f527cc01044336c.png
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question