Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nothing happens when I do: python manage.py command

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.

like image 219
David Haddad Avatar asked Jul 15 '12 11:07

David Haddad


People also ask

Why does Python manage py Runserver not work?

The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

How do I run manage py?

To run a task of the manage.py utilityOn the main menu, choose Tools | Run manage.py task, or press Ctrl+Alt+R . The manage.py utility starts in its own console.

What happens when we run Python manage py Runserver?

This executes the command and perform base checks if needed. This performs normal checks and migration checks if needed and then calls a function called handle . This function makes all the checks regarding IP address like checking port, IP address format ipv4 or ipv6.

What does Python manage py shell do?

When you run python manage.py shell you run a python (or IPython) interpreter but inside it load all your Django project configurations so you can execute commands against the database or any other resources that are available in your Django project.


1 Answers

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.

like image 150
Chaime Avatar answered Oct 27 '22 01:10

Chaime