Python and DJango Installation


 Python and DJango Installation Steps


  1. Download Python latest version which is compatible to your OS.

  1. And then follow below commands through Windows Powershell
    1. > pip install virtualenvwrapper-win  -- To install virtual environment
    2. > mkvirtualenv myproject -- create Project you virtual Environment
    3. > workon myproject -- to shift and work on your project
    4. > pip install django -- Install Django using pip
    5. > python -m django --version -- to check installed Django version





  1. To create your project
                              PS > django-admin startproject myfirst

  1. To run python server
                              PS > python manage.py runserver



  1. To apply those changes to the database.

                           PS > python manage.py migrate

                           To create migrations to those changes
                           PS > python manage.py makemigrations polls

                           PS > python manage.py sqlmigrate polls 0001 -- To see generated SQl scripts



Comments

Popular posts from this blog

How to get the tweets using Kafka producer and Consume it using MongoDB

Monolithic vs Micro Services

AngularJS Flow