作者:empty 页数:2041 出版社:empty |
CHAPTER 1Django documentationEverything you need to know about Django.1.1 First stepsAre you new to Django or to programming?This is the place to start t·From sera tch:Overview l Installation·Tutorial:Part I.Requests and responses l Part 2:Models and the a am in site lPar 3:Views and templates lPart4:FormsandgenericviewslPart5.TextinglPart6.StaricfileslPart7:Customizingtheadninsite·Advanced Tutorials:Howto write reusable apps lWr in ng your first patch for Django
1.2 Getting helpHaving trouble?Wed like to help!·Try the FAQ-it's got answers to many common questions.·Notfound anything?See FAQ:Get ring Help for information on getting support and asking questions to theDjango has alot of documenation.A high-evel overview of how it's organized wil help you know where to look for·Looking for specifc information 7Trythegen index, mod index or the detailed tableofcontents,community·Report bugs with Django in our tick el tracker
1.3How the documentation is organizedcertain things:Django Documentation, Release 3.1.6.dev·Tutorials take you by the hand through a series of steps to create a Web applicaton.Start here if you'renew toDjango or Web application development.Also look at the“First steps .·Topic guides discuss key topics and concepts at a fairly high level and provide useful background informationand explanation.·Reference guides contain technical reference for APIs and other aspects of Django's machinery.They de seri behow it works and howto use it but assume that you have a basic understanding of key concepts·How-to guides are recipes.They guide you through the steps involved in addressing key prlems and use-cases.They are more advanced than tutorials and assume some knowledge of how Django works1.4 The model layerDjango provides an abstraction layer(the“models ) for structuring and manipulating the data of your Web application.Leam more about it below:·Models:Introduction to models lFieldrypeslIndexeslMetu options l Model class·Query Sets:Making queries l Query Set method reference l Lookup expressions·Model instances:Jn stance methods l Access ang related jects·Migrations:Introduction to Migrations l Operations reference l Schema Edl it or I Writing m nigra tions·The basics:URL conf sl View functions lSh or reut sl Decorators lA synch no ous Support·File uploads:Overview l File jects lS to rug eAP FI Managing files l Customs forage
Contents
1Django documentation
First steps, .
Geting help.
Django at a glance-.
Quick install guide.
Handling HTTP requests,
Working with forms
FAQ:Using Django
FAQ:Get ng Help.
FAQ:Databases and models
FAQ:The admin.
How the documentation is organized
The model layer.
The view layer.
The template layer
Forms.
The development process
1.9
The ad mm.
1.10 Security.
1.11Inte rationalization and localization
1.12 Performance and.optimization.
1.13 Geographic framework.
1.14CommonWebapplialin tools.
1.15Othercorefunetionali ties.
1.16 The Django open-source project
2 Gettingstarted
210Advcduoral:Howto wi icr usb le apps
W nung your fist Django app.panti
Writing your first Django app.part 2
Writing your frst Django app-part 3
Writing your first Django app.part 4
Writing your first Django app.part 5
Writing your first Django app.part 6
Wrt ing your first Django app.part 7
What to read next.
212WigyouristpahforDango
3 Using Django
3.1Howto install Django
3.2Models and dala bases
3.5Templates.
39Class-b used viewsMigrations.
3.8Managing iles.
3.9Tesi gm bangg.ab
3.10Userauthentcatonin Django.
3.11Django's cache framework,
3.12Cond tional View Processing.
3.13Cryplo graphic signing.
3: 14 Sending email.
3.15 Internationalization and localization
3.16 Logging-.-.
3.17Pagination-
3.18SecurtyinDjango.
3.19Perfommanceandop mization
3.20 Serializing Django objects
3.21Djangos ct tings.
3.22Signals.
3.23System check framework.
3.24External packages.
3.25 Asynchronous supp on
Authentication using REMOTE_USER,
Writng c us iom django-admin commands
Writing custom model fields.
C us torn Lookups.
Custom template backend
Cuslomtemplteagsandiers.
Writing a custom storage system.
Deploying Django.++
49Upgrading Django loan ewer version,
4.10Emor reporting-.
4.11Providngintaldala for models.
412inegrtigDjangowiha legacy database
4.13OutpuitingCSV with Django
414 Outputting PDFs with Django.
4.15 Overriding templates.
4.16Managigslatiles(eg.images, Java Scrip, CSS)
4.17 Deploying static files.
4.18HowioinstalDjangoon Windows.
4.19Writng database migrations.
5DjangoFAQ
5.1FAQ:Gen cr al.
5.2FAQ:Installation,
7FAQ:Com tr but ing codeTroubleshooting
6API Reference
App ications.
System check framework
Buil-in class-based views API.
Click jacking Protection.
contrib packages,
Cross Site Request Forgery protection,
Databases.
django-admin and manage.py.
6.9
6.10Django Exceptions-
6.11 File handling,
Rum mi gm nagement commands from your code
6.12 Forms.
6.13Middleware.
6.14 Migration Operations.
6.15
Models.
6.16Paginaior.
6.17Request and respons cob jeet s
6.18 Schema Editor
6.19 Settings.
6.20 Signals
6.21Templates, .
6.22
6.23 Unicode data.
6.29 Built-in Views
7Meta-documentation and mise ell any
8 Glossary
9 Releasenotes
Template reap on se and sim pie Template Reap on ae
django.url auti y functions.
a ian qo.uri a func tons for use m URL cons.
a ian go.conf.urls func tons for use in URL cons
Django Utils.
Validators.
API stab