티스토리 수익 글 보기
Help us reach our 2025 fundraising goal!
Donate to the Django Software Foundation to fund Django’s development, security, and community events!If you got value out of using Django this year, please consider making a donation ♥ Donate today
Django documentation contents¶
- Getting started
- Django at a glance
- Quick install guide
- Writing your first Django app, part 1
- Writing your first Django app, part 2
- Writing your first 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
- Writing your first Django app, part 7
- Writing your first Django app, part 8
- Advanced tutorial: How to write reusable apps
- What to read next
- Writing your first patch for Django
- Introduction
- Code of Conduct
- Installing Git
- Getting a copy of Django’s development version
- Running Django’s test suite for the first time
- Working on a feature
- Creating a branch for your patch
- Writing some tests for your ticket
- Writing the code for your ticket
- Running Django’s test suite for the second time
- Writing Documentation
- Previewing your changes
- Committing the changes in the patch
- Pushing the commit and making a pull request
- Next steps
- Using Django
- How to install Django
- Models and databases
- Handling HTTP requests
- Working with forms
- Templates
- Class-based views
- Migrations
- Managing files
- Testing in Django
- User authentication in Django
- Django’s cache framework
- Conditional View Processing
- Cryptographic signing
- Sending email
- Internationalization and localization
- Logging
- Pagination
- Security in Django
- Performance and optimization
- Serializing Django objects
- Django settings
- Signals
- System check framework
- External packages
- Asynchronous support
- “How-to” guides
- How to authenticate using
REMOTE_USER - How to use Django’s CSRF protection
- How to create custom
django-admincommands - How to create custom model fields
- How to write custom lookups
- How to implement a custom template backend
- How to create custom template tags and filters
- How to write a custom storage class
- How to deploy Django
- How to upgrade Django to a newer version
- How to manage error reporting
- How to provide initial data for models
- How to integrate Django with a legacy database
- How to configure and use logging
- How to create CSV output
- How to create PDF files
- How to override templates
- How to manage static files (e.g. images, JavaScript, CSS)
- How to deploy static files
- How to install Django on Windows
- How to create database migrations
- How to delete a Django application
- How to authenticate using
- Django FAQ
- FAQ: General
- Why does this project exist?
- What does “Django” mean, and how do you pronounce it?
- Is Django stable?
- Does Django scale?
- Who’s behind this?
- How is Django licensed?
- Why does Django include Python’s license file?
- Which sites use Django?
- Django appears to be a MVC framework, but you call the Controller the “view”, and the View the “template”. How come you don’t use the standard names?
- <Framework X> does <feature Y> – why doesn’t Django?
- Why did you write all of Django from scratch, instead of using other Python libraries?
- Is Django a content-management-system (CMS)?
- How can I download the Django documentation to read it offline?
- How do I cite Django?
- FAQ: Installation
- FAQ: Using Django
- FAQ: Getting Help
- FAQ: Databases and models
- How can I see the raw SQL queries Django is running?
- Can I use Django with a preexisting database?
- If I make changes to a model, how do I update the database?
- Do Django models support multiple-column primary keys?
- Does Django support NoSQL databases?
- How do I add database-specific options to my CREATE TABLE statements, such as specifying MyISAM as the table type?
- FAQ: The admin
- I can’t log in. When I enter a valid username and password, it just brings up the login page again, with no error messages.
- I can’t log in. When I enter a valid username and password, it brings up the login page again, with a “Please enter a correct username and password” error.
- How do I automatically set a field’s value to the user who last edited the object in the admin?
- How do I limit admin access so that objects can only be edited by the users who created them?
- My admin-site CSS and images showed up fine using the development server, but they’re not displaying when using mod_wsgi.
- My “list_filter” contains a ManyToManyField, but the filter doesn’t display.
- Some objects aren’t appearing in the admin.
- How can I customize the functionality of the admin interface?
- The dynamically-generated admin site is ugly! How can I change it?
- What browsers are supported for using the admin?
- FAQ: Contributing code
- How can I get started contributing code to Django?
- I submitted a bug fix in the ticket system several weeks ago. Why are you ignoring my patch?
- When and how might I remind the team of a patch I care about?
- But I’ve reminded you several times and you keep ignoring my patch!
- I’m sure my ticket is absolutely 100% perfect, can I mark it as “Ready For Checkin” myself?
- Troubleshooting
- FAQ: General
- API Reference
- Applications
- System check framework
- Built-in class-based views API
- Clickjacking Protection
contribpackages- The Django admin site
django.contrib.auth- The contenttypes framework
- The flatpages app
- GeoDjango
django.contrib.humanize- The messages framework
django.contrib.postgres- The redirects app
- The sitemap framework
- The “sites” framework
- The
staticfilesapp - The syndication feed framework
adminauthcontenttypesflatpagesgishumanizemessagespostgresredirectssessionssitessitemapssyndication- Other add-ons
- Cross Site Request Forgery protection
- Databases
django-adminandmanage.py- Running management commands from your code
- Django Exceptions
- File handling
- Forms
- Logging
- Middleware
- Migration Operations
- Models
- Model field reference
- Field attribute reference
- Model index reference
- Constraints reference
- Model
_metaAPI - Related objects reference
- Model class reference
- Model
Metaoptions - Model instance reference
QuerySetAPI reference- Lookup API reference
- Query Expressions
- Conditional Expressions
- Database Functions
- Paginator
- Request and response objects
SchemaEditor- Settings
- Signals
- Templates
TemplateResponseandSimpleTemplateResponse- Unicode data
django.urlsutility functionsdjango.urlsfunctions for use in URLconfsdjango.conf.urlsfunctions for use in URLconfs- Django Utils
- Validators
- Built-in Views
- Meta-documentation and miscellany
- Glossary
- Release notes
- Django internals
Indices, glossary and tables¶
Additional Information
Support Django!
Contents
Getting help
- FAQ
- Try the FAQ — it’s got answers to many common questions.
- Index, Module Index, or Table of Contents
- Handy when looking for specific information.
- Django Discord Server
- Join the Django Discord Community.
- Official Django Forum
- Join the community on the Django Forum.
- Ticket tracker
- Report bugs with Django or Django documentation in our ticket tracker.
Download:
Offline (Django 4.2):
HTML |
PDF |
ePub
Provided by Read the Docs.