Skip to content

Instantly share code, notes, and snippets.

@souravrax
Created July 29, 2020 19:21
Show Gist options
  • Save souravrax/4affd9e36e8c90d19d7b5b35d23047e7 to your computer and use it in GitHub Desktop.
Save souravrax/4affd9e36e8c90d19d7b5b35d23047e7 to your computer and use it in GitHub Desktop.
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'
@shahid163
Copy link

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment