Skip to content

Instantly share code, notes, and snippets.

@proteeti13
Last active May 9, 2019 03:43
Show Gist options
  • Save proteeti13/cfdfb333b8349c0021961642d26dafec to your computer and use it in GitHub Desktop.
Save proteeti13/cfdfb333b8349c0021961642d26dafec to your computer and use it in GitHub Desktop.
Django installation commands
For reference : https://github.com/codingforentrepreneurs/Try-Django-2.2
sudo pip install pipenv
pipenv --python 3.6 install django=2.2
pipenv shell (to activate the project's virtualenv)
**check for Pipfile and Pipfile.lock in the activated directory**
mkdir src (to store the django project)
django-admin startproject <projectname> .
** check for manage.py and <folder with the projectname> in src **
python manage.py runserver
** check development server for successful installation **
python manage.py migrate
python manage.py createsuperuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment