reed.co.uk Courses

Header

Django Unchained with Python


EduCBA

Summary

Price
£10 inc VAT
Study method
Online, self-paced
Qualification
No formal qualification

1 student purchased this course

Add to basket or enquire

Overview

What is Django and Python

Django is open-source free web software written in Python language enabling faster creation and deployment of web applications. It was developed and maintained by Django Software Foundation, it is based on the Model- View-Controller (MVC) Architectural pattern. It is scalable, secure and easy to implement taking away much of the hassles associated with website and applications development.

Python is an object oriented, open source interactive, general purpose high-level language available under General Public License (GPL). It was developed by Guido van Rossum of National Research Institute for Mathematics and Computer Science, Netherlands in 1985-90. It’s an interpreted language wherein the commands are processed at runtime by the interpreter. It was derived from Algol-68, C, C++, Modula-3, ABC and other scripting languages.

About Django and Python Course

The Django Unchained with Python Course is intended to help learns have mastery over developing websites, applications using DJango and Python language. It is a comprehensive web applications course providing knowledge of HTML, CSS and related topics. The course is intended to provide basic to intermediate knowledge of web application development using Django and Python.
The course is divided into 57 lectures and has 10 hours of HD Video.

Description

Introduction to Django:

This introductory module covers the basics of Django, its main features and specialities. It gives an awareness of the MVC Architectural platform, MVT (Model View Template) platforms. Django supports the MVC pattern just as modern frameworks do. Installation of Django and Pip. The latter is a package for installing and uninstalling Python packages.
It also guides the user into creation of the first project. Every web app created on Django is a project and each project is composed of applications. If you are building a website, it is a project and all the contact engine, forum and news are applications. The various techniques used to create projects are also dealt in this section.

Creating Models:

This section deals with creating models for managing data. MVC models are used for managing data. Model classes are manually generated or taken from database. It also deals with creating polls in the website using Poll module. It deals with setting up questions, answers and setting votes. Django API is also covered in this section. Once models are created, Django is informed of the use of the model. Field options, database fields ,relationships are dealt in this section. Best practices related to models is also specified- model naming, relationship field naming, related-name, denormalisation, booleanfield, choices, use of objects, redundant model names,

How to create Super User

Creating a superuser, creating choices, adding filters and customizing templates. Creating templates using Django template system, how Python and HTML are separately used by Django- for views and templates respectively.

Creating Public Interface:

Creating Universal Resource Locator (URL), regular expressions, and writing views are covered in this section. Views are related to an application’s User Interface and how data is displayed to the final user. Various file extensions correspond to languages used –HTML, ASPX, CSHTML, VBHTML, MVC Framework engines, Razor Engine, ASPX Engine are covered in this section.

How to organize templates:

Django template language, HTML, text based template language. Template is a text based file and can generate any text-based format (HTML, XML, CSV). Template has variables that get replaced by values and tags that control the logic of the template. Variables for display are modified by using filters. Topics covered are Rendering Templates, Template Namespacing, hardcoded URLs and creating a form.

Python is used in views and HTML in templates – Django links the two with rendering function and use of Django Template Language (DTL). The rendering function has three parameters- the initial request, path to the template and dictionary that contains all the variables needed in the template. DTL is a mini language for defining user-facing layer .

How to create a form application?

This section deals with creation of forms in Django hat enable collection of information and data from the visitors or users of a website. This is validated and turned into objects in Python. Forms are created by Django based on model definitions given by users. The section also deals with adding fields to forms, default form overrides,testing forms, validation and conversion of objects into Python, rendering and boundfields. amending URLs, amending views

Theories of Django Unchained with Python

This part covers the core concepts of the working of Python and Django. Topics covered- Automated Tests, Basic Testing Strategies, Fixing Bugs and Testing Views. Automated testing is done to ensure code quality which saves lot of time and effort on manual testing. Django later versions have a testing framework and it looks for any files with tests.psy. Using the Django Testing framework, running the tests, and related topics are covered in this section.

Improving Views and Writing Tests

View is the process whereby a web request is accepted in Python and results in a web response. It can be in HTML,XML, redirect or a 404 error. A view has to be associated with a URL to be seen a s web page. In Django it is created in app views.py.file.

Setup Tools

Setup tools enable users to download software and run python setup.py.test. Users need to define test_suite variable but Django does have a test runner.

Field options and choices:

This section deals with the field options –null (Field.null), blank are dealt with. Field.choices are various choices for selection given in a field name. For eg in English proficiency: Beginner-BE, Intermediate-IR, Expert-EX, Certified –CR. How to define choices in a model class, constants for each value are covered in this section.

Custom field types:

This section deals with different types of custom fields in web applications and how they are defined in Django. AutoField, BigIntegerField, BinaryField, BooleanField, CharField, CommaSeparatedIntegerField, DateField, DateTimeField, DecimelField, DurationField, EmailField, FileField, FilePathField, FloatField, ImageField, IntegerField, Generic IPAddressField, SlugField, URL Field, TimeField, UUID Field etc and how they are represented.

Django also deals with relationship fields that represent relations:

ForeignKey, ManyToManyField, onetoone field. Custom fields have flags depending on their attributes- Field.auto_created, Field.concrete, Field.hidden , field.is_relation, Field.model.

Requirements of Django unchained with Python course

The course assumes only basic computer knowledge, and it is desirable to have knowledge of Python 3.3 or 2.7, HTML and CSS. However, the user should be familiar with basics of object-oriented programming, and its procedures, data, control structures, variables, objects and classes. A basic understanding of computer programming terminologies will be an advantage. More importantly, the student should have a passion to learn. It is targeted at students, professionals, web developers and anyone interested in python and django for website development.

Why learn Django and Python?

Django that works on Python Web framework is now an indispensable tool for fast creation and deployment of websites and applications. It doesn’t require the writing of complex code, it is open source and free. It is secure, and scalable. Python is a high-level object oriented programming language that encapsulates code with objects. It uses English keywords and has fewer syntax rules, ideal for those new to programming. It can be used for a wide range of web applications that can be developed quicker and faster from simple text processing, games and browsers.

Questions and answers

No questions or answers have been posted about this course.

Rating and reviews

There haven't been any reviews for this course yet.

Please sign in to review this course.