Python Class Import Class import classes to another file in Python|| Must Watch - English

preview_player
Показать описание
Django Web Framework (Python):
Django is an extremely popular and fully featured server-side web framework, written in Python. This module shows you why Django is one of the most popular web server frameworks, how to set up a development environment, and how to start using it to create your own web applications.
Django introduction:
In this first Django article we answer the question "What is Django?" and give you an overview of what makes this web framework special. We'll outline the main features, including some advanced functionality that we won't have time to cover in detail in this module. We'll also show you some of the main building blocks of a Django application, to give you an idea of what it can do before you set it up and start playing.
Setting up a Django development environment:
Now that you know what Django is for, we'll show you how to set up and test a Django development environment on Windows, Linux (Ubuntu), and macOS — whatever common operating system you are using, this article should give you what you need to be able to start developing Django apps.
Django Tutorial: The Local Library website
The first article in our practical tutorial series explains what you'll learn, and provides an overview of the "local library" — an example website we'll be working through and evolving in subsequent articles.
Django Tutorial Part 2: Creating a skeleton website:
This article shows how you can create a "skeleton" website project, which you can then go on to populate with site-specific settings, URLs, models, views, and templates.
Django Tutorial Part 3: Using models:
This article shows how to define models for the LocalLibrary website — models represent the data structures we want to store our app's data in, and also allow Django to store data in a database for us (and modify it later on). It explains what a model is, how it is declared, and some of the main field types. It also briefly shows a few of the main ways you can access model data.
Django Tutorial Part 4: Django admin site:
Now that we've created models for the LocalLibrary website, we'll use the Django Admin site to add some "real" book data. First, we'll show you how to register the models with the admin site, then we'll show you how to login and create some data. At the end, we show some ways in which you can further improve the presentation of the admin site.
Django Tutorial Part 5: Creating our home page:
We're now ready to add the code to display our first full page — a home page for the LocalLibrary that shows how many records we have of each model type, and provides sidebar navigation links to our other pages. Along the way we'll gain practical experience in writing basic URL maps and views, getting records from the database, and using templates.
Django Tutorial Part 6: Generic list and detail views:
This tutorial extends our LocalLibrary website, adding list and detail pages for books and authors. Here we'll learn about generic class-based views, and show how they can reduce the amount of code you have to write for common use cases. We'll also go into URL handling in greater detail, showing how to perform basic pattern matching.

Django Tutorial Part 7: Sessions framework:
This tutorial extends our LocalLibrary website, adding a session-based visit-counter to the home page. This is a relatively simple example, but it does show how you can use the session framework to provide persistent behavior for anonymous users on your own sites.
Django Tutorial Part 8: User authentication and permissions:
In this tutorial we'll show you how to allow users to login to your site with their own accounts, and how to control what they can do and see based on whether or not they are logged in and their permissions. As part of this demonstration, we'll extend the LocalLibrary website, adding login and logout pages, and user- and staff-specific pages for viewing books that have been borrowed.

Hashtags:

#python #pythonforbeginners #pythonfullcourse #pythontutorial #pythongb #pythonprojects #pythonprogramming #pythontutorialforbeginners #pythoncourse #pythoncowboy #pythonsnake #pythoninterviewquestions #pythonbasics #pythonfordatascience #pythoncoding #pythonpandas #pythonand #pythonandroid #pythonandroidapp #pythonanddjango #pythonanddatascience #pythonandroidappdevelopment #pythonandalligatorfight #pythonandmachinelearning #pythonandpowerbi #pythonandanaconda #pythonandcrocodilefight #pythonandarduino #pythonandreact #pythonandhtml #pythonanddog #codingisthinking
Рекомендации по теме
Комментарии
Автор

Great tutorial and explanation. My only criticism is that you should have written small blocks of code from the original class and then the new file as you explain each line of code from scratch and the terms of each part instead of having newbies look at big blocks of prewritten code. It's a better style of teaching. Still great tutorial to me because I already have some experience.

aaroncatolico