what is django
Django is a Python-based web framework,which is used to develop the web application by using django
we can develop the secred and high level application
What’s the difference between a Project and App
Project App
1)A Django project is a collection of applications and
1)A Dango Application is responsible to perform a
configurations which forms a full web particular task in our entire web
application application.
2) project can contain several apps 2)but an app can only be in one project
3)django-admin startproject <project_name> 3)python manage.py startapp <app_name>
How do we initialize a project
django-admin startproject <project-name>
How do we initialize an app
python manage.py startapp <app_name>
What does the settings.py file do?
settings.py holds the configuration of the project like your database connection, apps configuration,
absolute path values, static files configuration, and the overall command center to the project.
How do we start our development server
python manage.py runserver
to change server
python manage.py runserver 8001
What is Django Admin Panel
Django admin panel is a kind of graphical user interface that is used for admistive task Admin panel
comes by default built with Django and you don’t need to build it from scratch as we do in other
languages.to acess the admin run the command py manage.py createsuperuser and give the user name
and email after that type /admin its open the admin panel give user name and password its open the
admin panel