Forums

How to turn off the django server?

Hey people, I am very new to django and web development. To check the basic working I issued "python manage.py runserver" at the console. Then i visited my-username.pythonanywhere.com and I can see that it is working. However, even though I have closed the django server using CTRL+C on the same console, the webpage is still accessible. I need to know how can I take that site down and only make it visible when I want to?

Regards

Hi there -- the runserver command actually doesn't do anything on PythonAnywhere apart from use up your CPU time. Once you've created a web app, it will continue to run until you delete it.

If you don't want your web app to be visible to other people, but you don't want to delete it, the best thing is to set a username and password on it. You can do that from the "Web" tab.