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
aad5661c
Kaydet (Commit)
aad5661c
authored
Nis 12, 2013
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #20247 - Added some missing paths in the tutorial.
Thanks gsavix for the suggestion and patch.
üst
6d968317
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
tutorial01.txt
docs/intro/tutorial01.txt
+2
-2
tutorial02.txt
docs/intro/tutorial02.txt
+6
-6
No files found.
docs/intro/tutorial01.txt
Dosyayı görüntüle @
aad5661c
...
...
@@ -262,7 +262,7 @@ that, run the following command:
The :djadmin:`syncdb` command looks at the :setting:`INSTALLED_APPS` setting
and creates any necessary database tables according to the database settings
in your :file:`mys
ql
ite/settings.py` file. You'll see a message for each
in your :file:`mysite/settings.py` file. You'll see a message for each
database table it creates, and you'll get a prompt asking you if you'd like to
create a superuser account for the authentication system. Go ahead and do
that.
...
...
@@ -525,7 +525,7 @@ API Django gives you. To invoke the Python shell, use this command:
We're using this instead of simply typing "python", because :file:`manage.py`
sets the ``DJANGO_SETTINGS_MODULE`` environment variable, which gives Django
the Python import path to your :file:`settings.py` file.
the Python import path to your :file:`
mysite/
settings.py` file.
.. admonition:: Bypassing manage.py
...
...
docs/intro/tutorial02.txt
Dosyayı görüntüle @
aad5661c
...
...
@@ -78,8 +78,8 @@ Make the poll app modifiable in the admin
But where's our poll app? It's not displayed on the admin index page.
Just one thing to do: we need to tell the admin that ``Poll``
objects have an admin interface. To do this, open the
file called
``admin.py`` in your ``polls`` directory
, and edit it to look like this::
objects have an admin interface. To do this, open the
:file:`polls/admin.py`
file
, and edit it to look like this::
from django.contrib import admin
from polls.models import Poll
...
...
@@ -339,7 +339,7 @@ of an arbitrary method is not supported. Also note that the column header for
underscores replaced with spaces), and that each line contains the string
representation of the output.
You can improve that by giving that method (in
``models.py`
`) a few
You can improve that by giving that method (in
:file:`polls/models.py
`) a few
attributes, as follows::
class Poll(models.Model):
...
...
@@ -350,8 +350,8 @@ attributes, as follows::
was_published_recently.boolean = True
was_published_recently.short_description = 'Published recently?'
Edit your
admin.py file again and add an improvement to the Poll change list page: Filters. Add the
following line to ``PollAdmin``::
Edit your
:file:`polls/admin.py` file again and add an improvement to the Poll
change list page: Filters. Add the
following line to ``PollAdmin``::
list_filter = ['pub_date']
...
...
@@ -409,7 +409,7 @@ live anywhere on your filesystem that Django can access. (Django runs as
whatever user your server runs.) However, keeping your templates within the
project is a good convention to follow.
Open your settings file (
``mysite/settings.py``, remember) and
add a
Open your settings file (
:file:`mysite/settings.py`, remember) and
add a
:setting:`TEMPLATE_DIRS` setting::
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
...
...
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