The document discusses various aspects of Django including:
1. Model-View-Controller framework where the model represents the database, the view displays the UI, and the controller handles application logic and flow.
2. Django commands like django-admin for creating projects and apps, manage.py for running the development server, and createsuperuser for making admin users.
3. Migrations are used to create database tables from models and migrate changes to the production database.
The document discusses various aspects of Django including:
1. Model-View-Controller framework where the model represents the database, the view displays the UI, and the controller handles application logic and flow.
2. Django commands like django-admin for creating projects and apps, manage.py for running the development server, and createsuperuser for making admin users.
3. Migrations are used to create database tables from models and migrate changes to the production database.
The document discusses various aspects of Django including:
1. Model-View-Controller framework where the model represents the database, the view displays the UI, and the controller handles application logic and flow.
2. Django commands like django-admin for creating projects and apps, manage.py for running the development server, and createsuperuser for making admin users.
3. Migrations are used to create database tables from models and migrate changes to the production database.
(Debug = True) will give info what is happening in project
but for deployment make it false someone else can hack -default sq lite but we can use post gres
-workon test(for vs code environment)
-python manage.py startapp calc -pip freeze(Python ko keh keh install x vanxa) -(django-admin) ->admin ko kaam yesle dinxa
3) What is Development Server
manage.py main directory ma xa( tyo run garersi hamro server run hunxa)
4) media- yesma dynamic haru hunxan
DEBUG=True aye sab errror dekhinxa -middleware(user login garepxi matra dashboard ma jane) -migrate garna sath sqlite ko file banxa -manage garna -media le dynamic image haru (admin ma product banyo vane media ma aauxan)
5) How to migrate default migrations?
-migrations garna sath table banxa -model(related to database table)->Croud operations -project ma default sqlite database hunxa
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More