Re: How to automatically add a url param to url tags (it is used ubiquitously throughout application)?

2011-07-09 Thread VWAllen
django-localeurl uses a similar URL scheme to localized urls (i.e. "/en/some/path" becomes "some/path" with an extra environment variable for localization). You could check the source to see how it's being done there and adapt it: https://bitbucket.org/carljm/django-locale It uses custom middlew

Re: Questions before switching from drupal to django

2011-07-09 Thread VWAllen
> I'm not a programmer by profession, but I use Python a lot. For > example, I use it to interface with the 90+ tables of Drupal directly > to avoid php. Drupal is just horrible with all dependencies and > trying to get the proper data displayed. Php just isn't my thing and > you seem to spe

Re: Encoded uploaded WAVE or AIFF file to MP3 format on server

2010-08-12 Thread VWAllen
This is just a thought, but you could separate the file encoding and storage from your model and hand that off to a Celery task. Off the top of my head: - use a "file path" charfield and a "is ready" boolean field in your model - use a FileField in your form - when the form/upload are validated, s

Re: Seeking Django vs. Joomla comparison

2010-06-16 Thread VWAllen
> A little background. I am a Django developer for almost 4 years. > Recently I submitted a proposal to undertake the web operation of a > community run orgnization. One vendor proposed Joomla and I have > proposed Django. Never mind, he says Joomla is a framework. That is > OK. What primarily dif

Re: Reload WSGI per request?

2010-05-21 Thread VWAllen
Thanks, Matt and Graham, this looks perfect, I'll give it a shot. V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+

Reload WSGI per request?

2010-05-20 Thread VWAllen
I have my project set up to use Apache/mod_wsgi with different configs for dev, staging and production. I'd like to set up my dev server to automatically reload the WSGI app per request (without touching my django.wsgi file each time). I looked at two wsgi middleware projects, memento and amnesia,

Re: MySQLdb setup on snow leopard help

2010-04-13 Thread VWAllen
I had a lot of trouble at first getting things setup on Snow Leopard (mostly 32-bit/64-bit problems). Ultimately, I loaded the full stack through MacPorts (apache, mysql, python, wsgi, django, etc. etc.). Almost all of the problems I ran into with this method were related to making sure that other