Skip to content

Instantly share code, notes, and snippets.

View mkushal10's full-sized avatar
🏠
Working from home

Kushal Neupane mkushal10

🏠
Working from home
  • Kush Tech Nepal Pvt. Ltd.
  • Itahari
View GitHub Profile
# To install virtual environment in the system
py -m pip install --user virtualenv
# To check the current version of the virtual environment
py -m pip --version
# for linux
python -m pip --version
# creating the virtual environment
virtualenv -p python3 virtual_environment_name
Step-1: Create a repository on the GitHub
Step-2: Go the the project folder and run command prompt
Step-3: Insert --> git init
Step-4: Insert --> git add .
Step-5: Insert --> git commit -m "name of commit"
Step-6: Insert --> git branch -M main
Step-7: Insert --> git remote add origin https://github.com/github_user_name/repo_name.git
Step-8: Insert --> git push -u origin main
1. install django debug toolbar
pip install django-debug-toolbar
2. settings.py
INSTALLED_APPS = [
'..',
'debug_toolbar',
]
MIDDLEWARE = [
1. clone from the branch
2. git switch -c new-branch
3. git add .
4. git commit -m "commit name"
5. git push origin newbranchname
# Created by https://www.toptal.com/developers/gitignore/api/django,python,pycharm,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=django,python,pycharm,visualstudiocode
### Django ###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3