17

Django

Embed Size (px)

Citation preview

Page 1: Django
Page 2: Django

is a

Python Framework

Page 3: Django

What is

Google defines Django as“Django is a high-level Python Web framework that

encourages rapid development and clean, pragmatic design”

In much simple terms it is best suitable for perfectionists with deadlines.

i.e. SOFTWARE BACKED BY DATABASE.

Page 4: Django

Django Interface

Page 5: Django

Django code || to Python

Page 6: Django

STEPS1. Requirements planning

evaluate user’s demand.2. User design

deciding on the design of the user interface.

3. Rapid constructionbuild a prototype and demonstrate it to the user.

4. Cutover Convert from prototype

to final product.

Page 7: Django

MVT Structure (Model View Template)

Model database

interfaceView logic for database

I/O Template display logic

Page 8: Django

Fast Rapid Application Development Secure Helps developer avoiding

security concerns Scalable Quick and flexible scaling. Provides both admin and client control Features ORM i.e. Object Relational

Mapping Encapsulates the code needed to

manipulate data Saves from SQL Prevents from reinventing the

wheel/hustle free development. Loosely Coupled

detailed explanation..

Why Django?

Page 9: Django

TRADITIONAL MODELS DJANGO

Build Data Dictionary Built-in

Build Data Base Interface Built-in

Build Authoring Tools Built-in

Build Logic Built-in

Build Data Flow Built-in

Paint Templates Built-in

Page 10: Django
Page 11: Django

Cross Site Scripting (XSS) ProtectionCross Site Request Forgery (CSRF) ProtectionSQL Injection ProtectionClickjacking ProtectionSSL/HTTPSHost Header ValidationSession SecurityUser upload content

Security

Page 12: Django

DJANGO is ‘LOOSELY’ COUPLED !

Coupling in programming refers to the inter dependency of modules.

Thus, program efficiency is inversely proportional to coupling. Django is loosely coupled and thus provides better effeciency.

Page 13: Django

ShabingoInstagramCrowdStreetParts of windows appQuizZoddleIt.MagezinePinterest

5000+ apps

Web applications using Django (completely or partially)

Page 14: Django
Page 15: Django

1. Install Python from https://python.org/download/ (Since it’s a python framework Python installation is

must)2. Install Setup tools from

https://pypi.python.org/pypi/setuptools3. Install PIP from

https://pip.pypa.io/en/latest/installing.html i.e. Python Package Index, works as a python manager.4. Install Django from

https://www.djangoproject.com/download/5. Django officially supports database

1. PostgreSQL2. MySQL3. SQLite

Install

Page 16: Django

Common pitfalls and their solutions

Problem Django-admin may only display text no matter what argument is given.

This occurs due to problem with file association in Windows

Solution Check if there is more than one environment variable set for running

Python scripts in PATH. This usually occurs when there is more than one Python version installed.

Page 17: Django

Problem There might be problem in running the commands easy_install pip and pip install django. This happens when connecting internet behind the proxy.

Solution Set environment variables for proxy configuration in

command prompt as :-