Tuesday, June 10, 2014

Django Reference

Django Reference:

Urls:
https://docs.djangoproject.com/en/1.6/ref/urls/

Database ORM:
https://docs.djangoproject.com/en/dev/topics/db/queries/#limiting-querysets

In [19]: import logging                                 
In [20]: l = logging.getLogger('django.db.backends')    
In [21]: l.setLevel(logging.DEBUG)                      
In [22]: l.addHandler(logging.StreamHandler())      
In [23]: User.objects.all().order_by('-id')[:10]          
(0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" ORDER BY "auth_user"."id" DESC LIMIT 10; args=()
Out[23]: [<User: hamdi>]
 
Query Sets:
https://docs.djangoproject.com/en/dev/ref/models/querysets/
 
Many To Many:
https://docs.djangoproject.com/en/dev/topics/db/examples/many_to_many/
 
Queries:
https://docs.djangoproject.com/en/dev/topics/db/queries/ 
 
Fields:
https://docs.djangoproject.com/en/dev/ref/models/fields/ 
 
Query Managers:
Meta Class:
Models With Meta:
Meta Classes In More Depth:
Templates:
https://docs.djangoproject.com/en/1.6/topics/templates/
Built In Template Tags:
https://docs.djangoproject.com/en/dev/ref/templates/builtins/ 

Python Lists:
http://effbot.org/zone/python-list.htm

Settings:
https://docs.djangoproject.com/en/1.5/ref/settings/

Forms:
https://docs.djangoproject.com/en/dev/topics/forms/
Widgets Forms:
https://docs.djangoproject.com/en/dev/ref/forms/widgets/

Class Views Mixins Django 1.6:
http://djbook.ru/rel1.6/topics/class-based-views/mixins.html

Http Response Redirect Reverse:
http://stackoverflow.com/questions/11183704/how-to-correctly-do-httpresponseredirect-with-reverse

Url Resolver Utility Functions:
https://docs.djangoproject.com/en/dev/ref/urlresolvers/

Statics:
https://docs.djangoproject.com/en/dev/howto/static-files/

Resources:
https://code.djangoproject.com/wiki/DjangoResources

Reusable App Development:
https://docs.djangoproject.com/en/1.6/intro/reusable-apps/

Django App Part 1:
https://docs.djangoproject.com/en/dev/intro/tutorial01/

Django App Part 2: Administration Page:
https://docs.djangoproject.com/en/1.6/intro/tutorial02/

Django App Part 03 : Urls And Views:
https://docs.djangoproject.com/en/1.6/intro/tutorial03/

Django App Part 04: Forms And Views:
https://docs.djangoproject.com/en/1.6/intro/tutorial04/

Django App Part 05: Testing:
https://docs.djangoproject.com/en/1.6/intro/tutorial05/

Django App Part 06: Look And Fell Custimization:
https://docs.djangoproject.com/en/1.6/intro/tutorial06/

Django Admin Commands:
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/

Django User Auth:
https://docs.djangoproject.com/en/1.6/topics/auth/#module-django.contrib.auth

Django User Auth Apache:
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/apache-auth/

Django Internationalization:
https://docs.djangoproject.com/en/dev/topics/i18n/translation/ 

Django Main Page:
https://www.djangoproject.com/

No comments:

Post a Comment