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
05d36dc0
Kaydet (Commit)
05d36dc0
authored
Ock 22, 2014
tarafından
Baptiste Mispelon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Always use parentheses when documenting a method with no arguments.
üst
79e1d6eb
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
36 additions
and
36 deletions
+36
-36
custom-model-fields.txt
docs/howto/custom-model-fields.txt
+1
-1
custom-template-tags.txt
docs/howto/custom-template-tags.txt
+3
-3
moderation.txt
docs/ref/contrib/comments/moderation.txt
+1
-1
form-preview.txt
docs/ref/contrib/formtools/form-preview.txt
+1
-1
form-wizard.txt
docs/ref/contrib/formtools/form-wizard.txt
+1
-1
gdal.txt
docs/ref/contrib/gis/gdal.txt
+8
-8
api.txt
docs/ref/forms/api.txt
+4
-4
validation.txt
docs/ref/forms/validation.txt
+1
-1
template-response.txt
docs/ref/template-response.txt
+1
-1
sessions.txt
docs/topics/http/sessions.txt
+13
-13
tools.txt
docs/topics/testing/tools.txt
+2
-2
No files found.
docs/howto/custom-model-fields.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -193,7 +193,7 @@ card values plus their suits; 104 characters in total.
...
@@ -193,7 +193,7 @@ card values plus their suits; 104 characters in total.
you want your fields to be more strict about the options they select, or to
you want your fields to be more strict about the options they select, or to
use the simpler, more permissive behavior of the current fields.
use the simpler, more permissive behavior of the current fields.
.. method:: Field.__init__
.. method:: Field.__init__
()
The :meth:`~django.db.models.Field.__init__` method takes the following
The :meth:`~django.db.models.Field.__init__` method takes the following
parameters:
parameters:
...
...
docs/howto/custom-template-tags.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -118,7 +118,7 @@ your function. Example:
...
@@ -118,7 +118,7 @@ your function. Example:
Registering custom filters
Registering custom filters
~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. method:: django.template.Library.filter
.. method:: django.template.Library.filter
()
Once you've written your filter definition, you need to register it with
Once you've written your filter definition, you need to register it with
your ``Library`` instance, to make it available to Django's template language:
your ``Library`` instance, to make it available to Django's template language:
...
@@ -157,7 +157,7 @@ are described in :ref:`filters and auto-escaping <filters-auto-escaping>` and
...
@@ -157,7 +157,7 @@ are described in :ref:`filters and auto-escaping <filters-auto-escaping>` and
Template filters that expect strings
Template filters that expect strings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. method:: django.template.defaultfilters.stringfilter
.. method:: django.template.defaultfilters.stringfilter
()
If you're writing a template filter that only expects a string as the first
If you're writing a template filter that only expects a string as the first
argument, you should use the decorator ``stringfilter``. This will
argument, you should use the decorator ``stringfilter``. This will
...
@@ -750,7 +750,7 @@ cannot resolve the string passed to it in the current context of the page.
...
@@ -750,7 +750,7 @@ cannot resolve the string passed to it in the current context of the page.
Simple tags
Simple tags
~~~~~~~~~~~
~~~~~~~~~~~
.. method:: django.template.Library.simple_tag
.. method:: django.template.Library.simple_tag
()
Many template tags take a number of arguments -- strings or template variables
Many template tags take a number of arguments -- strings or template variables
-- and return a string after doing some processing based solely on
-- and return a string after doing some processing based solely on
...
...
docs/ref/contrib/comments/moderation.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -222,7 +222,7 @@ models with an instance of the subclass.
...
@@ -222,7 +222,7 @@ models with an instance of the subclass.
:func:`moderator.unregister` methods detailed above, the following methods
:func:`moderator.unregister` methods detailed above, the following methods
on :class:`Moderator` can be overridden to achieve customized behavior:
on :class:`Moderator` can be overridden to achieve customized behavior:
.. method:: connect
.. method:: connect
()
Determines how moderation is set up globally. The base
Determines how moderation is set up globally. The base
implementation in
implementation in
...
...
docs/ref/contrib/formtools/form-preview.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -111,7 +111,7 @@ default templates.
...
@@ -111,7 +111,7 @@ default templates.
Advanced ``FormPreview`` methods
Advanced ``FormPreview`` methods
================================
================================
.. method:: FormPreview.process_preview
.. method:: FormPreview.process_preview
()
Given a validated form, performs any extra processing before displaying the
Given a validated form, performs any extra processing before displaying the
preview page, and saves any extra data in context.
preview page, and saves any extra data in context.
...
...
docs/ref/contrib/formtools/form-wizard.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -229,7 +229,7 @@ Here's a full example template:
...
@@ -229,7 +229,7 @@ Here's a full example template:
Hooking the wizard into a URLconf
Hooking the wizard into a URLconf
---------------------------------
---------------------------------
.. method:: WizardView.as_view
.. method:: WizardView.as_view
()
Finally, we need to specify which forms to use in the wizard, and then
Finally, we need to specify which forms to use in the wizard, and then
deploy the new :class:`WizardView` object at a URL in the ``urls.py``. The
deploy the new :class:`WizardView` object at a URL in the ``urls.py``. The
...
...
docs/ref/contrib/gis/gdal.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -459,19 +459,19 @@ systems and coordinate transformation::
...
@@ -459,19 +459,19 @@ systems and coordinate transformation::
Constructs a :class:`Polygon` from the given bounding-box (a 4-tuple).
Constructs a :class:`Polygon` from the given bounding-box (a 4-tuple).
.. method:: __len__
.. method:: __len__
()
Returns the number of points in a :class:`LineString`, the
Returns the number of points in a :class:`LineString`, the
number of rings in a :class:`Polygon`, or the number of geometries in a
number of rings in a :class:`Polygon`, or the number of geometries in a
:class:`GeometryCollection`. Not applicable to other geometry types.
:class:`GeometryCollection`. Not applicable to other geometry types.
.. method:: __iter__
.. method:: __iter__
()
Iterates over the points in a :class:`LineString`, the rings in a
Iterates over the points in a :class:`LineString`, the rings in a
:class:`Polygon`, or the geometries in a :class:`GeometryCollection`.
:class:`Polygon`, or the geometries in a :class:`GeometryCollection`.
Not applicable to other geometry types.
Not applicable to other geometry types.
.. method:: __getitem__
.. method:: __getitem__
()
Returns the point at the specified index for a :class:`LineString`, the
Returns the point at the specified index for a :class:`LineString`, the
interior ring at the specified index for a :class:`Polygon`, or the geometry
interior ring at the specified index for a :class:`Polygon`, or the geometry
...
@@ -677,7 +677,7 @@ systems and coordinate transformation::
...
@@ -677,7 +677,7 @@ systems and coordinate transformation::
Returns ``True`` if this geometry overlaps the other, otherwise returns
Returns ``True`` if this geometry overlaps the other, otherwise returns
``False``.
``False``.
.. method:: boundary
.. method:: boundary
()
The boundary of this geometry, as a new :class:`OGRGeometry` object.
The boundary of this geometry, as a new :class:`OGRGeometry` object.
...
@@ -686,22 +686,22 @@ systems and coordinate transformation::
...
@@ -686,22 +686,22 @@ systems and coordinate transformation::
The smallest convex polygon that contains this geometry, as a new
The smallest convex polygon that contains this geometry, as a new
:class:`OGRGeometry` object.
:class:`OGRGeometry` object.
.. method:: difference
.. method:: difference
()
Returns the region consisting of the difference of this geometry and
Returns the region consisting of the difference of this geometry and
the other, as a new :class:`OGRGeometry` object.
the other, as a new :class:`OGRGeometry` object.
.. method:: intersection
.. method:: intersection
()
Returns the region consisting of the intersection of this geometry and
Returns the region consisting of the intersection of this geometry and
the other, as a new :class:`OGRGeometry` object.
the other, as a new :class:`OGRGeometry` object.
.. method:: sym_difference
.. method:: sym_difference
()
Returns the region consisting of the symmetric difference of this
Returns the region consisting of the symmetric difference of this
geometry and the other, as a new :class:`OGRGeometry` object.
geometry and the other, as a new :class:`OGRGeometry` object.
.. method:: union
.. method:: union
()
Returns the region consisting of the union of this geometry and
Returns the region consisting of the union of this geometry and
the other, as a new :class:`OGRGeometry` object.
the other, as a new :class:`OGRGeometry` object.
...
...
docs/ref/forms/api.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -396,7 +396,7 @@ a form object, and each rendering method returns a Unicode object.
...
@@ -396,7 +396,7 @@ a form object, and each rendering method returns a Unicode object.
``as_p()``
``as_p()``
~~~~~~~~~~
~~~~~~~~~~
.. method:: Form.as_p
.. method:: Form.as_p
()
``as_p()`` renders the form as a series of ``<p>`` tags, with each ``<p>``
``as_p()`` renders the form as a series of ``<p>`` tags, with each ``<p>``
containing one field::
containing one field::
...
@@ -413,7 +413,7 @@ containing one field::
...
@@ -413,7 +413,7 @@ containing one field::
``as_ul()``
``as_ul()``
~~~~~~~~~~~
~~~~~~~~~~~
.. method:: Form.as_ul
.. method:: Form.as_ul
()
``as_ul()`` renders the form as a series of ``<li>`` tags, with each
``as_ul()`` renders the form as a series of ``<li>`` tags, with each
``<li>`` containing one field. It does *not* include the ``<ul>`` or
``<li>`` containing one field. It does *not* include the ``<ul>`` or
...
@@ -432,7 +432,7 @@ flexibility::
...
@@ -432,7 +432,7 @@ flexibility::
``as_table()``
``as_table()``
~~~~~~~~~~~~~~
~~~~~~~~~~~~~~
.. method:: Form.as_table
.. method:: Form.as_table
()
Finally, ``as_table()`` outputs the form as an HTML ``<table>``. This is
Finally, ``as_table()`` outputs the form as an HTML ``<table>``. This is
exactly the same as ``print``. In fact, when you ``print`` a form object,
exactly the same as ``print``. In fact, when you ``print`` a form object,
...
@@ -864,7 +864,7 @@ form data *and* file data::
...
@@ -864,7 +864,7 @@ form data *and* file data::
Testing for multipart forms
Testing for multipart forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. method:: Form.is_multipart
.. method:: Form.is_multipart
()
If you're writing reusable views or templates, you may not know ahead of time
If you're writing reusable views or templates, you may not know ahead of time
whether your form is a multipart form or not. The ``is_multipart()`` method
whether your form is a multipart form or not. The ``is_multipart()`` method
...
...
docs/ref/forms/validation.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -329,7 +329,7 @@ from , which is turned into a form-wide error that is available through the
...
@@ -329,7 +329,7 @@ from , which is turned into a form-wide error that is available through the
Cleaning and validating fields that depend on each other
Cleaning and validating fields that depend on each other
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. method:: django.forms.Form.clean
.. method:: django.forms.Form.clean
()
Suppose we add another requirement to our contact form: if the ``cc_myself``
Suppose we add another requirement to our contact form: if the ``cc_myself``
field is ``True``, the ``subject`` must contain the word ``"help"``. We are
field is ``True``, the ``subject`` must contain the word ``"help"``. We are
...
...
docs/ref/template-response.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -99,7 +99,7 @@ Methods
...
@@ -99,7 +99,7 @@ Methods
Override this method in order to customize template rendering.
Override this method in order to customize template rendering.
.. method:: SimpleTemplateResponse.add_post_render_callback
.. method:: SimpleTemplateResponse.add_post_render_callback
()
Add a callback that will be invoked after rendering has taken
Add a callback that will be invoked after rendering has taken
place. This hook can be used to defer certain processing
place. This hook can be used to defer certain processing
...
...
docs/topics/http/sessions.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -219,17 +219,17 @@ You can edit it multiple times.
...
@@ -219,17 +219,17 @@ You can edit it multiple times.
Example: ``fav_color = request.session.pop('fav_color')``
Example: ``fav_color = request.session.pop('fav_color')``
.. method:: keys
.. method:: keys
()
.. method:: items
.. method:: items
()
.. method:: setdefault
.. method:: setdefault
()
.. method:: clear
.. method:: clear
()
It also has these methods:
It also has these methods:
.. method:: flush
.. method:: flush
()
Delete the current session data from the session and regenerate the
Delete the current session data from the session and regenerate the
session key value that is sent back to the user in the cookie. This is
session key value that is sent back to the user in the cookie. This is
...
@@ -237,21 +237,21 @@ You can edit it multiple times.
...
@@ -237,21 +237,21 @@ You can edit it multiple times.
accessed again from the user's browser (for example, the
accessed again from the user's browser (for example, the
:func:`django.contrib.auth.logout()` function calls it).
:func:`django.contrib.auth.logout()` function calls it).
.. method:: set_test_cookie
.. method:: set_test_cookie
()
Sets a test cookie to determine whether the user's browser supports
Sets a test cookie to determine whether the user's browser supports
cookies. Due to the way cookies work, you won't be able to test this
cookies. Due to the way cookies work, you won't be able to test this
until the user's next page request. See `Setting test cookies`_ below for
until the user's next page request. See `Setting test cookies`_ below for
more information.
more information.
.. method:: test_cookie_worked
.. method:: test_cookie_worked
()
Returns either ``True`` or ``False``, depending on whether the user's
Returns either ``True`` or ``False``, depending on whether the user's
browser accepted the test cookie. Due to the way cookies work, you'll
browser accepted the test cookie. Due to the way cookies work, you'll
have to call ``set_test_cookie()`` on a previous, separate page request.
have to call ``set_test_cookie()`` on a previous, separate page request.
See `Setting test cookies`_ below for more information.
See `Setting test cookies`_ below for more information.
.. method:: delete_test_cookie
.. method:: delete_test_cookie
()
Deletes the test cookie. Use this to clean up after yourself.
Deletes the test cookie. Use this to clean up after yourself.
...
@@ -280,7 +280,7 @@ You can edit it multiple times.
...
@@ -280,7 +280,7 @@ You can edit it multiple times.
purposes. Session expiration is computed from the last time the
purposes. Session expiration is computed from the last time the
session was *modified*.
session was *modified*.
.. method:: get_expiry_age
.. method:: get_expiry_age
()
Returns the number of seconds until this session expires. For sessions
Returns the number of seconds until this session expires. For sessions
with no custom expiration (or those set to expire at browser close), this
with no custom expiration (or those set to expire at browser close), this
...
@@ -295,7 +295,7 @@ You can edit it multiple times.
...
@@ -295,7 +295,7 @@ You can edit it multiple times.
``None``. Defaults to the value stored in the session by
``None``. Defaults to the value stored in the session by
:meth:`set_expiry`, if there is one, or ``None``.
:meth:`set_expiry`, if there is one, or ``None``.
.. method:: get_expiry_date
.. method:: get_expiry_date
()
Returns the date this session will expire. For sessions with no custom
Returns the date this session will expire. For sessions with no custom
expiration (or those set to expire at browser close), this will equal the
expiration (or those set to expire at browser close), this will equal the
...
@@ -303,17 +303,17 @@ You can edit it multiple times.
...
@@ -303,17 +303,17 @@ You can edit it multiple times.
This function accepts the same keyword arguments as :meth:`get_expiry_age`.
This function accepts the same keyword arguments as :meth:`get_expiry_age`.
.. method:: get_expire_at_browser_close
.. method:: get_expire_at_browser_close
()
Returns either ``True`` or ``False``, depending on whether the user's
Returns either ``True`` or ``False``, depending on whether the user's
session cookie will expire when the user's Web browser is closed.
session cookie will expire when the user's Web browser is closed.
.. method:: clear_expired
.. method:: clear_expired
()
Removes expired sessions from the session store. This class method is
Removes expired sessions from the session store. This class method is
called by :djadmin:`clearsessions`.
called by :djadmin:`clearsessions`.
.. method:: cycle_key
.. method:: cycle_key
()
Creates a new session key while retaining the current session data.
Creates a new session key while retaining the current session data.
:func:`django.contrib.auth.login()` calls this method to mitigate against
:func:`django.contrib.auth.login()` calls this method to mitigate against
...
...
docs/topics/testing/tools.txt
Dosyayı görüntüle @
05d36dc0
...
@@ -1036,7 +1036,7 @@ If ``multi_db=True``, fixtures are loaded into all databases.
...
@@ -1036,7 +1036,7 @@ If ``multi_db=True``, fixtures are loaded into all databases.
Overriding settings
Overriding settings
~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~
.. method:: SimpleTestCase.settings
.. method:: SimpleTestCase.settings
()
For testing purposes it's often useful to change a setting temporarily and
For testing purposes it's often useful to change a setting temporarily and
revert to the original value after running the testing code. For this use case
revert to the original value after running the testing code. For this use case
...
@@ -1061,7 +1061,7 @@ Django provides a standard Python context manager (see :pep:`343`) called
...
@@ -1061,7 +1061,7 @@ Django provides a standard Python context manager (see :pep:`343`) called
This example will override the :setting:`LOGIN_URL` setting for the code
This example will override the :setting:`LOGIN_URL` setting for the code
in the ``with`` block and reset its value to the previous state afterwards.
in the ``with`` block and reset its value to the previous state afterwards.
.. method:: SimpleTestCase.modify_settings
.. method:: SimpleTestCase.modify_settings
()
.. versionadded:: 1.7
.. versionadded:: 1.7
...
...
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