This file contains hidden or 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. Make a directory for the django project | |
2. Install 'pipenv' in the system environment if not already | |
3. Create a virtual environment by running 'pipenv shell' (the location of the venv defaults to '~/user/.virtualenv/', to make it live inside the current directory, make an empty folder named '.venv', pipenv automatically detects that folder and creates the virtual environment inside that folder) | |
4. Now install django by running 'pipenv install django' (installs the latest version) | |
5. Start the project by running 'django-admin startproject $NAME_OF_THE_PROJECT' | |
6. To start the live server cd into the project and run 'python manage.py runserver port(optional)' | |
7. To make a new app inside that project run 'python manage.py startapp $NAME_OF_THE_APP' |
This file contains hidden or 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
# Remove the file from the repository | |
git rm --cached .idea/ | |
# now update your gitignore file to ignore this folder | |
echo '.idea' >> .gitignore | |
# add the .gitignore file | |
git add .gitignore | |
git commit -m "Removed .idea files" |