This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. install django debug toolbar | |
pip install django-debug-toolbar | |
2. settings.py | |
INSTALLED_APPS = [ | |
'..', | |
'debug_toolbar', | |
] | |
MIDDLEWARE = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |