Re: Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Laereom
t; > > question_manager.generate_question_form(1,question) > > >         question_answer_form = _QuestionAnswerForm() > > > > I'm a bit ambiguous on the details of how class factories / etc work, > > > so I may be doing that bit wrong. > > > >

Re: Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Laereom
= > > question_manager.generate_question_form(1,question) > >         question_answer_form = _QuestionAnswerForm() > > > I'm a bit ambiguous on the details of how class factories / etc work, > > so I may be doing that bit wrong. > > > Either way, when I t

Re: Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Daniel Roseman
_question_form(1,question) >         question_answer_form = _QuestionAnswerForm() > > I'm a bit ambiguous on the details of how class factories / etc work, > so I may be doing that bit wrong. > > Either way, when I try to render this as either just a string or a > form, I get

Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Laereom
n the details of how class factories / etc work, so I may be doing that bit wrong. Either way, when I try to render this as either just a string or a form, I get the following error: Caught an exception while rendering: string index out of range Peeking at the local variables, question_answer_form a

Getting string index out of range error on using DateField

2008-01-22 Thread shabda
I have field in a form like, foo = forms.DateField(required = False, input_formats = '%m/%d/%Y') Now when I try to enter a date like 10/25/2006 I am getting an error string index out of range . Full stack trace, Traceback: File "C:\Python24\lib\site-packages\django\core\handl

Re: string index out of range

2007-05-13 Thread Mark Phillips
if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]): 42 new_url[1] = new_url[1] + '/' 43 if settings.DEBUG and request.method == 'POST': global settings = , settings.AP

Re: string index out of range

2007-05-12 Thread Malcolm Tredinnick
On Sat, 2007-05-12 at 13:29 -0700, Mark Phillips wrote: > Thank you, Don. I understand what Malcolm wrote. I didn't include the > trace back and that was indeed a mistake. > > After walking through the set up and making some adjustments > to .htaccess, I stopped getting a trace back in the br

Re: string index out of range

2007-05-12 Thread Mark Phillips
Thank you, Don. I understand what Malcolm wrote. I didn't include the trace back and that was indeed a mistake. After walking through the set up and making some adjustments to .htaccess, I stopped getting a trace back in the browser. Thus, I didn't have much to share with Malcolm. This mor

Re: string index out of range

2007-05-12 Thread Don Arbow
You stated you got a python traceback and yet you only show us the error message. What Malcolm was trying to say was that it would be helpful to print out that traceback, rather than your Apache configuration, at least to start with. When debugging a problem it's always best to start with t

Re: string index out of range

2007-05-12 Thread Mark Phillips
On May 11, 2007, at 9:40 PM, Malcolm Tredinnick wrote: > More information is definitely needed here. You've just done the > equivalent of "I've had a car accident." "Where should we send the > auto > service?" "There's a traffic light here." Thanks for the reply, Malcolm. --~--~-~--~

Re: string index out of range

2007-05-11 Thread Malcolm Tredinnick
com" > or similar. For example, "mydjango.mysite.com/admin" returns a 404 > page and "mydjango.mysite.com" returns the default index.html page. > > The good news is I got a python traceback, meaning the fastcgi is > working. The bad news is I got a python

string index out of range

2007-05-11 Thread Mark Phillips
quot; returns a 404 page and "mydjango.mysite.com" returns the default index.html page. The good news is I got a python traceback, meaning the fastcgi is working. The bad news is I got a python traceback. The reported error was "string index out of range". In httpd.conf I a

Re: IndexError at /admin/auth/user/1/- String index out of range & TypeError at /admin/auth/user/1/ - 'int' object is unsubscriptable

2007-05-04 Thread Nicolas Steinmetz
allback_kwargs) > File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ > decorators.py" in _checklogin > 55. return view_func(request, *args, **kwargs) > File "/usr/lib/python2.5/site-packages/django/views/decorators/ > cache.py" in _wrapped_view_func >

IndexError at /admin/auth/user/1/- String index out of range & TypeError at /admin/auth/user/1/ - 'int' object is unsubscriptable

2007-04-24 Thread [EMAIL PROTECTED]
gs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ main.py" in change_stage 329. new_object = manipulator.save(new_data) File "/usr/lib/python2.5/site-packages/django/db/models/ manipulators.py" in save 165. if rel_new_data[related.opts.pk.name][0]: Ind