{ "info": { "author": "Romain Gehrig", "author_email": "romain.gehrig@epfl.ch", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-epfl\r\n***********\r\n\r\nThis page will talk about the EPFL templates for django. These templates have \r\nbeen developed in order to reflect the \"web2010\" `Link graphical chart of EPFL `_.\r\n\r\nTo use these templates, add ``django_epfl`` to your ``INSTALLED_APPS``. Then you\r\ncan inherit the base template by adding ``{% extends 'django_epfl/base.html' %}``\r\nin a template.\r\n\r\nList of available blocks\r\n========================\r\n\r\nAll the following blocks are in the EPFL template. Each block is displayed in \r\nits context and has its role description next to it.\r\n\r\n * \r\n \r\n * \r\n \r\n * **additional_meta** : Place here all the additional meta in the \r\n HTML form\r\n * **additional_links** : Same for the links to additional resources\r\n * **additional_css** : Here for the CSS (don't place CSS under\r\n additional_links to improve clarity and template inheritance)\r\n * **additional_js** : All JS that need to be loaded in the head\r\n section\r\n * **page_title** : If using the ``title`` var is not the best\r\n option, you can use this block to set the page title\r\n \r\n * \r\n * \r\n \r\n * **header** : Here is the header include. By default, the header is\r\n in English. (file: ``django_epfl/template_inc/header.en.html``) To\r\n see the other options, take a look the `package doc`.\r\n\r\n *
\r\n \r\n * **breadcrumbs** : It is where you will put the \"EPFL > Project >\r\n Section\" navigation style.\r\n * **languages** : Links in the top right corner that permit the\r\n user to switch between languages. \r\n *

\r\n \r\n * **title** : Area for the title of the project and (in general)\r\n its acronym.\r\n \r\n *

\r\n * **main-navigation** : Area that contains droplists and all the \r\n navigation for the project.\r\n * **tools** : Space for the tools like RSS feed button, share \r\n button and so on.\r\n *
\r\n \r\n * **content** : Contains the main content for the page.\r\n \r\n *
\r\n *
\r\n \r\n * **right_column** : Contains the secondary content in the right\r\n column. If empty, the template will automatically switch to\r\n 1-column mode and the \"right-col\" div will not be displayed.\r\n \r\n *
\r\n * **footer** : Area for general contents like contact link, \r\n copyright, ...\r\n \r\n *
\r\n \r\n * **additional_js_ajax** : Place JS that don't need to be loaded \r\n first.\r\n \r\n * \r\n \r\n * \r\n\r\nList of available variables\r\n===========================\r\n\r\nFor the moment, only the ``title`` var (representing the page title) is \r\navailable. Care to not be confused with the ``title`` block which is the big \r\nblack title on the page.\r\n\r\n.. note:: \r\n If title var is set, ``page_title`` block won't be displayed.\r\n\r\nUse the EPFL error pages\r\n========================\r\n\r\nIn order to handle EPFL 404 error page, you have to modify your file \r\n``views.py`` and put in it this::\r\n\r\n from django.shortcuts import render_to_response\r\n\r\n def error404(request):\r\n return render_to_response('django_epfl/errors/404.fr.html')\r\n \r\nThen, in your ``urls.py``::\r\n\r\n from django.conf.urls.defaults import handler404\r\n \r\n handler404 = 'django_site.views.error404'\r\n \r\nTo handle the 500 error, it is the same logic. Since errors like\r\n503 are not natively supported, you will have to create and raise it in your \r\ncode. Some explanations on how to do this \r\n`here `_.\r\n\r\nhttps://docs.djangoproject.com/en/1.3/ref/request-response/#ref-httpresponse-subclasses\r\ncan help you too if you need to return some HttpResponse with a defined status\r\ncode.\r\n\r\n.. note::\r\n The 404 and 500 error pages won't be displayed if ``DEBUG`` is set to \r\n ``True``.\r\n \r\n.. _change_language:\r\n\r\nChange header language / search option\r\n======================================\r\n\r\nYou can change the header with the **header** block.\r\n\r\nThere are four different headers available in the ``templates/template_inc`` dir:\r\n * header.fr.html \r\n * header.en.html\r\n * header-no-local-search.fr.html\r\n * header-no-local-search.en.html\r\n\r\nObviously, in the header name, *fr* means French and *en* English. The \r\n*no-local-search* version of the header does not include the search option \"On\r\nthis site\".", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://kis-doc.epfl.ch/django", "keywords": "epfl,templates,django_epfl,tequila,django-tequila,django-pagination,django", "license": "GNU LGPLv3", "maintainer": "", "maintainer_email": "", "name": "django_epfl", "package_url": "https://pypi.org/project/django_epfl/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_epfl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://kis-doc.epfl.ch/django" }, "release_url": "https://pypi.org/project/django_epfl/1.5.6/", "requires_dist": null, "requires_python": null, "summary": "Django utils for EPFL sites", "version": "1.5.6" }, "last_serial": 791092, "releases": { "1.5.0": [ { "comment_text": "", "digests": { "md5": "cc45a50d26b67a69d838fa2fe533eb60", "sha256": "a10648c1f524cf15b114f7af0a78e48653a3d9dc7d18b10e1d54ff4101a7c8f2" }, "downloads": -1, "filename": "django_epfl-1.5.0.tar.gz", "has_sig": false, "md5_digest": "cc45a50d26b67a69d838fa2fe533eb60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 108752, "upload_time": "2012-10-03T14:19:19", "url": "https://files.pythonhosted.org/packages/83/fe/9a713a9fea280a23b4258336228e687cdc2c6919eefe8219483fdbdc5f8e/django_epfl-1.5.0.tar.gz" } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "27ee43a8fa4fd04d964fa11c1ceead75", "sha256": "eb38d361e02f60507fd540c739e6533ed7ec965a356da12814e0e05724ca6761" }, "downloads": -1, "filename": "django_epfl-1.5.1.tar.gz", "has_sig": false, "md5_digest": "27ee43a8fa4fd04d964fa11c1ceead75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 216885, "upload_time": "2012-10-04T12:05:06", "url": "https://files.pythonhosted.org/packages/c5/6f/43a062862cfdd7b22f1b91c7751054a924d985b4c0913e393489f2b8ef73/django_epfl-1.5.1.tar.gz" } ], "1.5.2": [ { "comment_text": "", "digests": { "md5": "a35df436a83eb9ddecadb2f5ebacc0cf", "sha256": "425f490a5acdf8958a55ccac927d517681c5eb01cfcf6aa81246f1b9113271fd" }, "downloads": -1, "filename": "django_epfl-1.5.2.tar.gz", "has_sig": false, "md5_digest": "a35df436a83eb9ddecadb2f5ebacc0cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 216944, "upload_time": "2012-10-04T12:18:34", "url": "https://files.pythonhosted.org/packages/8e/25/960e6d1f49d8b944ca10d0caea0ba1aaa2d6b4cfe150007ef9ae8fdd80c7/django_epfl-1.5.2.tar.gz" } ], "1.5.3": [ { "comment_text": "", "digests": { "md5": "bd3b4ef3153673fa53814a93a88f46c8", "sha256": "59cbda432f71ab1038f57ef8e64a5051d06fc05433baaac4496e707f9ea5f240" }, "downloads": -1, "filename": "django_epfl-1.5.3.tar.gz", "has_sig": false, "md5_digest": "bd3b4ef3153673fa53814a93a88f46c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 217119, "upload_time": "2012-10-04T12:34:19", "url": "https://files.pythonhosted.org/packages/5e/b8/93dc41c06561b89116a5580dd00caddc4e3e3278ef5c171816e8f7cb8e09/django_epfl-1.5.3.tar.gz" } ], "1.5.4": [ { "comment_text": "", "digests": { "md5": "ca9e172866ed0bffd4bf357dc54f98ae", "sha256": "20bc67676358006211e857881c27496f7f5b531562d69614c07605103dee2afb" }, "downloads": -1, "filename": "django_epfl-1.5.4.tar.gz", "has_sig": false, "md5_digest": "ca9e172866ed0bffd4bf357dc54f98ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 217124, "upload_time": "2012-10-04T12:38:14", "url": "https://files.pythonhosted.org/packages/6c/53/f4e5c240c845855cd33046da74d8006af641908f5a07114158486c1a5bf0/django_epfl-1.5.4.tar.gz" } ], "1.5.5": [ { "comment_text": "", "digests": { "md5": "88e70702723c638cf38ee0e6f590c653", "sha256": "40ae9c38dbad0d52e5e57acd3fd615b6cfe398852f5d568ac7e7f0e7aa01a4f3" }, "downloads": -1, "filename": "django_epfl-1.5.5.tar.gz", "has_sig": false, "md5_digest": "88e70702723c638cf38ee0e6f590c653", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 217119, "upload_time": "2012-10-04T12:41:45", "url": "https://files.pythonhosted.org/packages/78/f1/48f016220cece667ef4cdd2095a0bb9a9ce8517d23d94574d6eed0f156a4/django_epfl-1.5.5.tar.gz" } ], "1.5.6": [ { "comment_text": "", "digests": { "md5": "db3690692748952ea6cdd77e6818af59", "sha256": "e6574b2683695ffe8a1ff3759821919a931a9c0006d695d7f8ed253bf99ece70" }, "downloads": -1, "filename": "django_epfl-1.5.6.tar.gz", "has_sig": false, "md5_digest": "db3690692748952ea6cdd77e6818af59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51984, "upload_time": "2012-10-15T14:06:17", "url": "https://files.pythonhosted.org/packages/c3/03/9ff212d241d054e3dd4d3ca4eff524956286d17f901c35881beabafce389/django_epfl-1.5.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db3690692748952ea6cdd77e6818af59", "sha256": "e6574b2683695ffe8a1ff3759821919a931a9c0006d695d7f8ed253bf99ece70" }, "downloads": -1, "filename": "django_epfl-1.5.6.tar.gz", "has_sig": false, "md5_digest": "db3690692748952ea6cdd77e6818af59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51984, "upload_time": "2012-10-15T14:06:17", "url": "https://files.pythonhosted.org/packages/c3/03/9ff212d241d054e3dd4d3ca4eff524956286d17f901c35881beabafce389/django_epfl-1.5.6.tar.gz" } ] }