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
e90af8ba
Kaydet (Commit)
e90af8ba
authored
Eki 09, 2018
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
Eki 09, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Capitalized "Python" in docs and comments.
üst
31c03486
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
13 deletions
+13
-13
ogrinspect.py
django/contrib/gis/utils/ogrinspect.py
+1
-1
storage.py
django/core/files/storage.py
+1
-1
loader.py
django/db/migrations/loader.py
+1
-1
questioner.py
django/db/migrations/questioner.py
+1
-1
dispatcher.py
django/dispatch/dispatcher.py
+1
-1
runner.py
django/test/runner.py
+1
-1
fields.txt
docs/ref/contrib/postgres/fields.txt
+1
-1
1.5.txt
docs/releases/1.5.txt
+1
-1
logging.txt
docs/topics/logging.txt
+1
-1
manage_translations.py
scripts/manage_translations.py
+1
-1
tests.py
tests/file_storage/tests.py
+1
-1
test_percents.py
tests/i18n/test_percents.py
+1
-1
tests.py
tests/inspectdb/tests.py
+1
-1
No files found.
django/contrib/gis/utils/ogrinspect.py
Dosyayı görüntüle @
e90af8ba
...
@@ -60,7 +60,7 @@ def ogrinspect(*args, **kwargs):
...
@@ -60,7 +60,7 @@ def ogrinspect(*args, **kwargs):
...will print model definition to stout
...will print model definition to stout
or put this in a
p
ython script and use to redirect the output to a new
or put this in a
P
ython script and use to redirect the output to a new
model like:
model like:
$ python generate_model.py > myapp/models.py
$ python generate_model.py > myapp/models.py
...
...
django/core/files/storage.py
Dosyayı görüntüle @
e90af8ba
...
@@ -35,7 +35,7 @@ class Storage:
...
@@ -35,7 +35,7 @@ class Storage:
def
save
(
self
,
name
,
content
,
max_length
=
None
):
def
save
(
self
,
name
,
content
,
max_length
=
None
):
"""
"""
Save new content to the file specified by name. The content should be
Save new content to the file specified by name. The content should be
a proper File object or any
p
ython file-like object, ready to be read
a proper File object or any
P
ython file-like object, ready to be read
from the beginning.
from the beginning.
"""
"""
# Get the proper name for the file, as it will actually be saved.
# Get the proper name for the file, as it will actually be saved.
...
...
django/db/migrations/loader.py
Dosyayı görüntüle @
e90af8ba
...
@@ -24,7 +24,7 @@ class MigrationLoader:
...
@@ -24,7 +24,7 @@ class MigrationLoader:
but will probably follow the 1234_name.py convention.
but will probably follow the 1234_name.py convention.
On initialization, this class will scan those directories, and open and
On initialization, this class will scan those directories, and open and
read the
p
ython files, looking for a class called Migration, which should
read the
P
ython files, looking for a class called Migration, which should
inherit from django.db.migrations.Migration. See
inherit from django.db.migrations.Migration. See
django.db.migrations.migration for what that looks like.
django.db.migrations.migration for what that looks like.
...
...
django/db/migrations/questioner.py
Dosyayı görüntüle @
e90af8ba
...
@@ -29,7 +29,7 @@ class MigrationQuestioner:
...
@@ -29,7 +29,7 @@ class MigrationQuestioner:
return
True
return
True
# Otherwise, we look to see if it has a migrations module
# Otherwise, we look to see if it has a migrations module
# without any Python files in it, apart from __init__.py.
# without any Python files in it, apart from __init__.py.
# Apps from the new app template will have these; the
p
ython
# Apps from the new app template will have these; the
P
ython
# file check will ensure we skip South ones.
# file check will ensure we skip South ones.
try
:
try
:
app_config
=
apps
.
get_app_config
(
app_label
)
app_config
=
apps
.
get_app_config
(
app_label
)
...
...
django/dispatch/dispatcher.py
Dosyayı görüntüle @
e90af8ba
...
@@ -182,7 +182,7 @@ class Signal:
...
@@ -182,7 +182,7 @@ class Signal:
Arguments:
Arguments:
sender
sender
The sender of the signal. Can be any
p
ython object (normally one
The sender of the signal. Can be any
P
ython object (normally one
registered with a connect if you actually want something to
registered with a connect if you actually want something to
occur).
occur).
...
...
django/test/runner.py
Dosyayı görüntüle @
e90af8ba
...
@@ -611,7 +611,7 @@ class DiscoverRunner:
...
@@ -611,7 +611,7 @@ class DiscoverRunner:
def
is_discoverable
(
label
):
def
is_discoverable
(
label
):
"""
"""
Check if a test label points to a
p
ython package or file directory.
Check if a test label points to a
P
ython package or file directory.
Relative labels like "." and ".." are seen as directories.
Relative labels like "." and ".." are seen as directories.
"""
"""
...
...
docs/ref/contrib/postgres/fields.txt
Dosyayı görüntüle @
e90af8ba
...
@@ -621,7 +621,7 @@ start and end timestamps of an event, or the range of ages an activity is
...
@@ -621,7 +621,7 @@ start and end timestamps of an event, or the range of ages an activity is
suitable for.
suitable for.
All of the range fields translate to :ref:`psycopg2 Range objects
All of the range fields translate to :ref:`psycopg2 Range objects
<psycopg2:adapt-range>` in
p
ython, but also accept tuples as input if no bounds
<psycopg2:adapt-range>` in
P
ython, but also accept tuples as input if no bounds
information is necessary. The default is lower bound included, upper bound
information is necessary. The default is lower bound included, upper bound
excluded; that is, ``[)``.
excluded; that is, ``[)``.
...
...
docs/releases/1.5.txt
Dosyayı görüntüle @
e90af8ba
...
@@ -668,7 +668,7 @@ Miscellaneous
...
@@ -668,7 +668,7 @@ Miscellaneous
* :func:`~django.utils.http.int_to_base36` properly raises a
* :func:`~django.utils.http.int_to_base36` properly raises a
:exc:`TypeError` instead of :exc:`ValueError` for non-integer inputs.
:exc:`TypeError` instead of :exc:`ValueError` for non-integer inputs.
* The ``slugify`` template filter is now available as a standard
p
ython
* The ``slugify`` template filter is now available as a standard
P
ython
function at :func:`django.utils.text.slugify`. Similarly, ``remove_tags`` is
function at :func:`django.utils.text.slugify`. Similarly, ``remove_tags`` is
available at ``django.utils.html.remove_tags()``.
available at ``django.utils.html.remove_tags()``.
...
...
docs/topics/logging.txt
Dosyayı görüntüle @
e90af8ba
...
@@ -148,7 +148,7 @@ by a name. This name is used to identify the logger for configuration
...
@@ -148,7 +148,7 @@ by a name. This name is used to identify the logger for configuration
purposes.
purposes.
By convention, the logger name is usually ``__name__``, the name of
By convention, the logger name is usually ``__name__``, the name of
the
p
ython module that contains the logger. This allows you to filter
the
P
ython module that contains the logger. This allows you to filter
and handle logging calls on a per-module basis. However, if you have
and handle logging calls on a per-module basis. However, if you have
some other way of organizing your logging messages, you can provide
some other way of organizing your logging messages, you can provide
any dot-separated name to identify your logger::
any dot-separated name to identify your logger::
...
...
scripts/manage_translations.py
Dosyayı görüntüle @
e90af8ba
#!/usr/bin/env python
#!/usr/bin/env python
#
#
# This
p
ython file contains utility scripts to manage Django translations.
# This
P
ython file contains utility scripts to manage Django translations.
# It has to be run inside the django git root directory.
# It has to be run inside the django git root directory.
#
#
# The following commands are available:
# The following commands are available:
...
...
tests/file_storage/tests.py
Dosyayı görüntüle @
e90af8ba
...
@@ -821,7 +821,7 @@ class FileFieldStorageTests(TestCase):
...
@@ -821,7 +821,7 @@ class FileFieldStorageTests(TestCase):
# Create sample file
# Create sample file
temp_storage
.
save
(
'tests/example.txt'
,
ContentFile
(
'some content'
))
temp_storage
.
save
(
'tests/example.txt'
,
ContentFile
(
'some content'
))
# Load it as
p
ython file object
# Load it as
P
ython file object
with
open
(
temp_storage
.
path
(
'tests/example.txt'
))
as
file_obj
:
with
open
(
temp_storage
.
path
(
'tests/example.txt'
))
as
file_obj
:
# Save it using storage and read its content
# Save it using storage and read its content
temp_storage
.
save
(
'tests/file_obj'
,
file_obj
)
temp_storage
.
save
(
'tests/file_obj'
,
file_obj
)
...
...
tests/i18n/test_percents.py
Dosyayı görüntüle @
e90af8ba
...
@@ -33,7 +33,7 @@ class ExtractingStringsWithPercentSigns(POFileAssertionMixin, FrenchTestCase):
...
@@ -33,7 +33,7 @@ class ExtractingStringsWithPercentSigns(POFileAssertionMixin, FrenchTestCase):
Percent signs are python formatted.
Percent signs are python formatted.
These tests should all have an analogous translation tests below, ensuring
These tests should all have an analogous translation tests below, ensuring
the
p
ython formatting does not persist through to a rendered template.
the
P
ython formatting does not persist through to a rendered template.
"""
"""
def
setUp
(
self
):
def
setUp
(
self
):
...
...
tests/inspectdb/tests.py
Dosyayı görüntüle @
e90af8ba
...
@@ -138,7 +138,7 @@ class InspectDBTestCase(TestCase):
...
@@ -138,7 +138,7 @@ class InspectDBTestCase(TestCase):
out
=
StringIO
()
out
=
StringIO
()
call_command
(
'inspectdb'
,
table_name_filter
=
inspectdb_tables_only
,
stdout
=
out
)
call_command
(
'inspectdb'
,
table_name_filter
=
inspectdb_tables_only
,
stdout
=
out
)
output
=
out
.
getvalue
()
output
=
out
.
getvalue
()
error_message
=
"inspectdb generated an attribute name which is a
p
ython keyword"
error_message
=
"inspectdb generated an attribute name which is a
P
ython keyword"
# Recursive foreign keys should be set to 'self'
# Recursive foreign keys should be set to 'self'
self
.
assertIn
(
"parent = models.ForeignKey('self', models.DO_NOTHING)"
,
output
)
self
.
assertIn
(
"parent = models.ForeignKey('self', models.DO_NOTHING)"
,
output
)
self
.
assertNotIn
(
self
.
assertNotIn
(
...
...
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