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
    
  3. 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
    
  4. Install Django

     python -m pip install Django
    

    Check django version

     django-admin --version
    
  5. First django project

     django-admin startproject quiz
    
  6. Running the server

     py manage.py runserver
    
  7. Create first app

     py manage.py startapp Questions
    

    Promoting: Digital Patro Nepali Calendar
    Github: https://github.com/digitalpatro

    %[https://www.youtube.com/watch?v=2z3gAXiEoXQ]