diff options
author | Nishanth Amuluru | 2011-01-08 11:20:57 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-01-08 11:20:57 +0530 |
commit | 65411d01d448ff0cd4abd14eee14cf60b5f8fc20 (patch) | |
tree | b4c404363c4c63a61d6e2f8bd26c5b057c1fb09d /parts/django/docs/obsolete | |
parent | 2e35094d43b4cc6974172e1febf76abb50f086ec (diff) | |
download | pytask-65411d01d448ff0cd4abd14eee14cf60b5f8fc20.tar.gz pytask-65411d01d448ff0cd4abd14eee14cf60b5f8fc20.tar.bz2 pytask-65411d01d448ff0cd4abd14eee14cf60b5f8fc20.zip |
Added buildout stuff and made changes accordingly
--HG--
rename : profile/management/__init__.py => eggs/djangorecipe-0.20-py2.6.egg/EGG-INFO/dependency_links.txt
rename : profile/management/__init__.py => eggs/djangorecipe-0.20-py2.6.egg/EGG-INFO/not-zip-safe
rename : profile/management/__init__.py => eggs/infrae.subversion-1.4.5-py2.6.egg/EGG-INFO/dependency_links.txt
rename : profile/management/__init__.py => eggs/infrae.subversion-1.4.5-py2.6.egg/EGG-INFO/not-zip-safe
rename : profile/management/__init__.py => eggs/mercurial-1.7.3-py2.6-linux-x86_64.egg/EGG-INFO/dependency_links.txt
rename : profile/management/__init__.py => eggs/mercurial-1.7.3-py2.6-linux-x86_64.egg/EGG-INFO/not-zip-safe
rename : profile/management/__init__.py => eggs/py-1.4.0-py2.6.egg/EGG-INFO/dependency_links.txt
rename : profile/management/__init__.py => eggs/py-1.4.0-py2.6.egg/EGG-INFO/not-zip-safe
rename : profile/management/__init__.py => eggs/zc.buildout-1.5.2-py2.6.egg/EGG-INFO/dependency_links.txt
rename : profile/management/__init__.py => eggs/zc.buildout-1.5.2-py2.6.egg/EGG-INFO/not-zip-safe
rename : profile/management/__init__.py => eggs/zc.recipe.egg-1.3.2-py2.6.egg/EGG-INFO/dependency_links.txt
rename : profile/management/__init__.py => eggs/zc.recipe.egg-1.3.2-py2.6.egg/EGG-INFO/not-zip-safe
rename : profile/management/__init__.py => parts/django/Django.egg-info/dependency_links.txt
rename : taskapp/models.py => parts/django/django/conf/app_template/models.py
rename : taskapp/tests.py => parts/django/django/conf/app_template/tests.py
rename : taskapp/views.py => parts/django/django/conf/app_template/views.py
rename : taskapp/views.py => parts/django/django/contrib/gis/tests/geo3d/views.py
rename : profile/management/__init__.py => parts/django/tests/modeltests/delete/__init__.py
rename : profile/management/__init__.py => parts/django/tests/modeltests/files/__init__.py
rename : profile/management/__init__.py => parts/django/tests/modeltests/invalid_models/__init__.py
rename : profile/management/__init__.py => parts/django/tests/modeltests/m2m_signals/__init__.py
rename : profile/management/__init__.py => parts/django/tests/modeltests/model_package/__init__.py
rename : profile/management/__init__.py => parts/django/tests/regressiontests/bash_completion/__init__.py
rename : profile/management/__init__.py => parts/django/tests/regressiontests/bash_completion/management/__init__.py
rename : profile/management/__init__.py => parts/django/tests/regressiontests/bash_completion/management/commands/__init__.py
rename : profile/management/__init__.py => parts/django/tests/regressiontests/bash_completion/models.py
rename : profile/management/__init__.py => parts/django/tests/regressiontests/delete_regress/__init__.py
rename : profile/management/__init__.py => parts/django/tests/regressiontests/file_storage/__init__.py
rename : profile/management/__init__.py => parts/django/tests/regressiontests/max_lengths/__init__.py
rename : profile/forms.py => pytask/profile/forms.py
rename : profile/management/__init__.py => pytask/profile/management/__init__.py
rename : profile/management/commands/seed_db.py => pytask/profile/management/commands/seed_db.py
rename : profile/models.py => pytask/profile/models.py
rename : profile/templatetags/user_tags.py => pytask/profile/templatetags/user_tags.py
rename : taskapp/tests.py => pytask/profile/tests.py
rename : profile/urls.py => pytask/profile/urls.py
rename : profile/utils.py => pytask/profile/utils.py
rename : profile/views.py => pytask/profile/views.py
rename : static/css/base.css => pytask/static/css/base.css
rename : taskapp/tests.py => pytask/taskapp/tests.py
rename : taskapp/views.py => pytask/taskapp/views.py
rename : templates/base.html => pytask/templates/base.html
rename : templates/profile/browse_notifications.html => pytask/templates/profile/browse_notifications.html
rename : templates/profile/edit.html => pytask/templates/profile/edit.html
rename : templates/profile/view.html => pytask/templates/profile/view.html
rename : templates/profile/view_notification.html => pytask/templates/profile/view_notification.html
rename : templates/registration/activate.html => pytask/templates/registration/activate.html
rename : templates/registration/activation_email.txt => pytask/templates/registration/activation_email.txt
rename : templates/registration/activation_email_subject.txt => pytask/templates/registration/activation_email_subject.txt
rename : templates/registration/logged_out.html => pytask/templates/registration/logged_out.html
rename : templates/registration/login.html => pytask/templates/registration/login.html
rename : templates/registration/logout.html => pytask/templates/registration/logout.html
rename : templates/registration/password_change_done.html => pytask/templates/registration/password_change_done.html
rename : templates/registration/password_change_form.html => pytask/templates/registration/password_change_form.html
rename : templates/registration/password_reset_complete.html => pytask/templates/registration/password_reset_complete.html
rename : templates/registration/password_reset_confirm.html => pytask/templates/registration/password_reset_confirm.html
rename : templates/registration/password_reset_done.html => pytask/templates/registration/password_reset_done.html
rename : templates/registration/password_reset_email.html => pytask/templates/registration/password_reset_email.html
rename : templates/registration/password_reset_form.html => pytask/templates/registration/password_reset_form.html
rename : templates/registration/registration_complete.html => pytask/templates/registration/registration_complete.html
rename : templates/registration/registration_form.html => pytask/templates/registration/registration_form.html
rename : utils.py => pytask/utils.py
Diffstat (limited to 'parts/django/docs/obsolete')
-rw-r--r-- | parts/django/docs/obsolete/_images/formrow.png | bin | 0 -> 16601 bytes | |||
-rw-r--r-- | parts/django/docs/obsolete/_images/module.png | bin | 0 -> 10072 bytes | |||
-rw-r--r-- | parts/django/docs/obsolete/_images/objecttools_01.png | bin | 0 -> 1398 bytes | |||
-rw-r--r-- | parts/django/docs/obsolete/_images/objecttools_02.png | bin | 0 -> 2268 bytes | |||
-rw-r--r-- | parts/django/docs/obsolete/admin-css.txt | 186 | ||||
-rw-r--r-- | parts/django/docs/obsolete/index.txt | 12 |
6 files changed, 198 insertions, 0 deletions
diff --git a/parts/django/docs/obsolete/_images/formrow.png b/parts/django/docs/obsolete/_images/formrow.png Binary files differnew file mode 100644 index 0000000..164dd26 --- /dev/null +++ b/parts/django/docs/obsolete/_images/formrow.png diff --git a/parts/django/docs/obsolete/_images/module.png b/parts/django/docs/obsolete/_images/module.png Binary files differnew file mode 100644 index 0000000..6acda97 --- /dev/null +++ b/parts/django/docs/obsolete/_images/module.png diff --git a/parts/django/docs/obsolete/_images/objecttools_01.png b/parts/django/docs/obsolete/_images/objecttools_01.png Binary files differnew file mode 100644 index 0000000..0aba816 --- /dev/null +++ b/parts/django/docs/obsolete/_images/objecttools_01.png diff --git a/parts/django/docs/obsolete/_images/objecttools_02.png b/parts/django/docs/obsolete/_images/objecttools_02.png Binary files differnew file mode 100644 index 0000000..06a8540 --- /dev/null +++ b/parts/django/docs/obsolete/_images/objecttools_02.png diff --git a/parts/django/docs/obsolete/admin-css.txt b/parts/django/docs/obsolete/admin-css.txt new file mode 100644 index 0000000..f4cca54 --- /dev/null +++ b/parts/django/docs/obsolete/admin-css.txt @@ -0,0 +1,186 @@ +====================================== +Customizing the Django admin interface +====================================== + +.. warning:: + + The design of the admin has changed somewhat since this document was + written, and parts may not apply any more. This document is no longer + maintained since an official API for customizing the Django admin interface + is in development. + +Django's dynamic admin interface gives you a fully-functional admin for free +with no hand-coding required. The dynamic admin is designed to be +production-ready, not just a starting point, so you can use it as-is on a real +site. While the underlying format of the admin pages is built in to Django, you +can customize the look and feel by editing the admin stylesheet and images. + +Here's a quick and dirty overview some of the main styles and classes used in +the Django admin CSS. + +Modules +======= + +The ``.module`` class is a basic building block for grouping content in the +admin. It's generally applied to a ``div`` or a ``fieldset``. It wraps the content +group in a box and applies certain styles to the elements within. An ``h2`` +within a ``div.module`` will align to the top of the ``div`` as a header for the +whole group. + +.. image:: _images/module.png + :alt: Example use of module class on admin homepage + +Column Types +============ + +.. note:: + + All admin pages (except the dashboard) are fluid-width. All fixed-width + classes from previous Django versions have been removed. + +The base template for each admin page has a block that defines the column +structure for the page. This sets a class on the page content area +(``div#content``) so everything on the page knows how wide it should be. There +are three column types available. + +colM + This is the default column setting for all pages. The "M" stands for "main". + Assumes that all content on the page is in one main column + (``div#content-main``). +colMS + This is for pages with one main column and a sidebar on the right. The "S" + stands for "sidebar". Assumes that main content is in ``div#content-main`` + and sidebar content is in ``div#content-related``. This is used on the main + admin page. +colSM + Same as above, with the sidebar on the left. The source order of the columns + doesn't matter. + +For instance, you could stick this in a template to make a two-column page with +the sidebar on the right: + +.. code-block:: html+django + + {% block coltype %}colMS{% endblock %} + +Text Styles +=========== + +Font Sizes +---------- + +Most HTML elements (headers, lists, etc.) have base font sizes in the stylesheet +based on context. There are three classes are available for forcing text to a +certain size in any context. + +small + 11px +tiny + 10px +mini + 9px (use sparingly) + +Font Styles and Alignment +------------------------- + +There are also a few styles for styling text. + +.quiet + Sets font color to light gray. Good for side notes in instructions. Combine + with ``.small`` or ``.tiny`` for sheer excitement. +.help + This is a custom class for blocks of inline help text explaining the + function of form elements. It makes text smaller and gray, and when applied + to ``p`` elements within ``.form-row`` elements (see Form Styles below), + it will offset the text to align with the form field. Use this for help + text, instead of ``small quiet``. It works on other elements, but try to + put the class on a ``p`` whenever you can. +.align-left + It aligns the text left. Only works on block elements containing inline + elements. +.align-right + Are you paying attention? +.nowrap + Keeps text and inline objects from wrapping. Comes in handy for table + headers you want to stay on one line. + +Floats and Clears +----------------- + +float-left + floats left +float-right + floats right +clear + clears all + +Object Tools +============ + +Certain actions which apply directly to an object are used in form and +changelist pages. These appear in a "toolbar" row above the form or changelist, +to the right of the page. The tools are wrapped in a ``ul`` with the class +``object-tools``. There are two custom tool types which can be defined with an +additional class on the ``a`` for that tool. These are ``.addlink`` and +``.viewsitelink``. + +Example from a changelist page: + +.. code-block:: html+django + + <ul class="object-tools"> + <li><a href="/stories/add/" class="addlink">Add redirect</a></li> + </ul> + +.. image:: _images/objecttools_01.png + :alt: Object tools on a changelist page + +and from a form page: + +.. code-block:: html+django + + <ul class="object-tools"> + <li><a href="/history/303/152383/">History</a></li> + <li><a href="/r/303/152383/" class="viewsitelink">View on site</a></li> + </ul> + +.. image:: _images/objecttools_02.png + :alt: Object tools on a form page + +Form Styles +=========== + +Fieldsets +--------- + +Admin forms are broken up into groups by ``fieldset`` elements. Each form fieldset +should have a class ``.module``. Each fieldset should have a header ``h2`` within the +fieldset at the top (except the first group in the form, and in some cases where the +group of fields doesn't have a logical label). + +Each fieldset can also take extra classes in addition to ``.module`` to apply +appropriate formatting to the group of fields. + +.aligned + This will align the labels and inputs side by side on the same line. +.wide + Used in combination with ``.aligned`` to widen the space available for the + labels. + +Form Rows +--------- + +Each row of the form (within the ``fieldset``) should be enclosed in a ``div`` +with class ``form-row``. If the field in the row is required, a class of +``required`` should also be added to the ``div.form-row``. + +.. image:: _images/formrow.png + :alt: Example use of form-row class + +Labels +------ + +Form labels should always precede the field, except in the case +of checkboxes and radio buttons, where the ``input`` should come first. Any +explanation or help text should follow the ``label`` in a ``p`` with class +``.help``. diff --git a/parts/django/docs/obsolete/index.txt b/parts/django/docs/obsolete/index.txt new file mode 100644 index 0000000..ddc8623 --- /dev/null +++ b/parts/django/docs/obsolete/index.txt @@ -0,0 +1,12 @@ +Deprecated/obsolete documentation +================================= + +These documents cover features that have been deprecated or that have been +replaced in newer versions of Django. They're preserved here for folks using old +versions of Django or those still using deprecated APIs. No new code based on +these APIs should be written. + +.. toctree:: + :maxdepth: 1 + + admin-css
\ No newline at end of file |