Read django.pdf text version

Django - High Level Python Web Framework.

MVC

Django - MVT

Model Class

Abstract Layer Which interact with DBMS. No need to write a single SQL command. Django Model represents the SUB SET of actual SQL tables or columns. Supports PostgreSQL, Mysql, Sqlite , Oracle and MSSQL and more.

View

Here we implement the Business Logic. What data is to be presented. Interact with Model and Templates to complete the request.

Template

How the data is present. Template Language to Write HTML. It support Inheritance and other features. We can create new tags and lters. {{variable_name}} , {{var_name | lters}} Tags:- {% for, if ,etc.. %}

UrlConf

Map URL's to View Functions. It use Regular Exp. to process URL's. URL patterns compile once, so it gives High performance.

Django Architecture

Wikicamp

Demo Project Project Structure $ django_admin.py startproject wikicamp $ ls wikicamp/ __init__.py manage.py settings.py urls.py $ cd wikicamp $ python manage.py startapp wiki $ cd wiki; ls __init__.py models.py tests.py views.py

On Eclipse IDE - PyDev

Information

5 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

146207