Skip to content

Instantly share code, notes, and snippets.

View rutuukulkarni's full-sized avatar
🎯
Focusing

Rutuja Kulkarni rutuukulkarni

🎯
Focusing
View GitHub Profile
@rutuukulkarni
rutuukulkarni / 1.Django + venv Setup
Created June 11, 2023 11:59 — forked from meet59patel/1.Django + venv Setup
Getting started with Django (2.2.4) - with virtual env setup
Make your project directory.
Open terminal with the project directory as current directory.
Make sure python3 and pip installed on system.
Run this command: $ python3 -m venv myvenv
virtual environment called 'myenv' has been created for your current project.
To activate the virtual environment: $ source myvenv/bin/activate
Make requirements.txt file in main project directory. Add this line: Django~=2.2.4
(You can add more requirements later.)
Save requirements.txt file and run this command: $ pip install -r requirements.txt
Above will install current requirement python packages to the virtual environment.