A small presentation by me at the Barcamp Vienna in Sept. 2007 where I tried to give a short overview about some of the features I really love about Django :D
GWT is a Java-based framework that allows developers to create complex JavaScript applications and deploy them as optimized JavaScript. It includes a widget library and allows communication with a server through simple RPC calls. GWT compiles Java code to optimized JavaScript that is minimized for efficient loading on browsers. It aims to ease the creation of both web pages and full web applications.
Overview of Maven and its concepts
Maven and its ecosystem
Good and bad practices
Usecases
Maven, and the future of Maven 3.x
---
Delta prez @GenevaJug :
New slides : 64,65,90,95
Updated slides : 49-51;66;91;92;118
Thx @fcamblor
Rapid web application development using django - Part (1)Nishant Soni
This slide contains deatils about Django Framework which is based in Python. Beginners to this technology can first learn about the technology and its uses and than start building their project. Popular website like Pinterest, Instagram, Nasa are examples of web application built in Django Framework. This is part 1 .
The document discusses JavaScript libraries and compares several popular options. It covers the core functionality that libraries should provide, including DOM manipulation, events, AJAX, and animations. It also discusses user interface widgets and components commonly included in libraries. Popular open source libraries like Prototype, jQuery, Yahoo UI, Dojo, and Mootools are described and compared in terms of their features, architecture, community, and other qualities. The document provides an overview to help developers choose a JavaScript library.
The document discusses the Django web application framework. It describes Django as a high-level Python framework that encourages rapid development and clean design. It outlines Django's architecture, which follows an MVT pattern with models, views, templates, and a URL dispatcher. It also discusses Django's modules, like forms, administration, caching, and signals. An example project is provided to demonstrate starting a project, adding an app with a model, and exploring the admin interface.
Django is a high-level Python web framework that encourages rapid development. It was created in 2003 to help with fast-moving newsroom deadlines. Django makes building better web apps quicker with less code. It is fast, secure, scalable, and versatile. Django follows the MVT framework where models retrieve data, templates render views, and urls handle user interactions to display views. Websites built with Django are composed of reusable apps like forums, blogs, and wikis.
This session is about Django, which is a web framework build in python. It has several features like admin interface and ORM. The architecture of Django has Model, View, and template and it's ORM saves the pain of writing database queries.
GWT is a Java-based framework that allows developers to create complex JavaScript applications and deploy them as optimized JavaScript. It includes a widget library and allows communication with a server through simple RPC calls. GWT compiles Java code to optimized JavaScript that is minimized for efficient loading on browsers. It aims to ease the creation of both web pages and full web applications.
Overview of Maven and its concepts
Maven and its ecosystem
Good and bad practices
Usecases
Maven, and the future of Maven 3.x
---
Delta prez @GenevaJug :
New slides : 64,65,90,95
Updated slides : 49-51;66;91;92;118
Thx @fcamblor
Rapid web application development using django - Part (1)Nishant Soni
This slide contains deatils about Django Framework which is based in Python. Beginners to this technology can first learn about the technology and its uses and than start building their project. Popular website like Pinterest, Instagram, Nasa are examples of web application built in Django Framework. This is part 1 .
The document discusses JavaScript libraries and compares several popular options. It covers the core functionality that libraries should provide, including DOM manipulation, events, AJAX, and animations. It also discusses user interface widgets and components commonly included in libraries. Popular open source libraries like Prototype, jQuery, Yahoo UI, Dojo, and Mootools are described and compared in terms of their features, architecture, community, and other qualities. The document provides an overview to help developers choose a JavaScript library.
The document discusses the Django web application framework. It describes Django as a high-level Python framework that encourages rapid development and clean design. It outlines Django's architecture, which follows an MVT pattern with models, views, templates, and a URL dispatcher. It also discusses Django's modules, like forms, administration, caching, and signals. An example project is provided to demonstrate starting a project, adding an app with a model, and exploring the admin interface.
Django is a high-level Python web framework that encourages rapid development. It was created in 2003 to help with fast-moving newsroom deadlines. Django makes building better web apps quicker with less code. It is fast, secure, scalable, and versatile. Django follows the MVT framework where models retrieve data, templates render views, and urls handle user interactions to display views. Websites built with Django are composed of reusable apps like forums, blogs, and wikis.
This session is about Django, which is a web framework build in python. It has several features like admin interface and ORM. The architecture of Django has Model, View, and template and it's ORM saves the pain of writing database queries.
This document provides an overview of the Django web framework. It begins with defining Django as a powerful and flexible Python web framework that is free, simple, and fast. It then covers Django's architecture, why it is useful for web development due to features like its MVT design and automatic admin interface, and its primary focus on dynamic and database-driven websites. The document also discusses Django's components, the process of getting started with a Django project, and differences between versions 1.5 and 1.7.
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It is best suited for developers working to tight deadlines who need to get a prototype up and running quickly. Django uses the MVT (Model View Template) structure, with the Model interfacing with the database, the View handling logic, and Templates managing the display. It provides many features out of the box like an object-relational mapper and built-in authorization tools to streamline the development process.
› Django is a Python-based web framework that allows for rapid development of web applications. It handles common tasks like database abstraction, forms, sessions, site maps, and administration interfaces out of the box. Django emphasizes reusability and modularity through reusable apps and a MTV (model-template-view) pattern that encourages DRY (Don't Repeat Yourself) principles. Popular sites like Instagram and Pinterest use Django for its flexibility and productivity.
- Django is a free open source web framework written in Python that allows for rapid development of secure and maintainable websites.
- It follows the MVT (Model View Template) architectural pattern with Models representing data, Views handling business logic, and Templates for presentation.
- To create a Django project, you install Django, start a project with django-admin, add apps, define models, views, URLs, templates, and test. Django provides generated starter code and admin interface.
- An example Todo app was demonstrated with a Task model having fields like name, description, owner, responsibilities, and completion status.
The document discusses the Django web framework. It provides an overview of key Django components like models, views, and urls. It also highlights some popular Django tools like the admin interface, generic views, tags, and filters. Examples are given of how to use generic views and custom tags. The document also briefly discusses Django deployment options and resources for learning more about Django.
Why Django is The Go-To Framework For Python.pdfMindfire LLC
Python is a powerful high-level programming language with potential applications in numerous industries. These disciplines might include everything from web development to automation and data science. It has great libraries and frameworks, such as bottle, pyramid, flask, pandas, selenium, NumPy, PyTorch, OpenCV, etc. In addition, Django is one such Python framework primarily used for web development.
Django is a free, open source web framework written in Python that follows the MVT (Model View Template) architectural pattern. It features an ORM (Object Relational Mapper) that provides a powerful interface to interact with databases, automatic admin interfaces to manage models, templates that separate application and presentation logic, and other features like clean URLs, reusable components, and caching. Django helps build large websites quickly, keeps them running smoothly, and avoids crashes through its robust design.
Youtube Link: https://youtu.be/C1OfG7IK5jo
** Python Django Training: https://www.edureka.co/python-django **
This Edureka PPTon "Django Interview Questions and Answers" will help you understand the 50 most asked Django Interview Questions with their best answers. It will help in preparing for your upcoming Django Developer Interviews.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This document provides an overview of the Django web framework. It begins with definitions of Django and its model-view-template architecture. It then discusses Django's design philosophies of being loosely coupled, encouraging less coding through the DRY principle, and enabling fast development. The document outlines how to set up a Django environment, create a project and apps, develop views, integrate templates, and link everything together through URLs. In summary, it serves as a seminar covering the basic concepts and processes for building websites using the Django web framework in Python.
Company Visitor Management System Report.docxfantabulous2024
The document provides an overview of a Company Visitor Management System project. It includes sections on the project introduction, modules, requirements, analysis and design, database tables, implementation, evaluation, and conclusion. The system is a web-based application built with Python, Django, and MySQL to more effectively manage and track company visitors through features like adding visitors, generating reports, and password recovery/management. UML diagrams including use cases, classes, entities, and data flow are included to visualize the system design.
This document provides an overview of the Django web development framework. Django makes web development faster and easier by eliminating repetitive tasks. It follows the model-view-template architectural pattern. Django was first created in 2003 and its development is now maintained by the Django Software Foundation. Key advantages of Django include its object-relational mapping support, administrative GUI, and support for rapid development. Popular sites like Instagram and Pinterest use Django for its scalability, security, and large developer community.
Django is a free and open source web application framework written in Python. A framework is nothing more than a collection of modules that make development easier. Read More: https://www.andolasoft.com/blog/django-workflow-and-architecture.html
Sanjay Rathore presents an introduction to the Django web framework. He discusses key features of Django including rapid development, security, and scalability. He outlines the MVT (Model View Template) architecture, describing the roles of each component. He also demonstrates how to install Django, set up a virtual environment, and build a basic MVT application with URL routing and templates. Pros of Django include its Python-based code, database management, and security, while cons are its potential heaviness for small projects.
This presentation provides an overview of the Django web framework, including what it is, where it came from, what its features are, and some examples of companies that use it. Django is an open-source Python web framework that aims to ease the creation of database-driven websites. It was originally developed to manage fast news sites and emphasizes rapid development and high performance. The presentation describes Django's main components and features.
This document introduces Django, an open-source Python web framework. It discusses what Django is, why it is useful for building dynamic web applications, and some of its key features like automatic admin interfaces and convention over configuration. The document then provides a tutorial on basic Django components like models, urls, views and templates. It concludes by listing additional Django resources and information about Usware Technologies, the company presenting.
This document provides an overview of key concepts in Django including: installation and setup using pip and virtual environments; the built-in admin interface; the model-view-template pattern; handling URLs and routes; middleware; static files; database migrations; model forms; and Django forms. It explains that Django is a Python web framework that handles common web development tasks to allow developers to focus on application code.
𝐔𝐧𝐯𝐞𝐢𝐥 𝐭𝐡𝐞 𝐅𝐮𝐭𝐮𝐫𝐞 𝐨𝐟 𝐄𝐧𝐞𝐫𝐠𝐲 𝐄𝐟𝐟𝐢𝐜𝐢𝐞𝐧𝐜𝐲 𝐰𝐢𝐭𝐡 𝐍𝐄𝐖𝐍𝐓𝐈𝐃𝐄’𝐬 𝐋𝐚𝐭𝐞𝐬𝐭 𝐎𝐟𝐟𝐞𝐫𝐢𝐧𝐠𝐬
Explore the details in our newly released product manual, which showcases NEWNTIDE's advanced heat pump technologies. Delve into our energy-efficient and eco-friendly solutions tailored for diverse global markets.
Discover timeless style with the 2022 Vintage Roman Numerals Men's Ring. Crafted from premium stainless steel, this 6mm wide ring embodies elegance and durability. Perfect as a gift, it seamlessly blends classic Roman numeral detailing with modern sophistication, making it an ideal accessory for any occasion.
https://rb.gy/usj1a2
This document provides an overview of the Django web framework. It begins with defining Django as a powerful and flexible Python web framework that is free, simple, and fast. It then covers Django's architecture, why it is useful for web development due to features like its MVT design and automatic admin interface, and its primary focus on dynamic and database-driven websites. The document also discusses Django's components, the process of getting started with a Django project, and differences between versions 1.5 and 1.7.
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It is best suited for developers working to tight deadlines who need to get a prototype up and running quickly. Django uses the MVT (Model View Template) structure, with the Model interfacing with the database, the View handling logic, and Templates managing the display. It provides many features out of the box like an object-relational mapper and built-in authorization tools to streamline the development process.
› Django is a Python-based web framework that allows for rapid development of web applications. It handles common tasks like database abstraction, forms, sessions, site maps, and administration interfaces out of the box. Django emphasizes reusability and modularity through reusable apps and a MTV (model-template-view) pattern that encourages DRY (Don't Repeat Yourself) principles. Popular sites like Instagram and Pinterest use Django for its flexibility and productivity.
- Django is a free open source web framework written in Python that allows for rapid development of secure and maintainable websites.
- It follows the MVT (Model View Template) architectural pattern with Models representing data, Views handling business logic, and Templates for presentation.
- To create a Django project, you install Django, start a project with django-admin, add apps, define models, views, URLs, templates, and test. Django provides generated starter code and admin interface.
- An example Todo app was demonstrated with a Task model having fields like name, description, owner, responsibilities, and completion status.
The document discusses the Django web framework. It provides an overview of key Django components like models, views, and urls. It also highlights some popular Django tools like the admin interface, generic views, tags, and filters. Examples are given of how to use generic views and custom tags. The document also briefly discusses Django deployment options and resources for learning more about Django.
Why Django is The Go-To Framework For Python.pdfMindfire LLC
Python is a powerful high-level programming language with potential applications in numerous industries. These disciplines might include everything from web development to automation and data science. It has great libraries and frameworks, such as bottle, pyramid, flask, pandas, selenium, NumPy, PyTorch, OpenCV, etc. In addition, Django is one such Python framework primarily used for web development.
Django is a free, open source web framework written in Python that follows the MVT (Model View Template) architectural pattern. It features an ORM (Object Relational Mapper) that provides a powerful interface to interact with databases, automatic admin interfaces to manage models, templates that separate application and presentation logic, and other features like clean URLs, reusable components, and caching. Django helps build large websites quickly, keeps them running smoothly, and avoids crashes through its robust design.
Youtube Link: https://youtu.be/C1OfG7IK5jo
** Python Django Training: https://www.edureka.co/python-django **
This Edureka PPTon "Django Interview Questions and Answers" will help you understand the 50 most asked Django Interview Questions with their best answers. It will help in preparing for your upcoming Django Developer Interviews.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This document provides an overview of the Django web framework. It begins with definitions of Django and its model-view-template architecture. It then discusses Django's design philosophies of being loosely coupled, encouraging less coding through the DRY principle, and enabling fast development. The document outlines how to set up a Django environment, create a project and apps, develop views, integrate templates, and link everything together through URLs. In summary, it serves as a seminar covering the basic concepts and processes for building websites using the Django web framework in Python.
Company Visitor Management System Report.docxfantabulous2024
The document provides an overview of a Company Visitor Management System project. It includes sections on the project introduction, modules, requirements, analysis and design, database tables, implementation, evaluation, and conclusion. The system is a web-based application built with Python, Django, and MySQL to more effectively manage and track company visitors through features like adding visitors, generating reports, and password recovery/management. UML diagrams including use cases, classes, entities, and data flow are included to visualize the system design.
This document provides an overview of the Django web development framework. Django makes web development faster and easier by eliminating repetitive tasks. It follows the model-view-template architectural pattern. Django was first created in 2003 and its development is now maintained by the Django Software Foundation. Key advantages of Django include its object-relational mapping support, administrative GUI, and support for rapid development. Popular sites like Instagram and Pinterest use Django for its scalability, security, and large developer community.
Django is a free and open source web application framework written in Python. A framework is nothing more than a collection of modules that make development easier. Read More: https://www.andolasoft.com/blog/django-workflow-and-architecture.html
Sanjay Rathore presents an introduction to the Django web framework. He discusses key features of Django including rapid development, security, and scalability. He outlines the MVT (Model View Template) architecture, describing the roles of each component. He also demonstrates how to install Django, set up a virtual environment, and build a basic MVT application with URL routing and templates. Pros of Django include its Python-based code, database management, and security, while cons are its potential heaviness for small projects.
This presentation provides an overview of the Django web framework, including what it is, where it came from, what its features are, and some examples of companies that use it. Django is an open-source Python web framework that aims to ease the creation of database-driven websites. It was originally developed to manage fast news sites and emphasizes rapid development and high performance. The presentation describes Django's main components and features.
This document introduces Django, an open-source Python web framework. It discusses what Django is, why it is useful for building dynamic web applications, and some of its key features like automatic admin interfaces and convention over configuration. The document then provides a tutorial on basic Django components like models, urls, views and templates. It concludes by listing additional Django resources and information about Usware Technologies, the company presenting.
This document provides an overview of key concepts in Django including: installation and setup using pip and virtual environments; the built-in admin interface; the model-view-template pattern; handling URLs and routes; middleware; static files; database migrations; model forms; and Django forms. It explains that Django is a Python web framework that handles common web development tasks to allow developers to focus on application code.
𝐔𝐧𝐯𝐞𝐢𝐥 𝐭𝐡𝐞 𝐅𝐮𝐭𝐮𝐫𝐞 𝐨𝐟 𝐄𝐧𝐞𝐫𝐠𝐲 𝐄𝐟𝐟𝐢𝐜𝐢𝐞𝐧𝐜𝐲 𝐰𝐢𝐭𝐡 𝐍𝐄𝐖𝐍𝐓𝐈𝐃𝐄’𝐬 𝐋𝐚𝐭𝐞𝐬𝐭 𝐎𝐟𝐟𝐞𝐫𝐢𝐧𝐠𝐬
Explore the details in our newly released product manual, which showcases NEWNTIDE's advanced heat pump technologies. Delve into our energy-efficient and eco-friendly solutions tailored for diverse global markets.
Discover timeless style with the 2022 Vintage Roman Numerals Men's Ring. Crafted from premium stainless steel, this 6mm wide ring embodies elegance and durability. Perfect as a gift, it seamlessly blends classic Roman numeral detailing with modern sophistication, making it an ideal accessory for any occasion.
https://rb.gy/usj1a2
SATTA MATKA SATTA FAST RESULT KALYAN TOP MATKA RESULT KALYAN SATTA MATKA FAST RESULT MILAN RATAN RAJDHANI MAIN BAZAR MATKA FAST TIPS RESULT MATKA CHART JODI CHART PANEL CHART FREE FIX GAME SATTAMATKA ! MATKA MOBI SATTA 143 spboss.in TOP NO1 RESULT FULL RATE MATKA ONLINE GAME PLAY BY APP SPBOSS
Best practices for project execution and deliveryCLIVE MINCHIN
A select set of project management best practices to keep your project on-track, on-cost and aligned to scope. Many firms have don't have the necessary skills, diligence, methods and oversight of their projects; this leads to slippage, higher costs and longer timeframes. Often firms have a history of projects that simply failed to move the needle. These best practices will help your firm avoid these pitfalls but they require fortitude to apply.
Cover Story - China's Investment Leader - Dr. Alyce SUmsthrill
In World Expo 2010 Shanghai – the most visited Expo in the World History
https://www.britannica.com/event/Expo-Shanghai-2010
China’s official organizer of the Expo, CCPIT (China Council for the Promotion of International Trade https://en.ccpit.org/) has chosen Dr. Alyce Su as the Cover Person with Cover Story, in the Expo’s official magazine distributed throughout the Expo, showcasing China’s New Generation of Leaders to the World.
Part 2 Deep Dive: Navigating the 2024 Slowdownjeffkluth1
Introduction
The global retail industry has weathered numerous storms, with the financial crisis of 2008 serving as a poignant reminder of the sector's resilience and adaptability. However, as we navigate the complex landscape of 2024, retailers face a unique set of challenges that demand innovative strategies and a fundamental shift in mindset. This white paper contrasts the impact of the 2008 recession on the retail sector with the current headwinds retailers are grappling with, while offering a comprehensive roadmap for success in this new paradigm.
The Genesis of BriansClub.cm Famous Dark WEb PlatformSabaaSudozai
BriansClub.cm, a famous platform on the dark web, has become one of the most infamous carding marketplaces, specializing in the sale of stolen credit card data.
The Most Inspiring Entrepreneurs to Follow in 2024.pdfthesiliconleaders
In a world where the potential of youth innovation remains vastly untouched, there emerges a guiding light in the form of Norm Goldstein, the Founder and CEO of EduNetwork Partners. His dedication to this cause has earned him recognition as a Congressional Leadership Award recipient.
Digital Marketing with a Focus on Sustainabilitysssourabhsharma
Digital Marketing best practices including influencer marketing, content creators, and omnichannel marketing for Sustainable Brands at the Sustainable Cosmetics Summit 2024 in New York
Best Competitive Marble Pricing in Dubai - ☎ 9928909666Stone Art Hub
Stone Art Hub offers the best competitive Marble Pricing in Dubai, ensuring affordability without compromising quality. With a wide range of exquisite marble options to choose from, you can enhance your spaces with elegance and sophistication. For inquiries or orders, contact us at ☎ 9928909666. Experience luxury at unbeatable prices.
The Steadfast and Reliable Bull: Taurus Zodiac Signmy Pandit
Explore the steadfast and reliable nature of the Taurus Zodiac Sign. Discover the personality traits, key dates, and horoscope insights that define the determined and practical Taurus, and learn how their grounded nature makes them the anchor of the zodiac.
Garments ERP Software in Bangladesh _ Pridesys IT Ltd.pdfPridesys IT Ltd.
Pridesys Garments ERP is one of the leading ERP solution provider, especially for Garments industries which is integrated with
different modules that cover all the aspects of your Garments Business. This solution supports multi-currency and multi-location
based operations. It aims at keeping track of all the activities including receiving an order from buyer, costing of order, resource
planning, procurement of raw materials, production management, inventory management, import-export process, order
reconciliation process etc. It’s also integrated with other modules of Pridesys ERP including finance, accounts, HR, supply-chain etc.
With this automated solution you can easily track your business activities and entire operations of your garments manufacturing
proces
Presentation by Herman Kienhuis (Curiosity VC) on Investing in AI for ABS Alu...Herman Kienhuis
Presentation by Herman Kienhuis (Curiosity VC) on developments in AI, the venture capital investment landscape and Curiosity VC's approach to investing, at the alumni event of Amsterdam Business School (University of Amsterdam) on June 13, 2024 in Amsterdam.
1. What is Django?
Features
References
Introducing Django
Horst Gutmann
September 30, 2007
1 / 34
2. What is Django?
Features
References
Disclaimer
I’m not of the developers of Django but merely a user who likes
what he’s seen. My experience is limited to small sites that can be
comfortably run on a shared host such as Dreamhost.
And I want to apologize for the noise my laptop is probably going
to make during the presentation ;-)
2 / 34
3. What is Django?
General
Features
What do you need?
References
What is Django?
Django is a high-level Python Web framework that
encourages rapid development and clean, pragmatic
design.
[1]
Model-View-Controller for the Web
Written in Python
Explicit instead of implicit
Developed for the Lawrence Journal-World1 newspaper in
Kansas
1
http://www2.ljworld.com/
3 / 34
4. What is Django?
General
Features
What do you need?
References
What is an MVC web framework?
Abstraction
5 / 34
5. What is Django?
General
Features
What do you need?
References
Abstract HTTP
Do we really want to manually parse HTTP requests?
Frameworks should automate things like header creation
Allow easy cookie handling
6 / 34
6. What is Django?
General
Features
What do you need?
References
Abstract database calls
Page . o b j e c t s . g e t ( i d =10)
instead of
SELECT ∗ FROM page WHERE i d =10;
Not to mention keeping it backend independent and mapping the
resultset to objects in the used programming language.
8 / 34
7. What is Django?
General
Features
What do you need?
References
Dispatch URLs
URLs or URL patterns should be mapped to functions or
objects
... that then create the output.
u r l p a t t e r n s += p a t t e r n s ( ’ ’ ,
u r l ( ’ ˆ$ ’ , ’ v i e w s . i n d e x ’ ) ,
)
10 / 34
8. What is Django?
General
Features
What do you need?
References
MVC or MVT?
Django uses a little bit different naming for the
Model-View-Controller pattern.
Models abstract the used data by defining classes for them
and storing them in relational tables.
Views take the job of the controllers in MVC and basically
define, what the user gets to see. Functions, not
classes here.
Templates define how the users see the view
11 / 34
9. What is Django?
General
Features
What do you need?
References
Projects and Applications
Project A project is for example your whole website. Here
you store your central configuration and general
templates and images (just as an example).
Applications are where you store the actual functionality. For
example a weblog would be an application. An
account system would be an application ...
Applications are a simple way to share common functionality
between various projects.
12 / 34
10. What is Django?
General
Features
What do you need?
References
Easy start
Python2 (ideally 2.5 since sqlite is bundled with it)
a text editor
This is all you need to start developing with Django since Django
comes with its own lightweight webserver to make it very easy for
everyone to start playing around with it.
2
http://www.python.org
13 / 34
11. What is Django?
General
Features
What do you need?
References
Yet flexible
SQLite
FastCGI
MySQL
mod python
PostgreSQL
mod wsgi
Oracle in preparation
14 / 34
12. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Main features (for me)
A good collection of contributed applications
Administration interface
Authentication system
Comments system
...
Template language focused on inheritance
Simple form processing
No magic
15 / 34
13. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Administration interface I
16 / 34
14. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Administration interface II
Available in django.contrib.admin
Configured through model definitions
Configurable using templates (possible per model),
JavaScripts and CSS
Currently a rewrite using newforms is in the pipe.
17 / 34
15. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Authentication system3
django.contrib.auth
Just hook it in, and you get a login screen
... and usergroups
... and custom permissions
3
http://www.djangoproject.com/documentation/authentication/
18 / 34
16. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
django-registration5
By James Bennett4
Offers all you really need:
Simple registration form
E-mail activation
Works with django.contrib.auth
4
http://www.b-list.org/about/
5
http://code.google.com/p/django-registration/
19 / 34
17. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
The Template Language
Very restrictive
... to keep application logic within the View and the Model
Don’t let templates change the state of your site!
If you want to have complex code in your templates, you have
to define your own template tags in Python.
Inheritance between templates
You have to pass variables explicitly to the template from the
view
20 / 34
18. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Template Basics
Variables Rendered with
{{ variable_name }}
Tags allow you to do more sophisticated stuff while
keeping the actual Python code out of the template:
{% template_tag %}
Even conditional blocks are realized as tags.
Filters allow you to manipulate the output of a variable:
{{ variable|filter }}
E.g.: Escaping strings, converting from Markdown to
HTML, ...
22 / 34
19. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Template Inheritance6
The core of inheritance are blocks the templates.
base.html index.html
<html> {% extends ’base.html’ %}
<body> {% block title %}
<h1> Index page
{% block title %} {% endblock %}
{% endblock %} {% block content %}
</h1> ...
<div id=quot;contentquot;> {% endblock %}
{% block content %}
{% endblock %}
</div>
</body>
</html>
6
http://www.djangoproject.com/documentation/templates/
#template-inheritance
24 / 34
20. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
newforms7
”newforms” because there was something before that ... let’s
ignore the only form processing for now ;-)
Easy way to define forms
... to render them
... and to validate their data
Easily combinable with models (as you will see in the
demoapp)
7
http://www.djangoproject.com/documentation/newforms/
25 / 34
21. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Form definition
from d j a n g o import newforms a s f o r m s
c l a s s CommentForm ( m o d e l s . Form ) :
a u t h o r = form . C h a r F i e l d ( ’ Your name ’ )
e m a i l = form . E m a i l F i e l d ( ’ Your e−m a i l )
body = form . C h a r F i e l d ( ’ Comment ’ ,
w i d g e t=f o r m s . T e x t a r e a ( ) )
27 / 34
22. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Form output
{{ form . a s p }}
Results in:
<p> a b e l f o r=” i d a u t h o r ”>Your name :</ l a b e l>
<l
<i n p u t i d=” i d a u t h o r ” t y p e=” t e x t ” name=” a u t h o r ” m a x l e n g t h=” 100 ” /></p>
<p> a b e l f o r=” i d e m a i l ”>Your e−m a i l :</ l a b e l>
<l
<i n p u t i d=” i d e m a i l ” t y p e=” t e x t ” name=” e m a i l ” m a x l e n g t h=” 75 ” /> </p>
<p> a b e l f o r=” i d b o d y ”>Comment :</ l a b e l>
<l
<t e x t a r e a i d=” i d b o d y ” rows=” 10 ” c o l s=” 40 ” name=” body ”> t e x t a r e a>
</ </p>
29 / 34
23. What is Django? Contributed apps
Features The Template Language
References Simple Form Processing
Form data validation
Everything is done in Python, so it’s easily re-usable.
c l a s s CommentForm ( f o r m s . Form ) :
# ...
def c l e a n e m a i l ( s e l f ) :
e m a i l = s e l f . c l e a n e d d a t a [ ” e m a i l ” ] . s p l i t ( ”@” ) [ 1 ]
i f e m a i l i n [ ” h o t m a i l . com” , ” yahoo . com” ] :
r a i s e V a l i d a t i o n E r r o r , ” Get a GMail a c c o u n t ! ”
31 / 34
24. What is Django?
Features
References
“Django project site.” [Online]. Available:
http://www.djangoproject.com/
32 / 34
25. What is Django?
Features
References
Thank you
for your attention.
Any last question?
33 / 34
26. What is Django?
Features
References
Want to get some action?
If you liked what you saw, we could meet somewhere and build a
little website together :-)
34 / 34