Skip to content

Instantly share code, notes, and snippets.

@JayachandraA
Created September 18, 2019 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayachandraA/0fb9274023731a1e0a1923966814b39f to your computer and use it in GitHub Desktop.
Save JayachandraA/0fb9274023731a1e0a1923966814b39f to your computer and use it in GitHub Desktop.
Steps to create python project
Steps to create new python project with Django
STEP 1: Open terminal and go to root directory where you want to create a project
STEP 2: Enable virtual environment (i.e, $virtualenv venv -> $source venv/bin/activate)
STEP 3: Install Django package/framework (i.e, $ pip install Django), this includes the command django-admin as swell
STEP 4: Now, create new project i.e, $django-admin startproject <project_name>
STEP 5: Verify your created project by $ python manage.py runserver
STEP 6: Now, create new app i.e, $python manage.py startapp <app_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment