Django: the command 'py manage.py runserver' isn't showing any output

the command py manage.py runserver isn’t showing any output and as far as I could tell isn’t opening a server either. I couldn’t even get passed the first tutorial in the official django docs.

C:\Users\sruls\OneDrive\Desktop\the big fat coding folder\django_playground\django_learn> py manage.py runserver C:\Users\sruls\OneDrive\Desktop\the big fat coding folder\django_playground\django_learn> 

none of the code was changed from default and the folder layout is:

django_learn/     manage.py     django_learn/         __init__.py         settings.py         urls.py         asgi.py         wsgi.py 

I have tried reinstalling Django and it didn’t help

Add Comment
2 Answer(s)

after a lot of testing it looks like the shebang line wasn’t playing well with python

#!/usr/bin/env python 

I still don’t know why but once I removed it the program ran fine

Add Comment

Try python manage.py runserver

Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.