Tuesday, January 12, 2021

How to Create a Project and Application in Django Web Application Framework

Hi,
In this post I am going to talk about how to create a Web Application Project using Django framework.

Please refer the prerequisite section for what you suppose to have upfront before proceeding further.

At the time of writing, the versions that you find under prerequisites were in use, the details discussed would remain same for the future versions as well...

Prerequisites
NameVersion
Python3.9.1
Django3.1.5

Creating a project

To create a project, use the following command... In my case the project name is "django_tutor"

$ django-admin startproject django_tutor

The above command would have created a directory named "django_tutor" in the present working directory which is the Home directory for the project.

Creating an Application

Change directory to project's Home directory.

$ cd django_tutor

To create a application, use the following command... in my case the application name is "blogs"

$ python manage.py startapp blogs

Now you could see a directory called blogs under django_tutor, which is the application directory for the application blogs.

Well with this we have concluded the creation of a project and a application.

Hope you had great time, Thanks.

No comments:

Post a Comment

Addressing Modes of 8080 / 8085 MicroProcessor

Hi,   In this post I am going to talk about different addressing modes of 8080/8085...without much talking let us get into the topic.   Ther...