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
e5376999
Kaydet (Commit)
e5376999
authored
Agu 13, 2014
tarafından
Collin Anderson
Kaydeden (comit)
Collin Anderson
Agu 13, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #23276 -- Added missing url() in some places.
üst
46823688
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
9 deletions
+11
-9
mixins-multiple-object.txt
docs/ref/class-based-views/mixins-multiple-object.txt
+1
-1
index.txt
docs/ref/contrib/admin/index.txt
+2
-2
form-preview.txt
docs/ref/contrib/formtools/form-preview.txt
+1
-1
syndication.txt
docs/ref/contrib/syndication.txt
+1
-1
default.txt
docs/topics/auth/default.txt
+5
-3
translation.txt
docs/topics/i18n/translation.txt
+1
-1
No files found.
docs/ref/class-based-views/mixins-multiple-object.txt
Dosyayı görüntüle @
e5376999
...
...
@@ -15,7 +15,7 @@ MultipleObjectMixin
* Use the ``page`` parameter in the URLconf. For example, this is what
your URLconf might look like::
(r'^objects/page(?P<page>[0-9]+)/$', PaginatedView.as_view())
url(r'^objects/page(?P<page>[0-9]+)/$', PaginatedView.as_view()),
* Pass the page number via the ``page`` query-string parameter. For
example, a URL would look like this::
...
...
docs/ref/contrib/admin/index.txt
Dosyayı görüntüle @
e5376999
...
...
@@ -1456,7 +1456,7 @@ templates used by the :class:`ModelAdmin` views:
Notice the wrapped view in the fifth line above::
(r'^my_view/$', self.admin_site.admin_view(self.my_view))
url
(r'^my_view/$', self.admin_site.admin_view(self.my_view))
This wrapping will protect ``self.my_view`` from unauthorized access and
will apply the ``django.views.decorators.cache.never_cache`` decorator to
...
...
@@ -1466,7 +1466,7 @@ templates used by the :class:`ModelAdmin` views:
performed, you can pass a ``cacheable=True`` argument to
``AdminSite.admin_view()``::
(r'^my_view/$', self.admin_site.admin_view(self.my_view, cacheable=True))
url
(r'^my_view/$', self.admin_site.admin_view(self.my_view, cacheable=True))
.. method:: ModelAdmin.get_form(request, obj=None, **kwargs)
...
...
docs/ref/contrib/formtools/form-preview.txt
Dosyayı görüntüle @
e5376999
...
...
@@ -77,7 +77,7 @@ How to use ``FormPreview``
...and add the following line to the appropriate model in your URLconf::
(r'^post/$', SomeModelFormPreview(SomeModelForm)),
url
(r'^post/$', SomeModelFormPreview(SomeModelForm)),
where ``SomeModelForm`` is a Form or ModelForm class for the model.
...
...
docs/ref/contrib/syndication.txt
Dosyayı görüntüle @
e5376999
...
...
@@ -217,7 +217,7 @@ The police beat feeds could be accessible via URLs like this:
These can be matched with a :doc:`URLconf </topics/http/urls>` line such as::
(r'^beats/(?P<beat_id>[0-9]+)/rss/$', BeatFeed()),
url
(r'^beats/(?P<beat_id>[0-9]+)/rss/$', BeatFeed()),
Like a view, the arguments in the URL are passed to the ``get_object()``
method along with the request object.
...
...
docs/topics/auth/default.txt
Dosyayı görüntüle @
e5376999
...
...
@@ -476,9 +476,11 @@ The login_required decorator
Note that if you don't specify the ``login_url`` parameter, you'll need to
ensure that the :setting:`settings.LOGIN_URL <LOGIN_URL>` and your login
view are properly associated. For example, using the defaults, add the
following line to your URLconf::
following line
s
to your URLconf::
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
from django.contrib.auth import views as auth_views
url(r'^accounts/login/$', auth_views.login),
The :setting:`settings.LOGIN_URL <LOGIN_URL>` also accepts view function
names and :ref:`named URL patterns <naming-url-patterns>`. This allows you
...
...
@@ -752,7 +754,7 @@ patterns.
the view in your URLconf. For example, this URLconf line would use
:file:`myapp/login.html` instead::
(r'^accounts/login/$', 'django.contrib.auth.views.login'
, {'template_name': 'myapp/login.html'}),
url(r'^accounts/login/$', auth_views.login
, {'template_name': 'myapp/login.html'}),
You can also specify the name of the ``GET`` field which contains the URL
to redirect to after login by passing ``redirect_field_name`` to the view.
...
...
docs/topics/i18n/translation.txt
Dosyayı görüntüle @
e5376999
...
...
@@ -1476,7 +1476,7 @@ Make sure that the following item is in your
Activate this view by adding the following line to your URLconf::
(r'^i18n/', include('django.conf.urls.i18n')),
url
(r'^i18n/', include('django.conf.urls.i18n')),
(Note that this example makes the view available at ``/i18n/setlang/``.)
...
...
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