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
1f8dad69
Kaydet (Commit)
1f8dad69
authored
Kas 15, 2015
tarafından
Agnieszka Lasyk
Kaydeden (comit)
Tim Graham
Kas 16, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #25755 -- Unified spelling of "website".
üst
53326e2c
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
55 additions
and
55 deletions
+55
-55
general.txt
docs/faq/general.txt
+2
-2
jython.txt
docs/howto/jython.txt
+2
-2
committing-code.txt
docs/internals/contributing/committing-code.txt
+1
-1
writing-documentation.txt
docs/internals/contributing/writing-documentation.txt
+1
-1
git.txt
docs/internals/git.txt
+1
-1
overview.txt
docs/intro/overview.txt
+1
-1
reusable-apps.txt
docs/intro/reusable-apps.txt
+1
-1
tutorial01.txt
docs/intro/tutorial01.txt
+1
-1
tutorial03.txt
docs/intro/tutorial03.txt
+1
-1
tutorial04.txt
docs/intro/tutorial04.txt
+1
-1
whatsnext.txt
docs/intro/whatsnext.txt
+1
-1
design-philosophies.txt
docs/misc/design-philosophies.txt
+1
-1
index.txt
docs/ref/contrib/admin/index.txt
+1
-1
forms-api.txt
docs/ref/contrib/gis/forms-api.txt
+1
-1
geolibs.txt
docs/ref/contrib/gis/install/geolibs.txt
+1
-1
index.txt
docs/ref/contrib/gis/install/index.txt
+2
-2
model-api.txt
docs/ref/contrib/gis/model-api.txt
+1
-1
index.txt
docs/ref/contrib/index.txt
+1
-1
sitemaps.txt
docs/ref/contrib/sitemaps.txt
+1
-1
sites.txt
docs/ref/contrib/sites.txt
+5
-5
csrf.txt
docs/ref/csrf.txt
+2
-2
fields.txt
docs/ref/forms/fields.txt
+2
-2
validators.txt
docs/ref/validators.txt
+1
-1
0.95.txt
docs/releases/0.95.txt
+4
-4
1.2.txt
docs/releases/1.2.txt
+2
-2
customizing.txt
docs/topics/auth/customizing.txt
+1
-1
cache.txt
docs/topics/cache.txt
+3
-3
email.txt
docs/topics/email.txt
+1
-1
index.txt
docs/topics/forms/index.txt
+5
-5
urls.txt
docs/topics/http/urls.txt
+2
-2
timezones.txt
docs/topics/i18n/timezones.txt
+2
-2
security.txt
docs/topics/security.txt
+1
-1
tools.txt
docs/topics/testing/tools.txt
+2
-2
No files found.
docs/faq/general.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -13,7 +13,7 @@ At the same time, the World Online Web developers have consistently been
perfectionists when it comes to following best practices of Web development.
In fall 2003, the World Online developers (Adrian Holovaty and Simon Willison)
ditched PHP and began using Python to develop its
Web
sites. As they built
ditched PHP and began using Python to develop its
web
sites. As they built
intensive, richly interactive sites such as Lawrence.com, they began to extract
a generic Web development framework that let them build Web applications more
and more quickly. They tweaked this framework constantly, adding improvements
...
...
@@ -148,7 +148,7 @@ Is Django a content-management-system (CMS)?
--------------------------------------------
No, Django is not a CMS, or any sort of "turnkey product" in and of itself.
It's a Web framework; it's a programming tool that lets you build
Web
sites.
It's a Web framework; it's a programming tool that lets you build
web
sites.
For example, it doesn't make much sense to compare Django to something like
Drupal_, because Django is something you use to *create* things like Drupal.
...
...
docs/howto/jython.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -10,7 +10,7 @@ This document will get you up and running with Django on top of Jython.
Installing Jython
=================
Django works with Jython versions 2.7b2 and higher. See the Jython_
Web
site for
Django works with Jython versions 2.7b2 and higher. See the Jython_
web
site for
download and installation instructions.
.. _jython: http://www.jython.org/
...
...
@@ -48,7 +48,7 @@ on top of Jython.
.. _`django-jython`: https://github.com/beachmachine/django-jython
To install it, follow the `installation instructions`_ detailed on the project
Web
site. Also, read the `database backends`_ documentation there.
web
site. Also, read the `database backends`_ documentation there.
.. _`installation instructions`: https://pythonhosted.org/django-jython/quickstart.html#install
.. _`database backends`: https://pythonhosted.org/django-jython/database-backends.html
...
...
docs/internals/contributing/committing-code.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -70,7 +70,7 @@ pull request "Merged in XXXXXXX" (replacing with the commit hash) after you
merge it. Trac checks for this message format to indicate on the ticket page
whether or not a pull request is merged.
Avoid using GitHub's "Merge pull request" button on the
Web site as its
creates
Avoid using GitHub's "Merge pull request" button on the
website as it
creates
an ugly "merge commit" and makes navigating history more difficult.
When rewriting the commit history of a pull request, the goal is to make
...
...
docs/internals/contributing/writing-documentation.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -106,7 +106,7 @@ documentation:
* **Web**, **World Wide Web**, **the Web** -- note Web is always
capitalized when referring to the World Wide Web.
* **
Web site** -- use two words, with Web capitalized
.
* **
website** -- use one word, without capitalization
.
Django-specific terminology
---------------------------
...
...
docs/internals/git.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -22,7 +22,7 @@ over time, so you'll need a copy of the Git client (a program called ``git``)
on your computer, and you'll want to familiarize yourself with the basics of
how Git works.
Git's web
site offers downloads for various operating systems. The site also
Git's website offers downloads for various operating systems. The site also
contains vast amounts of `documentation`_.
The Django Git repository is located online at `github.com/django/django
...
...
docs/intro/overview.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -142,7 +142,7 @@ A dynamic admin interface: it's not just scaffolding -- it's the whole house
Once your models are defined, Django can automatically create a professional,
production ready :doc:`administrative interface </ref/contrib/admin/index>` --
a
Web
site that lets authenticated users add, change and delete objects. It's
a
web
site that lets authenticated users add, change and delete objects. It's
as easy as registering your model in the admin site:
.. snippet::
...
...
docs/intro/reusable-apps.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -300,7 +300,7 @@ the world! If this wasn't just an example, you could now:
* Email the package to a friend.
* Upload the package on your
Web
site.
* Upload the package on your
web
site.
* Post the package on a public repository, such as `the Python Package Index
(PyPI)`_. `packaging.python.org <https://packaging.python.org>`_ has `a good
...
...
docs/intro/tutorial01.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -208,7 +208,7 @@ rather than creating directories.
What's the difference between a project and an app? An app is a Web
application that does something -- e.g., a Weblog system, a database of
public records or a simple poll app. A project is a collection of
configuration and apps for a particular
Web
site. A project can contain
configuration and apps for a particular
web
site. A project can contain
multiple apps. An app can be in multiple projects.
Your apps can live anywhere on your `Python path`_. In this tutorial, we'll
...
...
docs/intro/tutorial03.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -103,7 +103,7 @@ method and display whatever ID you provide in the URL. Try
"/polls/34/results/" and "/polls/34/vote/" too -- these will display the
placeholder results and voting pages.
When somebody requests a page from your
Web
site -- say, "/polls/34/", Django
When somebody requests a page from your
web
site -- say, "/polls/34/", Django
will load the ``mysite.urls`` Python module because it's pointed to by the
:setting:`ROOT_URLCONF` setting. It finds the variable named ``urlpatterns``
and traverses the regular expressions in order. The
...
...
docs/intro/tutorial04.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -183,7 +183,7 @@ without having chosen a choice, you should see the error message.
The code for our ``vote()`` view does have a small problem. It first gets
the ``selected_choice`` object from the database, then computes the new
value of ``votes``, and then saves it back to the database. If two users of
your
Web
site try to vote at *exactly the same time*, this might go wrong:
your
web
site try to vote at *exactly the same time*, this might go wrong:
The same value, let's say 42, will be retrieved for ``votes``. Then, for
both users the new value of 43 is computed and saved, but 44 would be the
expected value.
...
...
docs/intro/whatsnext.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -161,7 +161,7 @@ You can get a local copy of the HTML documentation following a few easy steps:
* Django's documentation uses a system called Sphinx__ to convert from
plain text to HTML. You'll need to install Sphinx by either downloading
and installing the package from the Sphinx
Web
site, or with ``pip``:
and installing the package from the Sphinx
web
site, or with ``pip``:
.. code-block:: console
...
...
docs/misc/design-philosophies.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -206,7 +206,7 @@ support functionality that goes beyond this basic goal.
Discourage redundancy
---------------------
The majority of dynamic
Web
sites use some sort of common sitewide design --
The majority of dynamic
web
sites use some sort of common sitewide design --
a common header, footer, navigation bar, etc. The Django template system should
make it easy to store those elements in a single place, eliminating duplicate
code.
...
...
docs/ref/contrib/admin/index.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -2702,7 +2702,7 @@ Multiple admin sites in the same URLconf
----------------------------------------
It's easy to create multiple instances of the admin site on the same
Django-powered
Web
site. Just create multiple instances of ``AdminSite`` and
Django-powered
web
site. Just create multiple instances of ``AdminSite`` and
root each one at a different URL.
In this example, the URLs ``/basic-admin/`` and ``/advanced-admin/`` feature
...
...
docs/ref/contrib/gis/forms-api.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -153,7 +153,7 @@ Widget classes
``template_name`` is ``gis/openlayers.html``.
``OpenLayersWidget`` and :class:`OSMWidget` use the ``openlayers.js`` file
hosted on the ``openlayers.org``
Web
site. This works for basic usage
hosted on the ``openlayers.org``
web
site. This works for basic usage
during development, but isn't appropriate for a production deployment as
``openlayers.org/api/`` has no guaranteed uptime and runs on a slow server.
You are therefore advised to subclass these widgets in order to specify
...
...
docs/ref/contrib/gis/install/geolibs.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -104,7 +104,7 @@ internal geometry representation used by GeoDjango (it's behind the "lazy"
geometries). Specifically, the C API library is called (e.g., ``libgeos_c.so``)
directly from Python using ctypes.
First, download GEOS 3.4.2 from the GEOS
Web
site and untar the source
First, download GEOS 3.4.2 from the GEOS
web
site and untar the source
archive::
$ wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2
...
...
docs/ref/contrib/gis/install/index.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -381,7 +381,7 @@ GeoDjango on Windows.
Python
^^^^^^
First, download the latest `Python 2.7 installer`__ from the Python
Web
site.
First, download the latest `Python 2.7 installer`__ from the Python
web
site.
Next, run the installer and keep the defaults -- for example, keep
'Install for all users' checked and the installation path set as
``C:\Python27``.
...
...
@@ -398,7 +398,7 @@ PostgreSQL
^^^^^^^^^^
First, download the latest `PostgreSQL 9.x installer`__ from the
`EnterpriseDB`__
Web
site. After downloading, simply run the installer,
`EnterpriseDB`__
web
site. After downloading, simply run the installer,
follow the on-screen directions, and keep the default options unless
you know the consequences of changing them.
...
...
docs/ref/contrib/gis/model-api.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -147,7 +147,7 @@ Additional Resources:
* `spatialreference.org`__: A Django-powered database of spatial reference
systems.
* `The State Plane Coordinate System`__: A
Web
site covering the various
* `The State Plane Coordinate System`__: A
web
site covering the various
projection systems used in the United States. Much of the U.S. spatial
data encountered will be in one of these coordinate systems rather than
in a geographic coordinate system such as WGS84.
...
...
docs/ref/contrib/index.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -116,7 +116,7 @@ See the :doc:`sessions documentation </topics/http/sessions>`.
sites
=====
A light framework that lets you operate multiple
Web
sites off of the same
A light framework that lets you operate multiple
web
sites off of the same
database and Django installation. It gives you hooks for associating objects to
one or more sites.
...
...
docs/ref/contrib/sitemaps.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -13,7 +13,7 @@ creating sitemap_ XML files easy.
Overview
========
A sitemap is an XML file on your
Web
site that tells search-engine indexers how
A sitemap is an XML file on your
web
site that tells search-engine indexers how
frequently your pages change and how "important" certain pages are in relation
to other pages on your site. This information helps search engines index your
site.
...
...
docs/ref/contrib/sites.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -3,11 +3,11 @@ The "sites" framework
=====================
.. module:: django.contrib.sites
:synopsis: Lets you operate multiple
Web
sites from the same database and
:synopsis: Lets you operate multiple
web
sites from the same database and
Django project
Django comes with an optional "sites" framework. It's a hook for associating
objects and functionality to particular
Web
sites, and it's a holding place for
objects and functionality to particular
web
sites, and it's a holding place for
the domain names and "verbose" names of your Django-powered sites.
Use it if your single Django installation powers more than one site and you
...
...
@@ -17,11 +17,11 @@ The sites framework is mainly based on a simple model:
.. class:: models.Site
A model for storing the ``domain`` and ``name`` attributes of a
Web
site.
A model for storing the ``domain`` and ``name`` attributes of a
web
site.
.. attribute:: domain
The fully qualified domain name associated with the
Web
site.
The fully qualified domain name associated with the
web
site.
For example, ``www.example.com``.
.. versionchanged:: 1.9
...
...
@@ -31,7 +31,7 @@ The sites framework is mainly based on a simple model:
.. attribute:: name
A human-readable "verbose" name for the
Web
site.
A human-readable "verbose" name for the
web
site.
The :setting:`SITE_ID` setting specifies the database ID of the
:class:`~django.contrib.sites.models.Site` object associated with that
...
...
docs/ref/csrf.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -7,8 +7,8 @@ Cross Site Request Forgery protection
The CSRF middleware and template tag provides easy-to-use protection against
`Cross Site Request Forgeries`_. This type of attack occurs when a malicious
Web
site contains a link, a form button or some JavaScript that is intended to
perform some action on your
Web
site, using the credentials of a logged-in user
web
site contains a link, a form button or some JavaScript that is intended to
perform some action on your
web
site, using the credentials of a logged-in user
who visits the malicious site in their browser. A related type of attack,
'login CSRF', where an attacking site tricks a user's browser into logging into
a site with someone else's credentials, is also covered.
...
...
docs/ref/forms/fields.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -111,12 +111,12 @@ We've specified ``auto_id=False`` to simplify the output::
>>> from django import forms
>>> class CommentForm(forms.Form):
... name = forms.CharField(label='Your name')
... url = forms.URLField(label='Your
Web
site', required=False)
... url = forms.URLField(label='Your
web
site', required=False)
... comment = forms.CharField()
>>> f = CommentForm(auto_id=False)
>>> print(f)
<tr><th>Your name:</th><td><input type="text" name="name" /></td></tr>
<tr><th>Your
Web
site:</th><td><input type="url" name="url" /></td></tr>
<tr><th>Your
web
site:</th><td><input type="url" name="url" /></td></tr>
<tr><th>Comment:</th><td><input type="text" name="comment" /></td></tr>
``label_suffix``
...
...
docs/ref/validators.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -159,7 +159,7 @@ to, or in lieu of custom ``field.clean()`` methods.
URL/URI scheme list to validate against. If not provided, the default
list is ``['http', 'https', 'ftp', 'ftps']``. As a reference, the IANA
Web
site provides a full list of `valid URI schemes`_.
web
site provides a full list of `valid URI schemes`_.
.. _valid URI schemes: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
...
...
docs/releases/0.95.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -98,9 +98,9 @@ Problem reports and getting help
================================
Need help resolving a problem with Django? The documentation in the
distribution is also available :doc:`online </index>` at the `Django
Web
site`_. The :doc:`FAQ </faq/index>` document is especially recommended, as it
contains
a number of issues that come up time and again.
distribution is also available :doc:`online </index>` at the `Django
website`_.
The :doc:`FAQ </faq/index>` document is especially recommended, as it contains
a number of issues that come up time and again.
For more personalized help, the `django-users`_ mailing list is a very active
list, with more than 2,000 subscribers who can help you solve any sort of
...
...
@@ -113,7 +113,7 @@ there's a #django channel on irc.freenode.net that is regularly populated by
Django users and developers from around the world. Friendly people are usually
available at any hour of the day -- to help, or just to chat.
.. _Django
Web
site: https://www.djangoproject.com/
.. _Django
web
site: https://www.djangoproject.com/
.. _django-users: http://groups.google.com/group/django-users
Thanks for using Django!
...
...
docs/releases/1.2.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -142,8 +142,8 @@ Improved CSRF protection
Django now has much improved protection against :doc:`Cross-Site Request Forgery
(CSRF) attacks</ref/csrf>`. This type of attack occurs when a malicious
Web
site contains a link, a form button or some JavaScript that is intended to
perform some action on your
Web
site, using the credentials of a logged-in user
web
site contains a link, a form button or some JavaScript that is intended to
perform some action on your
web
site, using the credentials of a logged-in user
who visits the malicious site in their browser. A related type of attack, "login
CSRF," where an attacking site tricks a user's browser into logging into a site
with someone else's credentials, is also covered.
...
...
docs/topics/auth/customizing.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -217,7 +217,7 @@ Authorization for anonymous users
An anonymous user is one that is not authenticated i.e. they have provided no
valid authentication details. However, that does not necessarily mean they are
not authorized to do anything. At the most basic level, most
Web
sites
not authorized to do anything. At the most basic level, most
web
sites
authorize anonymous users to browse most of the site, and many allow anonymous
posting of comments etc.
...
...
docs/topics/cache.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -2,7 +2,7 @@
Django's cache framework
========================
A fundamental trade-off in dynamic
Web
sites is, well, they're dynamic. Each
A fundamental trade-off in dynamic
web
sites is, well, they're dynamic. Each
time a user requests a page, the Web server makes all sorts of calculations --
from database queries to template rendering to business logic -- to create the
page that your site's visitor sees. This is a lot more expensive, from a
...
...
@@ -1011,7 +1011,7 @@ Downstream caches
So far, this document has focused on caching your *own* data. But another type
of caching is relevant to Web development, too: caching performed by
"downstream" caches. These are systems that cache pages for users even before
the request reaches your
Web
site.
the request reaches your
web
site.
Here are a few examples of downstream caches:
...
...
@@ -1021,7 +1021,7 @@ Here are a few examples of downstream caches:
knowledge of this caching; the ISP sits between example.com and your Web
browser, handling all of the caching transparently.
* Your Django
Web
site may sit behind a *proxy cache*, such as Squid Web
* Your Django
web
site may sit behind a *proxy cache*, such as Squid Web
Proxy Cache (http://www.squid-cache.org/), that caches pages for
performance. In this case, each request first would be handled by the
proxy, and it would be passed to your application only if needed.
...
...
docs/topics/email.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -611,7 +611,7 @@ Configuring email for development
=================================
There are times when you do not want Django to send emails at
all. For example, while developing a
Web
site, you probably don't want
all. For example, while developing a
web
site, you probably don't want
to send out thousands of emails -- but you may want to validate that
emails will be sent to the right people under the right conditions,
and that those emails will contain the correct content.
...
...
docs/topics/forms/index.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -11,7 +11,7 @@ Working with forms
the forms API, see :doc:`/ref/forms/api`, :doc:`/ref/forms/fields`, and
:doc:`/ref/forms/validation`.
Unless you're planning to build
Web
sites and applications that do nothing but
Unless you're planning to build
web
sites and applications that do nothing but
publish content, and don't accept input from your visitors, you're going to
need to understand and use forms.
...
...
@@ -172,7 +172,7 @@ example with:
* data received from a previous HTML form submission
The last of these cases is the most interesting, because it's what makes it
possible for users not just to read a
Web
site, but to send information back
possible for users not just to read a
web
site, but to send information back
to it too.
Building a form
...
...
@@ -181,7 +181,7 @@ Building a form
The work that needs to be done
------------------------------
Suppose you want to create a simple form on your
Web
site, in order to obtain
Suppose you want to create a simple form on your
web
site, in order to obtain
the user's name. You'd need something like this in your template:
.. code-block:: html+django
...
...
@@ -269,7 +269,7 @@ We'll have to provide those ourselves in the template.
The view
^^^^^^^^
Form data sent back to a Django
Web
site is processed by a view, generally the
Form data sent back to a Django
web
site is processed by a view, generally the
same view which published the form. This allows us to reuse some of the same
logic.
...
...
@@ -400,7 +400,7 @@ More on fields
--------------
Consider a more useful form than our minimal example above, which we could use
to implement "contact me" functionality on a personal
Web
site:
to implement "contact me" functionality on a personal
web
site:
.. snippet::
:filename: forms.py
...
...
docs/topics/http/urls.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -274,7 +274,7 @@ Including other URLconfs
At any point, your ``urlpatterns`` can "include" other URLconf modules. This
essentially "roots" a set of URLs below other ones.
For example, here's an excerpt of the URLconf for the `Django
Web
site`_
For example, here's an excerpt of the URLconf for the `Django
web
site`_
itself. It includes a number of other URLconfs::
from django.conf.urls import include, url
...
...
@@ -343,7 +343,7 @@ the suffixes that differ::
])),
]
.. _`Django
Web
site`: https://www.djangoproject.com/
.. _`Django
web
site`: https://www.djangoproject.com/
Captured parameters
-------------------
...
...
docs/topics/i18n/timezones.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -16,7 +16,7 @@ translates them to the end user's time zone in templates and forms.
This is handy if your users live in more than one time zone and you want to
display datetime information according to each user's wall clock.
Even if your
Web
site is available in only one time zone, it's still good
Even if your
web
site is available in only one time zone, it's still good
practice to store data in UTC in your database. The main reason is Daylight
Saving Time (DST). Many countries have a system of DST, where clocks are moved
forward in spring and backward in autumn. If you're working in local time,
...
...
@@ -168,7 +168,7 @@ time zone automatically. Instead, Django provides :ref:`time zone selection
functions <time-zone-selection-functions>`. Use them to build the time zone
selection logic that makes sense for you.
Most
Web
sites that care about time zones just ask users in which time zone they
Most
web
sites that care about time zones just ask users in which time zone they
live and store this information in the user's profile. For anonymous users,
they use the time zone of their primary audience or UTC. pytz_ provides
helpers_, like a list of time zones per country, that you can use to pre-select
...
...
docs/topics/security.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -65,7 +65,7 @@ control.
:ref:`CSRF protection works <how-csrf-works>` by checking for a nonce in each
POST request. This ensures that a malicious user cannot simply "replay" a form
POST to your
Web
site and have another logged in user unwittingly submit that
POST to your
web
site and have another logged in user unwittingly submit that
form. The malicious user would have to know the nonce, which is user specific
(using a cookie).
...
...
docs/topics/testing/tools.txt
Dosyayı görüntüle @
1f8dad69
...
...
@@ -740,7 +740,7 @@ TestCase
.. class:: TestCase()
This class provides some additional capabilities that can be useful for testing
Web
sites.
web
sites.
Converting a normal :class:`unittest.TestCase` to a Django :class:`TestCase` is
easy: Just change the base class of your test from ``'unittest.TestCase'`` to
...
...
@@ -1028,7 +1028,7 @@ Fixture loading
.. attribute:: TransactionTestCase.fixtures
A test case for a database-backed
Web
site isn't much use if there isn't any
A test case for a database-backed
web
site isn't much use if there isn't any
data in the database. To make it easy to put test data into the database,
Django's custom ``TransactionTestCase`` class provides a way of loading
**fixtures**.
...
...
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