Web Development with Django Cookbook - Second Edition
eBook - ePub

Web Development with Django Cookbook - Second Edition

Aidas Bendoraitis

Partager le livre
  1. 384 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Web Development with Django Cookbook - Second Edition

Aidas Bendoraitis

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Over 70 practical recipes to help you create scalable websites using the Django 1.8 frameworkAbout This Book‱ This is the latest book on the market that will help you take advantage of the new features added to Django 1.8‱ This book consists of recipes of varying complexities to help you create multilingual, responsive, and scalable websites with Django‱ This updated edition teaches you major Django functions and will help you improve your skills by developing models, forms, views, and templatesWho This Book Is ForThis book is for intermediate-level and professional Django users who need to build projects that are multilingual, functional on devices of different screen sizes, and that scale over a period of time. If you have created websites with Django but you want to sharpen your knowledge and learn some good approaches to different aspects of web development, you should definitely read this book.What You Will Learn‱ Get started with the basic configuration necessary to start any Django project‱ Build a database structure out of reusable model mixins‱ Manage forms and views and get to know some useful patterns that are used to create them‱ Create handy template filters and tags that you can reuse in every project‱ Integrate your own functionality into the Django CMS‱ Manage hierarchical structures with MPTT‱ Import data from local sources and external web services as well as exporting your data to third parties‱ Implement a multilingual search with Haystack‱ Test and deploy your project efficientlyIn DetailDjango is a web framework that was designed to strike a balance between rapid web development and high performance. It has the capacity to handle applications with high levels of user traffic and interaction, and can integrate with massive databases on the backend, constantly collecting and processing data in real time.Through this book, you'll discover that collecting data from different sources and providing it to others in different formats isn't as difficult as you thought. It follows a task-based approach to guide you through all the web development processes using the Django framework. We'll start by setting up the virtual environment for a Django project and configuring it. Then you'll learn to write reusable pieces of code for your models and find out how to manage database schema changes using South migrations. After that, we'll take you through working with forms and views to enter and list data. With practical examples on using templates and JavaScript together, you will discover how to create the best user experience. In the final chapters, you'll be introduced to some programming and debugging tricks and finally, you will be shown how to test and deploy the project to a remote dedicated server.By the end of this book, you will have a good understanding of the new features added to Django 1.8 and be an expert at web development processes.Style and approachEvery chapter consists of practical examples and a mix of basic and advanced recipes that will guide you through the entire web development process, starting from project configuration and taking you right through to deployment.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Web Development with Django Cookbook - Second Edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Web Development with Django Cookbook - Second Edition par Aidas Bendoraitis en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatik et Webentwicklung. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2016
ISBN
9781785881329
Édition
2
Sous-sujet
Webentwicklung

Web Development with Django Cookbook Second Edition


Table of Contents

Web Development with Django Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with Django 1.8
Introduction
Working with a virtual environment
Getting ready
How to do it

How it works

See also
Creating a project file structure
Getting ready
How to do it

How it works

See also
Handling project dependencies with pip
Getting ready
How to do it

How it works

There's more

See also
Making your code compatible with both Python 2.7 and Python 3
Getting ready
How to do it

How it works

Including external dependencies in your project
Getting ready
How to do it

How it works

See also
Configuring settings for development, testing, staging, and production environments
Getting ready
How to do it

How it works

See also
Defining relative paths in the settings
Getting ready
How to do it

How it works

See also
Creating and including local settings
Getting ready
How to do it

How it works

See also
Setting up STATIC_URL dynamically for Subversion users
Getting ready
How to do it

How it works

See also
Setting up STATIC_URL dynamically for Git users
Getting ready
How to do it

How it works

See also
Setting UTF-8 as the default encoding for MySQL configuration
Getting ready
How to do it

How it works

Setting the Subversion ignore property
Getting ready
How to do it

How it works

See also
Creating the Git ignore file
Getting ready
How to do it

How it works

See also
Deleting Python-compiled files
Getting ready
How to do it

How it works

See also
Respecting the import order in Python files
Getting ready
How to do it

How it works

There's more

See also
Creating app configuration
Getting ready
How to do it

How it works

There is more

See also
Defining overwritable app settings
Getting ready
How to do it

How it works

2. Database Structure
Introduction
Using model mixins
Getting ready
How to do it

How it works

There's more

See also
Creating a model mixin with URL-related methods
Getting ready
How to do it

How it works

See also
Creating a model mixin to handle creation and modification dates
Getting ready
How to do it

How it works

See also
Creating a model mixin to take care of meta tags
Getting ready
How to do it

How it works

See also
Creating a model mixin to handle generic relations
Getting ready
How to do it

How it works

See also
Handling multilingual fields
Getting ready
How to do it

How it works

Using migrations
Getting ready
How to do it

How it works

See also
Switching from South migrations to Django migrations
Getting ready
How to do it

How it works

See also
Changing a foreign key to the many-to-many field
Getting ready
How to do it

How it works

See also
3. Forms and Views
Introduction
Passing HttpRequest to the form
Getting ready
How to do it

How it works

See also
Utilizing the save method of the form
Getting ready
How to do it

How it works

See also
Uploading images
Getting ready
How to do it

How it works

There's more
See also
Creating a form layout with django-crispy-forms
Getting ready
How to do it

How it works

There's more

See also
Downloading authorized files
Getting ready
How to do it

How it works

See also
Filtering object lists
Getting ready
How to do it

How it works

See also
Managing paginated lists
Getting ready
How to do it

How it works

See also
Composing class-based views
Getting ready
How to do it

How it works

There's more

See also
Generating PDF documents
Getting ready
How to do it

How it works

See also
Implementing a multilingual search with Haystack
Getting ready
How to do it

How it works

See also
4. Templates and JavaScript
Introduction
Arranging the base.html template
Getting ready
How to do it

How it works

See also
Including JavaScript settings
Getting ready
How to do it

How it works

See also
Using HTML5 data attributes
Getting ready
How to do it

How it works

See also
Opening object details in a modal dialog
Getting ready
How to do it

How it works

See also
Implementing a continuous scroll
Getting ready
How to do it

How it works

See also
Implementing the Like widget
Getting ready
How to do it

How it works

See also
Uploading images by Ajax
Getting ready
How to do it

How it works

See also
5. Custom Template Filters and Tags
Introduction
Following conventions for your own template filters and tags
How to do it...
Creating a template filter to show how many days have passed since a post was published
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a template filter to extract the first media object
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a template filter to humanize URLs
Getting ready
How to do it...
How it works...
See also
Creating a template tag to include a template if it exists
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a template tag to load a QuerySet in a template
Getting ready
How to do it...
How it works...
See also
Creating a template tag to parse content as a template
Getting ready
How to do it...
How it works...
See also
Creating a template tag to modify request query parameters
Getting rea...

Table des matiĂšres