Running the Development Server
Using the manage.py
script, run the runserver
subcommand:
python manage.py runserver
The web server starts and the empty application is available at the default address http://localhost:8000/
Note: This web server is intended for development and not for production deployment. It is not very efficient, but it provides useful features that facilitate programming the application (e.g. automatic refresh/restart of the application after changes in the code).
Note: After starting, a __pycache__
directory is created in the project, which contains pre-compiled files (bytecode) for more efficient application execution.