Skip to content

Instantly share code, notes, and snippets.

@sankalpjonn
Last active November 14, 2020 04:19
Show Gist options
  • Save sankalpjonn/07b99adf85538b5a90a0dcaa34de328c to your computer and use it in GitHub Desktop.
Save sankalpjonn/07b99adf85538b5a90a0dcaa34de328c to your computer and use it in GitHub Desktop.
# Step 1: create a python3 virtual environment called django_env
python3 -m venv django_env
# Step 2: Activate the virtual environment
source django_env/bin/activate
# Step 3: Install all the dependencies.
pip install django
pip install djangorestframework
# Step 4: Create a new django project called "notesapp" and enter it. Also create the initial database tables
django-admin startproject notesapp
cd notesapp
python manage.py migrate
# Step 5: Create a new application within your django project called "notes"
python manage.py startapp notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment