new syntax for management commands

2012-08-11 Thread dffdgsdfgsdfhjhtre
https://github.com/zacharyvoase/django-boss http://blog.zacharyvoase.com/2009/12/09/django-boss/ What is the outlook of something like this replacing the current way management commands are handled by django? I'm no the author of django-boss, but I think this syntax is much better and more pytho

Re: Customizable Separator for slugify

2011-01-10 Thread dffdgsdfgsdfhjhtre
99.9% of slugs in the wild use dashes instead of anything else, so an argument to the slugify function would be pointless. At any rate, you can always make a wrapper: def better_slugify(value, seperator='-'): return slugify(value).replace('-', seperator) -- You received this message becaus

Easily adding a class to a widget through a form

2011-01-10 Thread dffdgsdfgsdfhjhtre
Does anybody like the idea of passing in a classname to a form field that will get rendered to the widget without having to manually override the entire widget? class PersonForm(forms.Form): phone_number = forms.CharField(class='person') zipcode = forms.CharField(class='person') class C

Re: documentation re-factor for 1.3?

2010-07-04 Thread dffdgsdfgsdfhjhtre
On Jul 4, 8:40 pm, Luke Plant wrote: > Unlike PHP, we have namespaces, which means that providing a list of > every function/class is a different matter. So? Matplotlib has similar documentation to PHP's reference, and it's fairly well regarded. The one thing that matplotlib doesn't do well is th

Re: documentation re-factor for 1.3?

2010-07-04 Thread dffdgsdfgsdfhjhtre
On Jul 4, 7:38 pm, Flávio Amieiro wrote: > On Sun, Jul 4, 2010 at 8:29 PM, dffdgsdfgsdfhjhtre wrote: > > > I may be in the minority here, but I believe grepping source should > > never, ever, ever be an acceptable substitution for proper > > documentation. > > I agr

Re: documentation re-factor for 1.3?

2010-07-04 Thread dffdgsdfgsdfhjhtre
On Jul 4, 2:22 pm, Flávio Amieiro wrote: > For this kind of problem, i just grep django's code for the string I want. I > know that not everyone likes to do this I may be in the minority here, but I believe grepping source should never, ever, ever be an acceptable substitution for proper documen

documentation re-factor for 1.3?

2010-07-04 Thread dffdgsdfgsdfhjhtre
There are two types of documentation, "reference" documentation (articles explaining all about one specific object such as slugify or the Feed class), and "topical" documentation (articles explaining how to do stuff like write templates). It seems right now, django's documentation is trying to do

Re: Proposal: modular django configuration

2010-06-29 Thread dffdgsdfgsdfhjhtre
I think this is how it should go when settings are loaded: 1. goes through all installed apps, and tried to load settings.py. 2. then it loads the django defaults. This way, if an app settings file tries to override DATABASES or something, it will get reverted to the django defaults 3. then it loa

django snippets site as a wiki

2010-06-17 Thread dffdgsdfgsdfhjhtre
As all of you know, djangosnippets.com is very popular and a pretty integral part of the Django ecosystem. It is a great resource but there are some problems: 1. The site has been online for a few years, and the majority of the snippets were added back in the 1.0 and pre-1.0 era. Many of those sni