Profile_bird

Hey there! djangosnippets is using Twitter.

Twitter is a free service that lets you keep in touch with people through the exchange of quick, frequent answers to one simple question: What's happening? Join today to start receiving djangosnippets's tweets.

Already using Twitter
from your phone? Click here.

djangosnippets

  1. Exclusive boolean field: Sometimes you want to be able to make one (and only one) row in your model 'featured' or '... http://bit.ly/8w7RcN
  2. Build tags files for emacs and vim: Save this shell script to the root of your Django project as "tags.sh.. http://bit.ly/78KUm
  3. django paginator: This a basic pagination example. It shows new 5 pnews items. We added a code to our template.. http://bit.ly/25dZ6R
  4. Load initial form fields from GET parameters: It is often convenient to be able to specify form field defaults.. http://bit.ly/riXCe
  5. Increase maximum number of changelist items for "Show all" link to appear: By default, a "Show all" .. http://bit.ly/1JA3TB
  6. Git media cache busting tag: This tag appends the current git revision as a GET parameter to a media files so .. http://bit.ly/3FanCT
  7. Past days template filter: Returns a list of date objects for a given number of past days, including today. Us.. http://bit.ly/4eR0I7
  8. Dom ID: Helper for identifing records in views similiar to rails dom_id helper. http://bit.ly/2obg8X
  9. ImageField for Google App Engine: This is a replacement for Django's built-in ImageField. It uses the Google A.. http://bit.ly/4tkbET
  10. ExtendibleAdmin class: A generic base class for extending ModelAdmin views. This can be used likewise: def my.. http://bit.ly/MTvE6
  11. Remove named field from fieldsets : This snipped removes a specific field from the fieldsets. This is very use.. http://bit.ly/4AhYJY
  12. HTML 5 Firefox 2 Hack: This is a hack to get HTML 5 to work for Firefox 2. It Sends the xhtml content-type to .. http://bit.ly/4A10gJ
  13. Template tag to clear cached template fragment: This is a custom template tag that clears the cache that was c.. http://bit.ly/3XvV8q
  14. Map GPX files to 3D GeoDjango Models: GPXMapping is a subclass of LayerMapping that imports GPX files into 3D .. http://bit.ly/sZQdW
  15. Simple views dispatcher by http methods: Calls a view by request.method value. To use this dispatcher write y.. http://bit.ly/1PSVBO
  16. CCC (closure compiler command): Management command used to compile javascript code using google closure compil.. http://bit.ly/1Brlnq
  17. Variable._resolve_lookup monkeypatch: There are times when you want to hook into the Variable class of django... http://bit.ly/3tbANc
  18. PostgreSQL ON DELETE CASCADE: Have you always been annoyed by how you set up this elaborate big database schem.. http://bit.ly/4tvn37
  19. UserProfileForm: We often need to use a Profile form and we want to be able to modify the first_name, last_nam.. http://bit.ly/4xs77R
  20. counter templatetag: code {% load counter_tag %} {% for pet in pets %} {% if pet.is_cat %} {% counter cats.. http://bit.ly/2ItYs8