Andrew
Andrew

Reputation: 1

Pycharm: python manage.py runserver returns nothing

I am struggling to get the http link from pycharm. I must say I am pretty new to software engineering and I am only following tutorials. I am currently stuck on this problem and I can't find any answer. Henter image description hereope someone can help me to figure this out.

looking forward to sort out the problem and understand the nature of it.

Upvotes: 0

Views: 116

Answers (2)

Dadá
Dadá

Reputation: 354

manage.py is empty, therefore it will execute nothing. When you are executing python manage.py runserver, it will go to manage.py and execute all the code in there. However, if you are wondering what about the runserver parameter? Well, in your file you have not told python to handle extra parameters, so it won't.

It seems that you have deleted all the boilerplate code that came when you created the Django project. To solve this, you can simply copy the code from the tutorial or from a repository you are following.

Upvotes: 0

AKX
AKX

Reputation: 169338

Your manage.py is empty, which is why running it does nothing.

You can copy in a fresh copy of manage.py from the repository's template if you've obliterated your own -- just remember to change that {{ project_name }} to match your project.

Upvotes: 0

Related Questions