status: #doc Tags: #python/django links: Date: 2024-06-22 ___ # project setup ## set up virtual environment - make new env ```shell python -m venv env ``` - activate env ```shell source env/bin/activate ``` - deactivate env ``` deactivate ``` [[virtual environment python|more about virtual environment in python]] ## install django - insert the command ```shell pip install django ``` ## make config project/folder - insert this command note that '.' mean than it go to current folder ```shell django-admin startproject my_project . ``` see that when we enter this command we make folder config with manage.py file ## running development server - insert command ```shell python manage.py runserver ``` - now open http://127.0.0.1:8080 in browser you can also hold 'Ctrl' and click on it in terminal if you see django rocket you are good to go for closing server use Ctrl + C in terminal --- # References