Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
24dec9ed
Kaydet (Commit)
24dec9ed
authored
Haz 27, 2012
tarafından
Ben Spaulding
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add reST role to templates named in some view docs.
This makes the templates link up correctly in the admindocs.
üst
fa182e8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
moderation.py
django/contrib/comments/views/moderation.py
+3
-3
utils.py
django/contrib/comments/views/utils.py
+1
-1
views.py
django/contrib/flatpages/views.py
+1
-1
defaults.py
django/views/defaults.py
+3
-3
No files found.
django/contrib/comments/views/moderation.py
Dosyayı görüntüle @
24dec9ed
...
...
@@ -17,7 +17,7 @@ def flag(request, comment_id, next=None):
"""
Flags a comment. Confirmation on GET, action on POST.
Templates: `comments/flag.html`,
Templates:
:template:
`comments/flag.html`,
Context:
comment
the flagged `comments.comment` object
...
...
@@ -43,7 +43,7 @@ def delete(request, comment_id, next=None):
Deletes a comment. Confirmation on GET, action on POST. Requires the "can
moderate comments" permission.
Templates: `comments/delete.html`,
Templates:
:template:
`comments/delete.html`,
Context:
comment
the flagged `comments.comment` object
...
...
@@ -70,7 +70,7 @@ def approve(request, comment_id, next=None):
Approve a comment (that is, mark it as public and non-removed). Confirmation
on GET, action on POST. Requires the "can moderate comments" permission.
Templates: `comments/approve.html`,
Templates:
:template:
`comments/approve.html`,
Context:
comment
the `comments.comment` object for approval
...
...
django/contrib/comments/views/utils.py
Dosyayı görüntüle @
24dec9ed
...
...
@@ -56,7 +56,7 @@ def confirmation_view(template, doc="Display a confirmation view."):
confirmed
.
__doc__
=
textwrap
.
dedent
(
"""
\
%
s
Templates: `
%
s``
Templates:
:template:
`
%
s``
Context:
comment
The posted comment
...
...
django/contrib/flatpages/views.py
Dosyayı görüntüle @
24dec9ed
...
...
@@ -23,7 +23,7 @@ def flatpage(request, url):
Models: `flatpages.flatpages`
Templates: Uses the template defined by the ``template_name`` field,
or `flatpages/default.html` if template_name is not defined.
or
:template:
`flatpages/default.html` if template_name is not defined.
Context:
flatpage
`flatpages.flatpages` object
...
...
django/views/defaults.py
Dosyayı görüntüle @
24dec9ed
...
...
@@ -12,7 +12,7 @@ def page_not_found(request, template_name='404.html'):
"""
Default 404 handler.
Templates: `404.html`
Templates:
:template:
`404.html`
Context:
request_path
The path of the requested URL (e.g., '/app/pages/bad_page/')
...
...
@@ -26,7 +26,7 @@ def server_error(request, template_name='500.html'):
"""
500 error handler.
Templates: `500.html`
Templates:
:template:
`500.html`
Context: None
"""
t
=
loader
.
get_template
(
template_name
)
# You need to create a 500.html template.
...
...
@@ -41,7 +41,7 @@ def permission_denied(request, template_name='403.html'):
"""
Permission denied (403) handler.
Templates: `403.html`
Templates:
:template:
`403.html`
Context: None
If the template does not exist, an Http403 response containing the text
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment