Creating a Django Project
Django Python

Creating a Django Project

Editorial Team
Editorial Team

Follow us on Discord or Telegram to get access to free tutorials and updates.

This post is about creating a Django project manually. If you are one among who hates using the command line, read my post about Creating a Django project with Visual Studio.

Creating the project

A Django project is a collection of applications organized in different folders. To create a Django project Run the following command after navigating to the directory where you want your Django projects to be created.

django-admin startproject DjangoProject

This will create a folder named DjangoProject with a structure similar to the one shown below.


Digging deeper:

  • – A command line utility with which you can interact with the project.
  • – This file that tells Python that this directory is a Python package.
  • – Holds the project settings.
  • – Contains the links used in the project.
  • – An entry-point for WSGI-compatible web servers to serve your project.

Running the project

Navigate to the root directory of the project and run the following command.

python runserver

This will give the following output:

 Performing system checks…
 System check identified no issues (0 silenced).
 You have 15 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
 Run 'python migrate' to apply them.
 March 15, 2019 - 13:48:23
 Django version 2.1.7, using settings 'DjangoProject.settings'
 Starting development server at
 Quit the server with CTRL-BREAK.

Now, we’ve started the built-in Django web server. Visit in your web browser. You’ll see a welcome page.

Note: Django development server is a lightweight Web server written in Python. It should not be used in production environment.