Getting started with Django

Getting started with Django

  1. Install Python

     python --version
    
  2. PIP (PIP is the package manager which is included in Python from 3.4)

     pip --version
    

    if PIP is not installed install by

     curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    
     python get-pip.py
    
  1. Creating a virtual environment

     py -m venv myworld
    

    Then you have to activate the environment, by typing this command:

    Windows:

     myworld\Scripts\activate.bat
    

    Unix/MacOS:

     source myworld/bin/activate
    
  2. Install Django

     python -m pip install Django
    

    Check django version

     django-admin --version
    
  3. First django project

     django-admin startproject quiz
    
  4. Running the server

     py manage.py runserver
    
  5. Create first app

     py manage.py startapp Questions