Skip to main content

Home/ Django/ Group items tagged code

Rss Feed Group items tagged

pagetribe .

Big list of Django tips (and some python tips too) | Surfing in Kansas - 0 views

  • Big list of Django tips
  • Writing managers is really simple, and they provide a better user interface to your code. This code snippet simply adds a latest() method to the default objects manager class ForecastDayManager(Manager): def __init__(self, *args, **kwargs): super(ForecastDayManager, self).__init__(*args, **kwargs) def latest(self): return self.get_query_set().order_by('forecast_date')[0] It can be called ForecastDay.objects.latest(). This is a trivial example, but there is a lot of power that lies in this functionality.
anonymous

Django - Adding Authentication achinghead.com - 0 views

  • As a shortcut, you can use the convenient login_required decorator.
    • anonymous
       
      Interesting...
  •  
    How to add user authentication to Django.
Chris Johnson

Running App Engine Applications on Django - Google App Engine - Google Code - 0 views

  •  
    Helper application and documentation on easily porting GAE app to any django environment. gae2django implements GAE api as django app.
tosh .

django-spambayes - Google Code - 0 views

  •  
    Django-SpamBayes includes a few utility apps for Django that offer an easy to use interface to the SpamBayes statistical anti-spam filter allowing filtering and moderation (with training) of comments, contact forms and other publicly submitted data.
pagetribe .

Working with models, part 2 - 0 views

  • Every Django model class and every instance of every Django model class has an attribute on it named _meta
  •  
    Nice info on the usage of _meta on django models.
pagetribe .

Standalone Django scripts - 0 views

  • Set DJANGO_SETTINGS_MODULE before you run
  • export DJANGO_SETTINGS_MODULE=yoursite.settings
  • # Cron jobs for foo.com run at 3AM DJANGO_SETTINGS_MODULE=foo.settings 0 3 * * * python /path/to/maintenance/script.py 30 3 * * * python /path/to/other/script.py # Cron jobs for bar.com run at 4AM DJANGO_SETTINGS_MODULE=bar.settings 0 4 * * * python /path/to/maintenance/script.py 30 4 * * * python /path/to/other/script.py
Antti Kaihola

django-authopenid - Google Code - 0 views

  •  
    Django authentification application with openid using django auth contrib
Leandro Ardissone

django-notify - Google Code - 0 views

  •  
    Django session/cookie based user notifications
Leandro Ardissone

django-remotelog - Google Code - 0 views

  •  
    Pluggable Django app for logging messages from the Python logging module's HTTPHandler
Leandro Ardissone

Real World Django - 1 views

  •  
    There's plenty of material (documentation, blogs, books) out there that'll help you write a site using Django… but then what? You've still got to test, deploy, monitor, and tune the site; failure at deployment time means all your beautiful code is for naught. This tutorial examines how best to cope when the Real World intrudes on your carefully designed website.
1 - 20 of 39 Next ›
Showing 20 items per page