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
# 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
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
1. install django debug toolbar
pip install django-debug-toolbar
2. settings.py
INSTALLED_APPS = [
'..',
'debug_toolbar',
]
MIDDLEWARE = [
1. Go to the https://www.python.org/downloads/ and Download lastest Python.
β˜‘ Install launcher to all users
β˜‘ Add Python 3.9 to PATH
-->Click Next Button
2. Check some
β˜‘ Documentation
β˜‘ pip
β˜‘ td/tk and IDLE
β˜‘ Python test suite
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
# to freeze requirements
pip freeze > requirements.txt
# to install requirements
pip3 install -r requirements_file_name.txt/pip install -r requirements_file_name.txt
pip3 install -r requirements.txt
# To install virtual environment in the system
py -m pip install --user virtualenv
virtualenv venv
# To check the current version of the virtual environment
py -m pip --version
# for linux
python -m pip --version
# creating the virtual environment