How to Create a New Django Project | Python Web Development

Опубликовано: 28 Сентябрь 2024
на канале: codevev
434
12

#Python #Shorts

If you want to start your web development journey in Python really quickly, you can use Django to create a new project for you which you can modify to fit your needs. To successfully complete this task, we just need a few steps.

1. Create a new virtual environment, so we don't break anything.
python -m venv venv
2. Activate the environment we created in step 1.
venv\Scripts\activate
3. Install Django
pip install Django
4. Actually create a new project.
django-admin startproject projectname
5. Change directory into the new project directory
cd projectname
6. Start the Django server
python manage.py runserver
-------------------------------------------------------------------------------------
Links:
Blog: https://evgenyurubkov.com
Twitter:   / evgenyurubkov  
Instagram:   / evgenyurubkov  
Youtube:    / @codevev