Python Django

From Script | Spoken-Tutorial
Revision as of 12:57, 18 October 2021 by PoojaMoolya (Talk | contribs)

Jump to: navigation, search
  1. Getting started with Django
    • Python Virtual Environment
    • Create a Virtual Environment
    • Activate the Virtual Environment
    • pip command
    • Install Django
    • Update Django version
    • Create a Django project
    • The Django project file structure
    • Start the Django development server
    • Accessing Django web page
    • Stop the Django development server
    • Deactivate Virtual Environment
    • Delete the Virtual Environment
  2. Creating Django Models
    • About Django App
    • Djano Model
    • Create a blog app
    • Blog app directory structure
    • Initialize a Django app
    • Create a Django Model and
    • Perform Database migration
    • Settings.py file
    • manage.py
    • migrate command
    • makemigrations command
    • 001_initial.py file
  3. How to Use Django Admin App
    • Use Django admin app
    • Create an admin user
    • Django Admin interface
    • Login to Django Admin interface
    • Authentication and Authorization
    • Registering Blog App
    • Registering Blog Models
    • Add Blog
    • Add Articles
    • Logout from Django Admin interface
    • Add, Modify and Delete data using the admin app
    • Web Application and Web Framework
  4. Creating Views and Design URLs
    • What is a view?
    • Create a Django view
    • Http Request object
    • HttpResponse class
    • django.urls modules
    • Create a URL routing scheme
    • path function
    • Client Server model
    • string formatting operation
    • placeholder
  5. Creating HTML Template in Django
    • Create templates folder
    • Create a Django template
    • Use Django HTML template
    • Django templates system
    • Template tags
    • Template variables
    • Template filters
    • title filter
    • render function
    • django.shortcuts module
  6. Django Shell and Django Database Query
    • About Django Shell
    • Access Django shell
    • Create a Django Query
    • Create Blog Instance via shell
    • Assign value to the blog instance
    • Timezone module
    • Access blog object
    • Change blog name
    • Display blog objects
    • Check blog creation date
    • Filter with Django Queries
  7. Creating Forms in Django
    • HTML Forms
    • Create a Django form
    • Django inbuilt libraries
    • Create views to handle form submission
    • CSRF - Cross Site Request Forgery Protection
    • GET and POST Request
    • Form validation
    • Add Blog via form input method
    • Display the blog list
    • Edit existing blog
  8. Using CSS and JavaScript in Django
    • About CSS
    • About JavaScript
    • Django Static files
    • Load static files
    • Django Static template tag
    • Create CSS and JavaScript files for Django
    • Add style to the list items
    • Set color to the text
    • Add an alert message when the page loads
    • Link CSS and JS to Django template
  9. Django Authentication
    • Django Authentication and Authorization system
    • Verify user credentials
    • Define user actions
    • Create a login functionality
    • Create a logout functionality
    • Use Django’s built-in login and logout functions
    • Login page redirection
    • Logout page redirection
    • Accessing the page as registered users
    • Restrict access to the pages
  10. Testing in Django
    • Django Automated testing
    • Unit test model
    • Write tests in Django
    • TestCase class
    • Run the tests in Django
    • Run specific tests
    • Assertion methods
    • Test Database
    • SetUp method
    • TearDown method

Contributors and Content Editors

Nancyvarkey, PoojaMoolya, Pravin1389