Re: URL Patterns for URL Encoding Symbols

2009-06-11 Thread Andy Dietler
Awesome thanks. I love the Django community. On Jun 11, 7:03 pm, Thomas Sutton <thsut...@gmail.com> wrote: > Hi Andy, > > 2009/6/12 Andy  Dietler <andydiet...@gmail.com>: > > > > > > > > > Right now I've got a URL pattern that works for letters and

URL Patterns for URL Encoding Symbols

2009-06-11 Thread Andy Dietler
Right now I've got a URL pattern that works for letters and numbers, but when a character like %20 gets thrown in it fails. The pattern is this: (r'^(?P\w+)/$', 'detail'), Which works when I have: domain.com/Friends/ domain.com/24/ but not for domain.com/The%20Office/ How do I get it to

Re: Getting radio boxes with ModelForm

2009-06-08 Thread Andy Dietler
),label="") On Jun 8, 1:18 pm, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Jun 8, 8:23 pm, Andy  Dietler <andydiet...@gmail.com> wrote: > > > > > > > I'm trying to make one of the fields in my model display radio buttons > > with the opt

Getting radio boxes with ModelForm

2009-06-08 Thread Andy Dietler
I'm trying to make one of the fields in my model display radio buttons with the options 1-5. I can't find a way to do this with a model form and I can't get anything I find in documentation to work properly. What I have below results in me getting the following error: TypeError: __init__() got

Re: Noobie question about getting form data to save to the database

2009-06-05 Thread Andy Dietler
request.method == 'POST': >         form = AddShow(request.POST) >         if form.is_valid(): >             form.save() >             return HttpResponseRedirect('/shows/#success') >     return HttpResponseRedirect('/shows/#error') > > On Jun 4, 7:39 pm, Andy  Dietler <andydiet...@gmai

Noobie question about getting form data to save to the database

2009-06-04 Thread Andy Dietler
I'm pretty new to Django and Python and I've had some success from reading some books and guides playing around so far but I'm having trouble figuring out how to get data I submit from a form to save into the database. I've simplified down my code to just the basics and I can get the form to

Ignoring the word "The"

2009-06-03 Thread Andy Dietler
Is there an easy way to ignore the word "The" when returning a list using "__startswith=" in Django/Python? I've looked around but it's hard to make any ground when searching for the word The. --~--~-~--~~~---~--~~ You received this message because you are