Before entering how to develop a web application using Django let’s know what is Django, how to install and then move to develop an application.
Django is an open-source web framework that follows the principles of “Don’t Repeat Yourself”. It is all about writing simple code and non-repeating. It is also a high level and MVT(Model View Template).
If this is the first Django application then, you will need to have the knowledge and should take care of the initial setup. There are few auto-generated codes that establish a Django project. This initial setup consists of a collection of settings for an instance of Django, which also includes database configuration, Django-specific options, and application-specific settings.
**ALSO READ: **How To Develop A Healthcare Mobile Application For Hospitals
Command – 1:
django-admin startproject projectname
$ django-admin startproject mysite
This command will create a mysite directory in your current directory. After the creation the structure will look like :
mysite/
mysite/
init.py
The outer mysite can be renamed. I’ve renamed it as “django_crud”. It looks like this:
django_crud/
mysite/
init.py
For more information regarding the above structure visit the link here.
After creating the django_crud application with all the above-mentioned files, we need to create an app.
#django #python #web application