Create First Project

Open the cmd prompt and navigate to the place you want your project to be created, then use this code

Django-admin startproject mypro

After navigate this command “mypro” folder automatically created at your destination folder and there structure were follows:

Here you can see that a file name “” another folder name “mypro” .let’s explore second folder.

Here you can find more 5 files in we will briefly discuss all the file meanings. :This file is the part of project by using the file you can interact with the project via command line, get full list of command line press hit the this command

Python help This file indicates to the compiler that mypro is a project. This file contains the whole setting of the project.. This file creates the links and communicates with other apps. This file is used when a project is loaded for deployment or host.

Application: a project can have many apps, Every application has an objective and can be reused into another project,see it as module in your project

Creating a Apps: We will create file in” mypro” project

python startapp myapp

By using this command django create a folder name “myapp” that contain serverial file, : just make sure that python handle as application this file is allowed to make any changes and modifications in the admin file. : here contain all models of the application. : here test file allows your project for the test. : views handle all the activity of your request and response.

Register your application in Project Setting:

After coming on this stage you have told you project that this and this are you application,so you have to register your application in INSTALLED_APPS in project setting lets understand by the snapshot.

Before the runserver has to migrate the project and given security password to project.

Now we will run the createsuperuser

Now we will runserver by : python runserver

Now go to browser type link in address bar:
Localhost:8000 or

Now login into admin page: localhost:8000/admin

Once connected with your superuser account, you will see the following screen −

Subscribe Now