Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Jordon Wii
+1 for Kate. I've used it for everything I've done in the last 3 years (plenty), and it's got good highlighting for Django templates. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups

Re: Urlencode vs. iriencode

2010-09-04 Thread Jordon Wii
thout double-quoting occurring. > 16     """ > 17     return force_unicode(urllib.quote(smart_str(url), safe='/')) > > So iriencode only encodes the IRI portion (hence the longer list of > safe characters), while URL will encode the entire U

Re: Urlencode vs. iriencode

2010-09-04 Thread Jordon Wii
Anyone? I haven't found anything that describes the difference (except that one is for URI's and the other for URLs). On Sep 4, 8:52 am, Jordon Wii wrote: > What's the difference between the template filters urlencode and > iriencode?  When should I use one over t

Urlencode vs. iriencode

2010-09-04 Thread Jordon Wii
What's the difference between the template filters urlencode and iriencode? When should I use one over the other (or use both)? -- 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.

Querying a many-to-many field based on entries' number in the relationship

2010-09-01 Thread Jordon Wii
Hi, I have a model named 'Period' and a model named 'Schedule'. They have a many-to-many relationship. I need to get all Period's whose position in the relationship is a certain number (All second periods in each schedule, for example). I could use raw SQL to query the m2m database, but is this

Return something specific on 404's on a particular path

2009-09-11 Thread Jordon Wii
Hi,I want set up something where users upload an article, and an associated image. If they do not provide an image, then, when someone reads the article, I'd like return a specific image. I've looked at custom storage backends, but those are too complex. How can return a specific image when ther