DEV Community

Cover image for First Django App For Beginners Part1 (setup & installation)
Abdul Azeez
Abdul Azeez

Posted on • Updated on • Originally published at

First Django App For Beginners Part1 (setup & installation)

What is Django?
Django is a high-level Python web framework that encourages clean development and fast, with pragmatic design.

Why Django?

  1. Ridiculously fast.
    Django was designed to guide developers take projects from intellection to completion as quickly as possible.

  2. Reassuringly secure.
    Django takes security seriously and helps developers avoid many common security mistakes.

  3. Exceedingly scalable.
    Some of the busiest sites on the web ascendancy Django’s ability to quickly.

Before You Start make sure you have python installed on your computer.

You must have Python installed on your system if you don't have check out link to

Let's Start!

Step 1: Installation pip install django
So step 1, will install django on your system

Step 2: To start a project use this command django-admin startproject mysite then cd to wherever the project folder is in and run this command to create a app python startapp sites to create a app

Project Folder Structure:

Enter fullscreen mode Exit fullscreen mode

App Forlder Structure:

Enter fullscreen mode Exit fullscreen mode

Then run your server with this command: python runserver
You will see a success page like this:
Success Page

for you to make changes in your app folder and for it to work you will have to register your app inside your like this below

Line 34 in your file

# Application definition


    'your_app_name_here', # your app(s) goes inside this list
Enter fullscreen mode Exit fullscreen mode

Part two will contain views and urls

Top comments (0)