~ubuntu-branches/ubuntu/utopic/python-django/utopic

« back to all changes in this revision

Viewing changes to docs/intro/tutorial02.txt

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2012-08-02 10:44:02 UTC
  • mfrom: (1.1.17) (4.4.20 sid)
  • Revision ID: package-import@ubuntu.com-20120802104402-x26ethgm9s21la1y
* New upstream security and maintenance release. Closes: #683364
  Fixes: CVE-2012-3442 CVE-2012-3443 CVE-2012-3444
* Drop 01_disable_broken_test.diff and 04_hyphen-manpage.diff which
  have been merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
With that ``TabularInline`` (instead of ``StackedInline``), the
320
320
related objects are displayed in a more compact, table-based format:
321
321
 
322
 
.. image:: _images/admin12.png
 
322
.. image:: _images/admin12t.png
323
323
   :alt: Add poll page now has more compact choices
324
324
 
 
325
Note that there is an extra "Delete?" column that allows removing rows added
 
326
using the "Add Another Choice" button and rows that have already been saved.
 
327
 
325
328
Customize the admin change list
326
329
===============================
327
330
 
442
445
``/home/my_username/mytemplates/admin/base_site.html``. Don't forget that
443
446
``admin`` subdirectory.
444
447
 
 
448
.. admonition:: Where are the Django source files?
 
449
 
 
450
    If you have difficulty finding where the Django source files are located
 
451
    on your system, run the following command:
 
452
 
 
453
    .. code-block:: bash
 
454
 
 
455
        python -c "
 
456
        import sys
 
457
        sys.path = sys.path[1:]
 
458
        import django
 
459
        print(django.__path__)"
 
460
 
445
461
Then, just edit the file and replace the generic Django text with your own
446
462
site's name as you see fit.
447
463