April 2

Django setup

In your python virtual env, install django 2.2 (or later version)

$ pip install django==2.2

Check virtual env using pip

$ pip freeze

Run django-admin to create your django project

$ django-admin startproject myproject_name

Run your first django project, and you should be able to view your django project on

$ python manage.py runserver

To migrate your database with django, run 

$ python manage.py migrate

Common commands for manage.py

$ python manage.py runserver                           # start server
$ python manage.py migrate                              # migrate model to DB
$ python manage.py startapp  {app_name}   # create a new 'app' in the project
$ python manage.py makemigrations              # whenever you make changes to model 

Send us a message. We will reply as soon as we can.