Re: math tag

2011-05-05 Thread Chuck Harmston
How does the divisibleby filter not serve your needs here? {% for object in list %} {% if forloop.counter|divisibleby:"3" and not forloop.last %} {% endif %} {{ object }} {% endfor %} http://docs.djangoproject.com/en/dev/ref/templates/builtins#divisibleby Chuck On Thursday, May 5, 2011

Re: database issue when using test_server MySQL Windows

2011-02-23 Thread Chuck Harmston
Hey Tim Thanks for the report! I don't think this is a bug; you might want to read the documentation a little more closely. http://docs.djangoproject.com/en/dev/ref/django-admin/#testserver-fixture-fixture testserver runs the Django development server using data from the passed fixtures. This

Re: ANN: Server upgrade on djangoproject.com

2011-01-31 Thread Chuck Harmston
Since you're installing directly from SVN, you'll need to preface the URL with "svn+". Just 20 minutes ago I successfully did a pip install using the following command: pip install svn+http://code.djangoproject.com/svn/django/trunk/#egg=django Chuck On Monday, January 31, 2011 at 12:57 PM,

Re: Giving Users Permissions on a Subset of Models

2010-12-18 Thread Chuck Harmston
e you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-develop...@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com<django-developers

Re: Using jQuery.noConflict() instead of jQuery.noConflict(true) in contrib.admin

2010-10-22 Thread Chuck Harmston
A good Moreover I wont' be able to use any jQuery plugin (that directly > references `jQuery`) in the admin (without hacking with > ModelAdmin._media), because the `jQuery` object does not exist. I am > forced to include jquery twice ... Per the jQuery docs

Re: rethinking raw_id_fields

2010-10-04 Thread Chuck Harmston
gt; left out but did you really say 'no searching'? > > -Steve > > On Oct 3, 10:09 pm, Chuck Harmston <ch...@chuckharmston.com> wrote: > > it's based on the assumption that the user knows the value of the unicode > > representation of the object. It does not allow for discover

Re: ANN: Improving our decision-making and committer process

2010-09-29 Thread Chuck Harmston
ticket #25 during the DjangoCon sprints to prevent other developers at the sprints from attempting to develop against the ticket. Then again, my world also has purple skies and orange grass, so take it with a grain...errr, a bushel of salt. ;) -- * Chuck Harmston * ch...@chuckharmsto

Re: #12991 Adding support for unittest2: request for review

2010-09-26 Thread Chuck Harmston
u received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-develop...@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.co

Re: Something.is_live instead of implementation specific is_live settings

2010-09-24 Thread Chuck Harmston
My technique, which allows you to: - Segregate settings per environment - Keep environmental settings under version control - Have multiple environments on a single host (using an environment variable set by the WSGI script) - Keep passwords and other sensitive information out of

Re: Something.is_live instead of implementation specific is_live settings

2010-09-24 Thread Chuck Harmston
s group, send email to > django-develop...@googlegroups.com. > > > >>> > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com<django-developers%2bunsubscr...@googlegroups.com> > . > > > >>> > For more opti

Re: Inclusion of easy-thumbnails into Django Contrib

2010-09-16 Thread Chuck Harmston
googlegroups.com> >> > >> > > . >> > > > >> For more options, visit this group athttp:// >> > > groups.google.com/group/django-developers?hl=en. >> > >> > > -- >> > > You received this message because you are subscribed

Re: How to post data to the admin form by urllib2 ?

2010-07-27 Thread Chuck Harmston
Please do not cross-post to django-developers and django-users. http://groups.google.com/group/django-users/browse_thread/thread/6fb15b60f1e551c0# This group is for discussion about development *of* Django itself, not development *using* Django. On Tue, Jul 27, 2010 at 9:05 PM, jerry

Re: django template revision (for 1.4?)

2010-05-27 Thread Chuck Harmston
The inability to assign variables is an intentional design decision; one of Django's core tenets is that business logic and presentational logic should be separated. The template language was crafted to provide non-programmers (front-end developers and designers) the ability to work directly on

Re: DjangoCon.eu sprint proposal: New field type "CompositeField"

2010-05-26 Thread Chuck Harmston
For those not familiar with the previous discussion on the subject: http://groups.google.com/group/django-developers/browse_thread/thread/e7de5d07d614761a/e3147d2f93bcc804 http://groups.google.com/group/django-developers/browse_thread/thread/32f861c8bd5366a5/22732dc88e644f77 On Wed, May 26,

Re: Adding optional SITE_DOMAIN and SITE_NAME variables in settings.py

2010-03-13 Thread Chuck Harmston
This particular use case (having predefined sets of information loaded into the database on either syncdb or other command) is what Django's fixture loading/creation system is for. http://docs.djangoproject.com/en/dev/ref/django-admin/#what-s-a-fixture

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Chuck Harmston
1) In implementation, how is a YAML configuration file any different than the Java/XML example that you offered? Syntactical differences between XML and YAML aside, both systems define settings in markup languages (which by definition have minimal capability for logic) that are eventually parsed

Re: truncate filter

2010-03-06 Thread Chuck Harmston
Hi Wilm, This is an issue which has been discussed several times before. A quick search yields: http://groups.google.com/group/django-developers/browse_thread/thread/924112bf84709225/56e623e758b08465 http://code.djangoproject.com/ticket/3963 http://code.djangoproject.com/ticket/5025 If you have

Re: Moving all validation into the model layer.

2010-02-21 Thread Chuck Harmston
Unless I misunderstand what you're looking for, the link Brett provided explains that this is a feature that is coming to Django. Some useful links: The original ticket: http://code.djangoproject.com/ticket/6845 The patch: http://code.djangoproject.com/changeset/12098 The branch:

Re: please help me about enum attribute..

2010-01-12 Thread Chuck Harmston
As Gert said, these are questions that should be asked on django-users [1]; this list is for discussion about the development of Django, not development with Django. That said, there are detailed instructions in the docs [2] for using multiple databases. This support was rolled out recently

Re: Possible contrib.humanize addition

2010-01-06 Thread Chuck Harmston
More of an academic question, as it likely isn't a feasible solution for Django, but might a soundex solve this problem? Best I can tell, rules for articles, without exception, are based on the pronunciation of the following word.. Of course, phonology can be regional, subjective, and

New django.shortcuts methods: get_object/list_or_404

2009-06-24 Thread Chuck Harmston
comments/feedback/improvements are, of course, welcome. Thanks! Chuck Harmston http://chuckharmton.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email