DEV Community

Cover image for Setting up Django app
Rohith ND
Rohith ND

Posted on

Setting up Django app

Install Python

Get the latest version of python from the link below

Download Python | Python.org

The official home of the Python Programming Language

favicon python.org

Check Python version

python --version
Enter fullscreen mode Exit fullscreen mode

Check pip version

pip --version
Enter fullscreen mode Exit fullscreen mode

Installing Django

python -m pip install django
Enter fullscreen mode Exit fullscreen mode

Check Django Version

python -m django --version
Enter fullscreen mode Exit fullscreen mode

Create Django App

django-admin startproject <project-name>
cd <project-name>
django-admin startapp <app-name>
Enter fullscreen mode Exit fullscreen mode

Migrations in Django app

python manage.py makemigrations
python manage.py migrate 
Enter fullscreen mode Exit fullscreen mode

Starting Django Server

python manage.py runserver
Enter fullscreen mode Exit fullscreen mode

Then open http://127.0.0.1:8000/ to see your app

Django Documentation :https://docs.djangoproject.com/en/4.0/

Top comments (0)