mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[4.2.x] Refs #34140 -- Corrected rst code-block and various formatting issues in docs.
Backport of ba755ca131 from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
fae76b81ce
commit
5bdd6223a2
@@ -199,9 +199,10 @@ Imports
|
||||
|
||||
|
||||
class Example:
|
||||
# ...
|
||||
...
|
||||
|
||||
* Use convenience imports whenever available. For example, do this::
|
||||
* Use convenience imports whenever available. For example, do this
|
||||
::
|
||||
|
||||
from django.views import View
|
||||
|
||||
@@ -236,12 +237,12 @@ View style
|
||||
Do this::
|
||||
|
||||
def my_view(request, foo):
|
||||
# ...
|
||||
...
|
||||
|
||||
Don't do this::
|
||||
|
||||
def my_view(req, foo):
|
||||
# ...
|
||||
...
|
||||
|
||||
Model style
|
||||
===========
|
||||
|
||||
Reference in New Issue
Block a user