Re: Safe settings context processor

2006-08-20 Thread Bryan Chow
I'm one of those people who uses a custom template context processor to access settings in virtually all of my templates. Specifically, I use this code [1] to access SITE_URL and MEDIA_URL so that my templates can build absolute links within my sites. However, I don't believe that this functional

Proposed solution to deleting contents of FileField

2006-08-09 Thread Bryan Chow
Hi All, Ian Clelland and I have been working on a way to address the problem that Django FileFields and ImageFields can't be cleared once they've been set. We've posted a proposed solution here [1]. Our solution differs from the one proposed in Ticket #22 [2] in that it's somewhat simpler, isn't

Re: Any way to halt big file uploads?

2006-08-05 Thread Bryan Chow
Agreed, it is a blunt solution. However, you could use it to address the requirement of allowing different groups of users different upload limits by using a separate virtual server for each group of user, e.g. https://admin.yoursite.com for content providers and http://www.yoursite.com for public

Re: Any way to halt big file uploads?

2006-08-05 Thread Bryan Chow
You can use Apache's LimitRequestBody directive to restrict the size of accepted uploads. http://groups.google.com/group/django-users/browse_thread/thread/ca95963aaa33ce1e On 8/5/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > The way Django ships, isn't it possible for a user to hijack the > se

Re: Extending templates programmatically (redux)

2006-07-28 Thread Bryan Chow
I noticed that this ticket has just been closed. Just wanted to say Thanks to the Django dev team for finally accepting our patch! http://code.djangoproject.com/ticket/1650 Cheers, Bryan :) Bryan Chow wrote: > Just wanted to bring attention back to this issue. A few months ago, > Ian Cl

Extending templates programmatically (redux)

2006-06-28 Thread Bryan Chow
Just wanted to bring attention back to this issue. A few months ago, Ian Clelland and I submitted a ticket to allow templates to be extended programatically, i.e. not necessarily on the filesystem. I love the Django templating system but it seems strange that this capability is not already in Djan

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread Bryan Chow
Caches cleared, same problem in Firefox on both Debian Linux and Windows. I just realized that both the calendar and clock widgets were within a fieldset with 'classes': 'collapse' I removed the classes and the problem went away. Note that it works fine in the non-Dojo admin with 'classes': 'co

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread Bryan Chow
Firefox 1.5 Tested on Debian Sarge (Firefox from backports.org) and Windows XP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@goog

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread Bryan Chow
Very cool! I tried installing the Dojo integration package into magic-removal from svn (latest revision = 2607). First impressions are that generally things seem to work without issue, although admittedly I haven't spent much time looking through the code yet. One issue I noticed is that the cal