Nothing happens when I do: python manage.py command

14,346

Solution 1

First, check if python is fully installed by typing "python" in a shell.

Then you should try python manage.py runserver inside your django project. If you don't have any django project, try creating one by typing django-admin.py startproject mysite. If nothing is displayed in your shell, you must have installed Django the wrong way.

Please refer to Django Documentation at https://docs.djangoproject.com/en/1.4/intro/install/

Solution 2

The problem is that the first line in manage.py breaks the file on windows. The first line should look like this:

#!/usr/bin/env python

Removing it will fix the issue.

Solution 3

Please try this.

  1. Uninstall Python.
  2. Go inside C drive and search Django. You will get many Django related files.
  3. Delete every Django file. 😁 don't delete your Django files.
  4. Install Python.

It's worked for me.

Share:
14,346
David Haddad
Author by

David Haddad

Developers developers developers!!!1

Updated on July 28, 2022

Comments

  • David Haddad
    David Haddad almost 2 years

    I'm new to django and currently going through the main tutorial. Even though it was working earlier, when I do python manage.py runserver OR python manage.py -h OR with any other command, the shell doesn't output anything. Wondering what I'm doing wrong.