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
08c980d7
Kaydet (Commit)
08c980d7
authored
Nis 30, 2015
tarafından
Dave Hodder
Kaydeden (comit)
Tim Graham
May 01, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated capitalization in the word "JavaScript" for consistency
üst
57202a11
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
27 additions
and
27 deletions
+27
-27
submitting-patches.txt
...nternals/contributing/writing-code/submitting-patches.txt
+7
-7
index.txt
docs/ref/contrib/admin/index.txt
+2
-2
csrf.txt
docs/ref/csrf.txt
+2
-2
middleware.txt
docs/ref/middleware.txt
+3
-3
settings.txt
docs/ref/settings.txt
+1
-1
builtins.txt
docs/ref/templates/builtins.txt
+1
-1
1.1.2.txt
docs/releases/1.1.2.txt
+1
-1
1.2.txt
docs/releases/1.2.txt
+1
-1
1.3.txt
docs/releases/1.3.txt
+2
-2
1.5.txt
docs/releases/1.5.txt
+1
-1
1.6.txt
docs/releases/1.6.txt
+1
-1
1.7.txt
docs/releases/1.7.txt
+1
-1
spelling_wordlist
docs/spelling_wordlist
+1
-1
media.txt
docs/topics/forms/media.txt
+1
-1
formatting.txt
docs/topics/i18n/formatting.txt
+1
-1
translation.txt
docs/topics/i18n/translation.txt
+1
-1
No files found.
docs/internals/contributing/writing-code/submitting-patches.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -242,16 +242,16 @@ Once you have completed these steps, you are finished with the deprecation.
In each major release, all ``RemovedInDjangoXXWarning``\s matching the new
version are removed.
Java
s
cript patches
Java
S
cript patches
------------------
Django's admin system leverages the jQuery framework to increase the
capabilities of the admin interface. In conjunction, there is an emphasis on
admin
javas
cript performance and minimizing overall admin media file size.
Serving compressed or "minified" versions of
javas
cript files is considered
admin
JavaS
cript performance and minimizing overall admin media file size.
Serving compressed or "minified" versions of
JavaS
cript files is considered
best practice in this regard.
To that end, patches for
javas
cript files should include both the original
To that end, patches for
JavaS
cript files should include both the original
code for future development (e.g. ``foo.js``), and a compressed version for
production use (e.g. ``foo.min.js``). Any links to the file in the codebase
should point to the compressed version.
...
...
@@ -259,7 +259,7 @@ should point to the compressed version.
Compressing JavaScript
~~~~~~~~~~~~~~~~~~~~~~
To simplify the process of providing optimized
javas
cript code, Django
To simplify the process of providing optimized
JavaS
cript code, Django
includes a handy python script which should be used to create a "minified"
version. To run it::
...
...
@@ -268,11 +268,11 @@ version. To run it::
Behind the scenes, ``compress.py`` is a front-end for Google's
`Closure Compiler`_ which is written in Java. However, the Closure Compiler
library is not bundled with Django directly, so those wishing to contribute
complete
javas
cript patches will need to download and install the library
complete
JavaS
cript patches will need to download and install the library
independently. The Closure Compiler library requires `Java`_ 7 or higher.
Please don't forget to run ``compress.py`` and include the ``diff`` of the
minified scripts when submitting patches for Django's
javas
cript.
minified scripts when submitting patches for Django's
JavaS
cript.
.. _Closure Compiler: https://developers.google.com/closure/compiler/
.. _list of tickets with patches: https://code.djangoproject.com/query?status=new&status=assigned&status=reopened&has_patch=1&order=priority
...
...
docs/ref/contrib/admin/index.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -1827,7 +1827,7 @@ definitions on forms <form-asset-paths>`.
jQuery
~~~~~~
Django admin Java
s
cript makes use of the `jQuery`_ library.
Django admin Java
S
cript makes use of the `jQuery`_ library.
To avoid conflicts with user-supplied scripts or libraries, Django's jQuery
(version 1.11.2) is namespaced as ``django.jQuery``. If you want to use jQuery
...
...
@@ -2673,7 +2673,7 @@ Index ``index``
Logout ``logout``
Password change ``password_change``
Password change done ``password_change_done``
i18n
javas
cript ``jsi18n``
i18n
JavaS
cript ``jsi18n``
Application index page ``app_list`` ``app_label``
Redirect to object's page ``view_on_site`` ``content_type_id``, ``object_id``
========================= ======================== ==================================
...
...
docs/ref/csrf.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -7,7 +7,7 @@ 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
javas
cript that is intended to
Web site contains a link, a form button or some
JavaS
cript 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
...
...
@@ -80,7 +80,7 @@ While the above method can be used for AJAX POST requests, it has some
inconveniences: you have to remember to pass the CSRF token in as POST data with
every POST request. For this reason, there is an alternative method: on each
XMLHttpRequest, set a custom ``X-CSRFToken`` header to the value of the CSRF
token. This is often easier, because many
javas
cript frameworks provide hooks
token. This is often easier, because many
JavaS
cript frameworks provide hooks
that allow headers to be set on every request.
As a first step, you must get the CSRF token itself. The recommended source for
...
...
docs/ref/middleware.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -252,7 +252,7 @@ sites with improperly configured servers, it can also pose a security
risk.
If your site serves user-uploaded files, a malicious user could upload a
specially-crafted file that would be interpreted as HTML or Java
s
cript by
specially-crafted file that would be interpreted as HTML or Java
S
cript by
the browser when you expected it to be something harmless.
To learn more about this header and how the browser treats it, you can
...
...
@@ -280,8 +280,8 @@ setting will be useful.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some browsers have the ability to block content that appears to be an `XSS
attack`_. They work by looking for Java
s
cript content in the GET or POST
parameters of a page. If the Java
s
cript is replayed in the server's response,
attack`_. They work by looking for Java
S
cript content in the GET or POST
parameters of a page. If the Java
S
cript is replayed in the server's response,
the page is blocked from rendering and an error page is shown instead.
The `X-XSS-Protection header`_ is used to control the operation of the
...
...
docs/ref/settings.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -2862,7 +2862,7 @@ protected cookie data.
Turning it on makes it less trivial for an attacker to escalate a cross-site
scripting vulnerability into full hijacking of a user's session. There's not
much excuse for leaving this off, either: if your code depends on reading
session cookies from Java
s
cript, you're probably doing it wrong.
session cookies from Java
S
cript, you're probably doing it wrong.
.. _HTTPOnly: https://www.owasp.org/index.php/HTTPOnly
...
...
docs/ref/templates/builtins.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -1146,7 +1146,7 @@ verbatim
Stops the template engine from rendering the contents of this block tag.
A common use is to allow a Java
s
cript template layer that collides with
A common use is to allow a Java
S
cript template layer that collides with
Django's syntax. For example::
{% verbatim %}
...
...
docs/releases/1.1.2.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -36,7 +36,7 @@ browsers, our encoding of cookie values was changed so that the characters
comma and semi-colon are treated as non-safe characters, and are therefore
encoded as ``\054`` and ``\073`` respectively. This could produce backwards
incompatibilities, especially if you are storing comma or semi-colon in
cookies and have
javas
cript code that parses and manipulates cookie values
cookies and have
JavaS
cript code that parses and manipulates cookie values
client-side.
One new feature
...
...
docs/releases/1.2.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -686,7 +686,7 @@ other browsers, our encoding of cookie values was changed so that the
comma and semicolon are treated as non-safe characters, and are
therefore encoded as ``\054`` and ``\073`` respectively. This could
produce backwards incompatibilities, especially if you are storing
comma or semi-colon in cookies and have
javas
cript code that parses
comma or semi-colon in cookies and have
JavaS
cript code that parses
and manipulates cookie values client-side.
``ModelForm.is_valid()`` and ``ModelForm.errors``
...
...
docs/releases/1.3.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -101,7 +101,7 @@ Extended static files handling
Django 1.3 ships with a new contrib app --
``django.contrib.staticfiles`` -- to help developers handle the static
media files (images, CSS, Java
s
cript, etc.) that are needed to render
media files (images, CSS, Java
S
cript, etc.) that are needed to render
a complete web page.
In previous versions of Django, it was common to place static assets
...
...
@@ -588,7 +588,7 @@ gettext domain):
translations). See the `corresponding deprecated features section`_
of this document.
For translatable literals found in Java
s
cript code (``'djangojs'`` gettext
For translatable literals found in Java
S
cript code (``'djangojs'`` gettext
domain):
* Similarly to the ``'django'`` domain translations: Overriding of
...
...
docs/releases/1.5.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -194,7 +194,7 @@ more information.
``{% verbatim %}`` template tag
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To make it easier to deal with
javas
cript templates which collide with Django's
To make it easier to deal with
JavaS
cript templates which collide with Django's
syntax, you can now use the :ttag:`verbatim` block tag to avoid parsing the
tag's content.
...
...
docs/releases/1.6.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -857,7 +857,7 @@ Miscellaneous
:meth:`~django.db.models.query.QuerySet.none` has been called:
``isinstance(qs.none(), EmptyQuerySet)``
* If your CSS/Java
s
cript code used to access HTML input widgets by type, you
* If your CSS/Java
S
cript code used to access HTML input widgets by type, you
should review it as ``type='text'`` widgets might be now output as
``type='email'``, ``type='url'`` or ``type='number'`` depending on their
corresponding field type.
...
...
docs/releases/1.7.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -1747,7 +1747,7 @@ whose implementation was changed to make use of ``json.dumps()`` instead.
If you were relying on this function to provide safe output from untrusted
strings, you should use ``django.utils.html.escapejs`` or the
:tfilter:`escapejs` template filter.
If all you need is to generate valid
javas
cript strings, you can simply use
If all you need is to generate valid
JavaS
cript strings, you can simply use
``json.dumps()``.
``fix_ampersands`` utils method and template filter
...
...
docs/spelling_wordlist
Dosyayı görüntüle @
08c980d7
...
...
@@ -390,7 +390,7 @@ itunes
iTunes
ize
Jannis
javas
cript
JavaS
cript
Jinja
jQuery
JServ
...
...
docs/topics/forms/media.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -207,7 +207,7 @@ be prepended with the value of the appropriate prefix.
As part of the introduction of the
:doc:`staticfiles app </ref/contrib/staticfiles>` two new settings were added
to refer to "static files" (images, CSS, Java
s
cript, etc.) that are needed
to refer to "static files" (images, CSS, Java
S
cript, etc.) that are needed
to render a complete web page: :setting:`STATIC_URL` and :setting:`STATIC_ROOT`.
To find the appropriate prefix to use, Django will check if the
...
...
docs/topics/i18n/formatting.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -64,7 +64,7 @@ will try to use a locale specific format whenever it outputs a value
in a template.
However, it may not always be appropriate to use localized values --
for example, if you're outputting Java
s
cript or XML that is designed
for example, if you're outputting Java
S
cript or XML that is designed
to be machine-readable, you will always want unlocalized values. You
may also want to use localization in selected templates, rather than
using localization everywhere.
...
...
docs/topics/i18n/translation.txt
Dosyayı görüntüle @
08c980d7
...
...
@@ -1187,7 +1187,7 @@ whenever you restart your application server.
def cached_javascript_catalog(request, domain='djangojs', packages=None):
return javascript_catalog(request, domain, packages)
You can even pre-generate the
javas
cript catalog as part of your deployment
You can even pre-generate the
JavaS
cript catalog as part of your deployment
procedure and serve it as a static file. This radical technique is implemented
in django-statici18n_.
...
...
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