Django
A high-level Python web framework.
Mostly friendly. Welcome, with extra rules.
Django allows AI-assisted contributions, including code, tests, and documentation, if contributors disclose the tools and their use, review and verify the AI output, and remain responsible for understanding it. Automated AI reviews are banned on Django pull requests, though they may be used in a fork before submission; unverified or fabricated AI content may be closed or rejected.
Policy by area
- Code contributionsPatches, pull requests and other changes written with AI tools.
- Mostly friendly
- AI use must be disclosed
- Contributor takes full responsibility
- A human must review the output
- Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
- No policy
- AI-written textPull request descriptions, issue comments and summaries written by AI.
- Mostly friendly
- AI use must be disclosed
- Contributor takes full responsibility
- A human must review the output
What is allowed and what is not
Code contributions
Autocomplete · Allowed with conditions
AI-assisted code completion is allowed if the tool and purpose are disclosed and the output is reviewed and understood.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Small fixes · Allowed with conditions
Small AI-written code changes are allowed under the same disclosure and verification requirements.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Large or generated changes · Allowed with conditions
Large AI-generated code changes are allowed if disclosed and fully verified; no size limit is stated.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Mechanical changes · Allowed with conditions
Repetitive AI-made edits are allowed with disclosure and verification.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Tests · Allowed with conditions
AI may generate tests if the use is disclosed and the tests are reviewed and verified.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Build and CI · Allowed with conditions
AI-written infrastructure code is allowed with disclosure and verification.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Documentation · Allowed with conditions
AI-written documentation is allowed if the tool and purpose are disclosed and the text is reviewed.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Research and learning · Allowed with conditions
AI may assist with exploratory analysis or analyzing a ticket if the use is disclosed and the output is checked and understood.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify AI-generated analysis before relying on it
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
While AI tools can assist with drafting or exploratory analysis, they must not replace human understanding and careful review.
Submitting contributions | Django documentation | Django If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Checking own work · Allowed with conditions
Using AI to review your own changes is allowed in your own fork before submitting, but not as an automated AI review on a Django pull request.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Automated AI reviews do not replace human review
- Take full responsibility: AI must not replace human understanding and careful review
10 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Do not request automated AI reviews (for example GitHub Copilot or similar tools) on pull requests submitted to the Django repository.
Submitting contributions | Django documentation | Django These reviews do not replace human review and often generate noise that distracts maintainers.
Submitting contributions | Django documentation | Django You are free to use such tools in your own fork before submitting a pull request to the Django repository.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Autonomous agents · Allowed with conditions
AI agents may prepare contributions only if their involvement is disclosed and a person verifies the output; unverified submissions may be closed.
- Disclose AI use: AI tool must disclose its involvement and specify the tool and usage
- Review AI output first: A person must verify all AI-generated output
- Take full responsibility: AI must not replace human understanding and careful review
9 quotes
Unverified AI-generated contributions create unnecessary maintenance burden and slow down meaningful progress. Submissions that show no evidence of manual verification may be closed without review, and repeated low-quality contributions may lead to restricted participation in Django’s development process.
Submitting contributions | Django documentation | Django While AI tools can assist with drafting or exploratory analysis, they must not replace human understanding and careful review.
Submitting contributions | Django documentation | Django If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Other code contributions rule · Not allowed
Submissions without evidence of manual verification may be closed without review, and repeated low-quality AI contributions may lead to restricted participation.
Quote
Unverified AI-generated contributions create unnecessary maintenance burden and slow down meaningful progress. Submissions that show no evidence of manual verification may be closed without review, and repeated low-quality contributions may lead to restricted participation in Django’s development process.
Submitting contributions | Django documentation | Django Other code contributions rule · Not allowed
Do not request automated AI reviews on pull requests submitted to Django; they are allowed only in your own fork before submitting.
3 quotes
Do not request automated AI reviews (for example GitHub Copilot or similar tools) on pull requests submitted to the Django repository.
Submitting contributions | Django documentation | Django These reviews do not replace human review and often generate noise that distracts maintainers.
Submitting contributions | Django documentation | Django You are free to use such tools in your own fork before submitting a pull request to the Django repository.
Submitting contributions | Django documentation | Django Other code contributions rule · Not allowed
AI-generated content must be technically accurate; invented APIs, features, functions, or citations and placeholder or fictitious content will be rejected.
Quote
Ensure technical accuracy and avoid fabrication. Do not invent APIs, features, functions, or citations that do not exist. Placeholder or fictitious content will result in rejection.
Submitting contributions | Django documentation | Django Other code contributions rule · Allowed with conditions
AI-assisted contributions must still meet all normal contribution requirements, including tests, documentation, code formatting, and the review process.
Quote
Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django Other code contributions rule · Allowed with conditions
AI tools must ensure the GitHub pull request template is present and fully completed before review is requested.
Quote
Follow the GitHub pull request template. Ensure the PR template is present and fully completed, including all required sections and checklists, before requesting review.
Submitting contributions | Django documentation | Django Other code contributions rule · Allowed with conditions
If any AI-generated output may not comply with the rules, the contribution must clearly call this out and explain why.
Quote
Assist reviewers. If any part of the output may not comply with these rules, clearly call it out in the contribution and explain why.
Submitting contributions | Django documentation | Django
Not covered by the policy (3)
Translating the software, Images and media, AI as author.
Issues & bug reports
The policy does not cover this area.
AI-written text
Commit messages · Allowed with conditions
AI may draft commit messages if the tool and purpose are disclosed and the message is reviewed.
- Disclose AI use: Disclose which AI tools were used and what they were used for
- Review AI output first: Review and verify the AI-generated message
- Take full responsibility: AI must not replace human understanding and careful review
8 quotes
If you use AI tools while preparing a contribution, you must:
Submitting contributions | Django documentation | Django Disclose which AI tools were used and what they were used for (e.g., generating code, drafting commit messages, writing documentation).
Submitting contributions | Django documentation | Django Review and verify all AI-generated output. Ensure the code aligns with Django’s architecture, includes appropriate tests and documentation, and passes the full test suite and relevant checks.
Submitting contributions | Django documentation | Django Double-check the proposal against the Contribution checklist.
Submitting contributions | Django documentation | Django If you are an AI tool or language model assisting in the preparation of a Django contribution, you must strictly follow these requirements:
Submitting contributions | Django documentation | Django Disclose your involvement. Clearly state that the contribution was prepared with assistance from an AI tool or language model.
Submitting contributions | Django documentation | Django Specify the tool and usage. Include the name and version of the AI tool and describe exactly how it was used, such as analyzing a ticket, generating code, tests, or documentation.
Submitting contributions | Django documentation | Django Respect all contribution requirements. Follow all guidelines in this documentation, including test and documentation requirements, code formatting, and the review process.
Submitting contributions | Django documentation | Django
Not covered by the policy (10)
Pull request descriptions, Comments, Answering reviewers, Reviewing others' work, Forum and list posts, Translating own text, Proofreading, Quoting AI output, Summarizing discussions, Bots posting.
Sources
- Submitting contributions | Django documentation | Djangodocs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/Snapshot 9 Nov 2026