Web development with Django cookbook: over 90 practical recipes to help you create scalable websites using the Django 1.8 framework
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Birmingham ; Mumbai
Packt Publishing
January 2016
|
Ausgabe: | Second editon |
Schriftenreihe: | Open source community experience distilled. Quick answers to common problems
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | ix, 361 Seiten Illustrationen |
ISBN: | 9781785886775 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV043509967 | ||
003 | DE-604 | ||
005 | 20161028 | ||
007 | t | ||
008 | 160413s2016 a||| |||| 00||| eng d | ||
020 | |a 9781785886775 |c pbk. |9 978-1-78588-677-5 | ||
035 | |a (OCoLC)960065002 | ||
035 | |a (DE-599)BVBBV043509967 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-11 |a DE-739 | ||
082 | 0 | |a 005.276 |2 23 | |
084 | |a ST 253 |0 (DE-625)143628: |2 rvk | ||
100 | 1 | |a Bendoraitis, Aidas |e Verfasser |0 (DE-588)1097234932 |4 aut | |
245 | 1 | 0 | |a Web development with Django cookbook |b over 90 practical recipes to help you create scalable websites using the Django 1.8 framework |c Aidas Bendoraitis |
250 | |a Second editon | ||
264 | 1 | |a Birmingham ; Mumbai |b Packt Publishing |c January 2016 | |
300 | |a ix, 361 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Open source community experience distilled. Quick answers to common problems | |
650 | 4 | |a Web site development | |
650 | 4 | |a Application software |x Development | |
650 | 4 | |a Internet programming | |
650 | 0 | 7 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Webentwicklung |0 (DE-588)1176227475 |2 gnd |9 rswk-swf |
653 | |a Electronic books | ||
689 | 0 | 0 | |a Webentwicklung |0 (DE-588)1176227475 |D s |
689 | 0 | 1 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |D s |
689 | 0 | |8 1\p |5 DE-604 | |
856 | 4 | 2 | |m Digitalisierung UB Passau - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028926184&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-028926184 | ||
883 | 1 | |8 1\p |a cgwrk |d 20201028 |q DE-101 |u https://d-nb.info/provenance/plan#cgwrk |
Datensatz im Suchindex
_version_ | 1804176150479503360 |
---|---|
adam_text | Table of Contents
Preface__________________________________________________________________ Y
Chapter 1: Getting Started with Django 1.8__________________________________1
Introduction 2
Working with a virtual environment 2
Creating a project file structure 4
Handling project dependencies with pip 7
Making your code compatible with both Python 2.7 and Python 3 9
Including external dependencies in your project 12
Configuring settings for development, testing, staging,
and production environments 14
Defining relative paths in the settings 16
Creating and including local settings 17
Setting up STATICJJRL dynamically for Subversion users 19
Setting up STATICJJRL dynamically for Git users 20
Setting UTF-8 as the default encoding for MySQL configuration 22
Setting the Subversion ignore property 23
Creating the Git ignore file 26
Deleting Python-compiled files 28
Respecting the import order in Python files 29
Creating app configuration 30
Defining overwritable app settings 33
Chapter 2: Database Structure______________________________________________3i
Introduction 36
Using model mixins 36
Creating a model mixin with URL-related methods 37
Creating a model mixin to handle creation and modification dates 40
Creating a model mixin to take care of meta tags 42
Creating a model mixin to handle generic relations 46
Handling multilingual fields 50
Using migrations 56
Switching from South migrations to Django migrations 58
Changing a foreign key to the many-to-many field 59
Chapter 3: Forms and Views________________________________________________63
Introduction 63
Passing HttpRequest to the form 64
Utilizing the save method of the form 66
Uploading images 68
Creating a form layout with django-crispy-forms 74
Downloading authorized files 79
Filtering object lists 83
Managing paginated lists 91
Composing class-based views 95
Generating PDF documents 98
Implementing a multilingual search with Haystack 105
Chapter 4: Templates and JavaScript 115
Introduction 115
Arranging the base.html template 116
Including JavaScript settings 119
Using HTML5 data attributes 122
Opening object details in a modal dialog 127
Implementing a continuous scroll 132
Implementing the Like widget 134
Uploading images by Ajax 141
Chapter 5: Custom Template Filters and Tags 151
Introduction 151
Following conventions for your own template filters and tags 152
Creating a template filter to show how many days have passed
since a post was published 153
Creating a template filter to extract the first media object 155
Creating a template filter to humanize URLs 157
Creating a template tag to include a template if it exists 158
Creating a template tag to load a QuerySet in a template 162
Creating a template tag to parse content as a template 166
Creating a template tag to modify request query parameters 169
Chapter 6: Model Administration__________________________________________175
Introduction 175
Customizing columns on the change list page 175
Creating admin actions 180
Developing change list filters 185
Customizing default admin settings 188
Inserting a map into a change form 192
Chapter 7: Django CMS_____________________________________________________205
Introduction 205
Creating templates for Django CMS 206
Structuring the page menu 210
Converting an app to a CMS app 214
Attaching your own navigation 216
Writing your own CMS plugin 219
Adding new fields to the CMS page 224
Chapter 8: Hierarchical Structures___________________________231
Introduction 231
Creating hierarchical categories 233
Creating a category administration interface with django-mptt-admin 236
Creating a category administration interface with django-mptt-tree-editor 240
Rendering categories in a template 243
Using a single selection field to choose a category in forms 245
Using a checkbox list to choose multiple categories in forms 247
Chapter 9: Data Import and Export_________________________________________253
Introduction 253
Importing data from a local CSV file 253
Importing data from a local Excel file 256
Importing data from an external JSON file 259
Importing data from an external XML file 264
Creating filterable RSS feeds 269
Using Tastypie to create API 274
Using Django REST framework to create API 278
Chapter 10: Bells and Whistles____________________________________________285
Introduction 285
Using the Django shell 286
Using database query expressions 289
Monkey-patching the slugifyj) function for better
internationalization support 295
Toggling the Debug Toolbar 298
Using ThreadLocalMiddleware 301
Caching the method return value 304
Using Memcached to cache Django views 306
Using signals to notify administrators about new entries 308
Checking for missing settings 310
Chapter 11: Testing and Deployment____________________________________313
Introduction 313
Testing pages with Selenium 314
Testing views with mock 319
Testing API created using Django REST framework 323
Releasing a reusable Django app 329
Getting detailed error reporting via e-mail 333
Deploying on Apache with mod_wsgi 335
Setting up cron jobs for regular tasks 342
Creating and using the Fabric deployment script 345
index_________________________________________________________________ 357
|
any_adam_object | 1 |
author | Bendoraitis, Aidas |
author_GND | (DE-588)1097234932 |
author_facet | Bendoraitis, Aidas |
author_role | aut |
author_sort | Bendoraitis, Aidas |
author_variant | a b ab |
building | Verbundindex |
bvnumber | BV043509967 |
classification_rvk | ST 253 |
ctrlnum | (OCoLC)960065002 (DE-599)BVBBV043509967 |
dewey-full | 005.276 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.276 |
dewey-search | 005.276 |
dewey-sort | 15.276 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | Second editon |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01881nam a2200433 c 4500</leader><controlfield tag="001">BV043509967</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20161028 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">160413s2016 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781785886775</subfield><subfield code="c">pbk.</subfield><subfield code="9">978-1-78588-677-5</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)960065002</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV043509967</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-11</subfield><subfield code="a">DE-739</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.276</subfield><subfield code="2">23</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 253</subfield><subfield code="0">(DE-625)143628:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Bendoraitis, Aidas</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1097234932</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Web development with Django cookbook</subfield><subfield code="b">over 90 practical recipes to help you create scalable websites using the Django 1.8 framework</subfield><subfield code="c">Aidas Bendoraitis</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">Second editon</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Birmingham ; Mumbai</subfield><subfield code="b">Packt Publishing</subfield><subfield code="c">January 2016</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">ix, 361 Seiten</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Open source community experience distilled. Quick answers to common problems</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Web site development</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Application software</subfield><subfield code="x">Development</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Internet programming</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Webentwicklung</subfield><subfield code="0">(DE-588)1176227475</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="653" ind1=" " ind2=" "><subfield code="a">Electronic books</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Webentwicklung</subfield><subfield code="0">(DE-588)1176227475</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="8">1\p</subfield><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Passau - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028926184&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-028926184</subfield></datafield><datafield tag="883" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="a">cgwrk</subfield><subfield code="d">20201028</subfield><subfield code="q">DE-101</subfield><subfield code="u">https://d-nb.info/provenance/plan#cgwrk</subfield></datafield></record></collection> |
id | DE-604.BV043509967 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:27:36Z |
institution | BVB |
isbn | 9781785886775 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-028926184 |
oclc_num | 960065002 |
open_access_boolean | |
owner | DE-11 DE-739 |
owner_facet | DE-11 DE-739 |
physical | ix, 361 Seiten Illustrationen |
publishDate | 2016 |
publishDateSearch | 2016 |
publishDateSort | 2016 |
publisher | Packt Publishing |
record_format | marc |
series2 | Open source community experience distilled. Quick answers to common problems |
spelling | Bendoraitis, Aidas Verfasser (DE-588)1097234932 aut Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework Aidas Bendoraitis Second editon Birmingham ; Mumbai Packt Publishing January 2016 ix, 361 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier Open source community experience distilled. Quick answers to common problems Web site development Application software Development Internet programming Python Programmiersprache (DE-588)4434275-5 gnd rswk-swf Webentwicklung (DE-588)1176227475 gnd rswk-swf Electronic books Webentwicklung (DE-588)1176227475 s Python Programmiersprache (DE-588)4434275-5 s 1\p DE-604 Digitalisierung UB Passau - ADAM Catalogue Enrichment application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028926184&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis 1\p cgwrk 20201028 DE-101 https://d-nb.info/provenance/plan#cgwrk |
spellingShingle | Bendoraitis, Aidas Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework Web site development Application software Development Internet programming Python Programmiersprache (DE-588)4434275-5 gnd Webentwicklung (DE-588)1176227475 gnd |
subject_GND | (DE-588)4434275-5 (DE-588)1176227475 |
title | Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework |
title_auth | Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework |
title_exact_search | Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework |
title_full | Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework Aidas Bendoraitis |
title_fullStr | Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework Aidas Bendoraitis |
title_full_unstemmed | Web development with Django cookbook over 90 practical recipes to help you create scalable websites using the Django 1.8 framework Aidas Bendoraitis |
title_short | Web development with Django cookbook |
title_sort | web development with django cookbook over 90 practical recipes to help you create scalable websites using the django 1 8 framework |
title_sub | over 90 practical recipes to help you create scalable websites using the Django 1.8 framework |
topic | Web site development Application software Development Internet programming Python Programmiersprache (DE-588)4434275-5 gnd Webentwicklung (DE-588)1176227475 gnd |
topic_facet | Web site development Application software Development Internet programming Python Programmiersprache Webentwicklung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028926184&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT bendoraitisaidas webdevelopmentwithdjangocookbookover90practicalrecipestohelpyoucreatescalablewebsitesusingthedjango18framework |