0

I just want to call this command : django-admin manage.py runserver but it always fails and it gives me this message instead:

(No Django settings specified. Unknown command: 'manage.py')

what can I do ?

Javad
  • 2,033
  • 3
  • 13
  • 23

3 Answers3

0

The real command is:

python manage.py runserver

your version with django is incorrect. django-admin using for creating project

0

Go to the folder where your manage.py file is located nad run ./manage.py runserver or python manage.py runserver

antpngl92
  • 494
  • 4
  • 12
0

You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. After that's enough to run the below command for running the project:

➜ django-admin runserver

or run the below command in the base directory of project:

➜ python manage.py runserver
Javad
  • 2,033
  • 3
  • 13
  • 23