Bootstrap your Django admin in 3 minutes - Python / Javascript / Django coding notes by Riccardo Forina. Posted November 16th, 2012 in django, bootstrap, django-admin-bootstrapped Do you want Bootstrap on your Django admin app?
You do not want to mess with the templates? That's why I did it for you! What you'll get a responsive interface (because Bootstrap is)an heavy rewrite of the original django-admin templates, but with compatibility in mind.collapsable elementsgoodies like application name 'translations' without using the {% trans %} tag (to be documented)you can choose between Bootstrap 2 and Bootstrap 3 Requirements Django >= 1.4.x Source code On Github of course: Installation pip install django-admin-bootstrapped (virtualenv highly suggested)add django_admin_bootstrapped into the INSTALLED_APPS list before django.contrib.adminhave fun! Your INSTALLED_APPS should look like this: QuerySet API reference. Methods that return new QuerySets Django provides a range of QuerySet refinement methods that modify either the types of results returned by the QuerySet or the way its SQL query is executed. filter filter(**kwargs) Returns a new QuerySet containing objects that match the given lookup parameters.
The lookup parameters (**kwargs) should be in the format described in Field lookups below. Exclude exclude(**kwargs) Returns a new QuerySet containing objects that do not match the given lookup parameters. The lookup parameters (**kwargs) should be in the format described in Field lookups below. This example excludes all entries whose pub_date is later than 2005-1-3 AND whose headline is “Hello”: Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3), headline='Hello') In SQL terms, that evaluates to: SELECT ... This example excludes all entries whose pub_date is later than 2005-1-3 OR whose headline is “Hello”: Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello') Django cheat sheets for versions 1.3, 1.4, and 1.5. Updated for Django 1.5 for PyCon 2013 where everyone got a nice laminated copy in their swag bags.
Older cheatsheets for Django 1.3 and 1.4 are below. DOWNLOAD Cheat Sheet for Django 1.5 You can also signup for our low traffic newsletter Django tips and tricks. Django 1.4 cheat sheet Here is an updated version Jacob put together for PyCon 2012. Instalar Python-Django-MySQL en Windows 7. Como instalar django en windows 7. Marlon Mantilla Martínez - Instalar Django en windows 7. Taller de introducción al desarrollo web con Django. Django 1.3 and 1.4 cheat sheets.
Curso Django: Instalación y primera aplicación. Requisitos para su instalación Django es un framework hecho en Python, por lo tanto se necesita que hayas previamente instalado Python (2.6 o 2.7) y tengas a la mano tu editor de texto favorito.
Si no sabes que editores de texto usar, o como instalar Python lee la primera parte de la Guia Python, con esto es suficiente para empezar a trabajar. Nota: Django y Python 3.0 Django no funciona con Python 3.0 actualmente, debido a incompatibilidades con el intérprete de Python. Al estar hecho en Python, sería bueno tener en cuenta la sintaxis y fundamentos de este lenguaje, así que si aún no lo sabes y quieres reforzar tus conocimientos, revisa la guía de Python primero antes de continuar con esta, o da un vistazo a este video de mejorando.la Obtener Django Para obtener Django se puede: Descargar la versión estable oficial más reciente, desde el sitio oficial de Django y descomprimir el archivo, debe aparecer una carpeta con el nombre de Django seguido del número de la versión bajada. Zona Horaria.