Getting started with Django : develop simple web applications with the powerful Django framework
Book information
Description
This book features a step-by-step approach that shows you how to program, create, and improve the quality of web applications using Django, with the help of Python. This is an ideal book for developers who want to improve the quality and maintenance of their web application, and who already have knowledge of Python and web development. Abstract: This book features a step-by-step approach that shows you how to program, create, and improve the quality of web applications using Django, with the help of Python. This is an ideal book for developers who want to improve the quality and maintenance of their web application, and who already have knowledge of Python and web development Content: Cover Copyright Credits About the Author About the Reviewers www.PacktPub.com Table of Contents Preface Chapter 1: Django's Position on the Web From Web 1.0 to Web 2.0 Web 1.0 Web 2.0 What is Django? Django -- a web framework The MVC framework Why use Django? Summary Chapter 2: Creating a Django Project Installing Python 3 Installing Python 3 for Windows Installing Python 3 for Linux Installing Python 3 for Mac OS Installing setuptools Installing setuptools for Windows Installing setuptools for Linux Installing setuptools for Mac OS Installing PIP. Installing PIP for WindowsInstalling PIP for Linux Installing PIP for Mac OS Installing Django Installing Django for Windows Installing Django for Linux Installing Django for Mac OS Starting your project with Django Creating an application Configuring the application Summary Chapter 3: Hello World! with Django Routing in Django Regular expressions The uninterpreted characters The beginning and the end of the line The any character regular expression The character classes Validating the number of characters Creating our first URL Creating our first view. Testing our applicationSummary Chapter 4: Working with Templates Displaying Hello world! in a template Injecting the data from the view to the template Creating dynamic templates Integrating variables in templates Conditional statements Looping in a template Using filters The upper and lower filters The lower filter The upper filter The capfirst filter The pluralize filter The escape and safe to avoid XSS filters The linebreaks filter The truncatechars filter Creating DRY URLs Extending the templates Using static files in templates Summary Chapter 5: Working with Models. Databases and DjangoMigrations with South Installing South Using the South extension Creating simple models The UserProfile model The Project model The relationship between the models Creating the task model with relationships Extending models The admin module Installing the module Using the module Advanced usage of models Using two relationships for the same model Defining the str method Summary Chapter 6: Getting a Model's Data with Querysets The persisting model's data on the database Filling a model and saving it in the database Getting data from the database. Getting multiple recordsGetting only one record Getting a model instance from the queryset instance Using the get parameter Saving the foreign key Updating records in the database Updating a model instance Updating multiple records Deleting a record Getting linked records Advanced usage of the queryset Using an OR operator in a queryset Using the lower and greater than lookups Performing an exclude query Making a raw SQL query Summary Chapter 7: Working with Django Forms Adding a developer without using Django forms Template of an HTML form.
Similar books
Django 1.1 testing and debugging building rigorously tested and bug-free Django applications
2010 · EPUB
Getting Started with Django
2014 · PDF
Django Essentials
2014 · PDF
EXCEL 2023 CRASH COURSE: Master Excel 2023 With This Complete Crash Course In 7 Days
2022 · EPUB
The arraignment and tryall with a declaration of the Ranters also, several sentences proceedings at the sessions in the Old-Baily, and Councel of War: their protestations and the hanging of one up by the thumbs; with divers penalties to be inflicted upon others. The dancing and revelling of Dr. Buckeridge and his wife, and other gent. dancing all in white, in Berkshire, and their Christmas carol. A dispute between a Ranter in Bridewel, and one that came to see him; with his creed and pater noster: and the names of the false gods they worship. As also, a list of many of the Ranters, from whence they are derived: and of many hundreds of them in England
2019 · EPUB
The discoverer; vvherein is set forth (to undeceive the nation) the reall plots and stratagems of Lievt. Col. John Lilburn, Mr. William Walwyn, Mr. Thomas Prince, Mr. Richard Overton, and that partie ... Namely, under the pretence and colour of libertie ... a most dangerous and destructive designe is carried on to deprive the nation of their religion, rights, liberties, proprieties, lawes, government, &c. and to bring a totall and universall ruine upon the land. And so much is here clearely proved. The first part
2019 · EPUB
An act to impower Sir John Molesworth: Baronet, and Joseph Moyle, Esquire, Two of the surviving Trustees, in an Indenture, dated the Twenty-Fifth Day of December One thousand Seven hundred and Forty-Three, to raise the several Sums in the said Indenture mentioned, or such of them as are still unsatisfied, and pay the same, as well as the rest of the personal Estate of Hugh Gregor, deceased, to such Person as Jane Gregor, an Infant, shall marry during her Infancy, with the Consent of the surviving Trustees, and of her Guardians
EPUB
Case Histories
2008 · EPUB