Re: newbie help

2008-07-14 Thread Matt McClanahan
On Jul 14, 3:46 pm, Mario Zorz <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm following the Django tutorial [1] I'm using windows xp, python 2.5 and > SQLite. For some reason I found these 2 things not being appropiate as > followed in the tutorial: > > 1) When tried "python manage.py sql polls

Re: Saving POSTed Data

2007-06-06 Thread Matt McClanahan
On Jun 6, 10:00 am, robo <[EMAIL PROTECTED]> wrote: > I'm wondering if someone can help me out with a similar problem. I'm > trying to save to 2 different models (Order and Order_Detail, where in > Order_Detail there is a foreign key to Order) from one click of the > Submit button. How would I di

Re: Saving POSTed Data

2007-06-06 Thread Matt McClanahan
On Jun 6, 8:06 pm, robo <[EMAIL PROTECTED]> wrote: > So when data containing fields from both models get POSTed. I would > write (pseudo) code like so ?: > > if request.method == 'POST': > ... > Orders = form_for_model(Order) > f = Orders(prefix='orders') > Order_Details = form_for_model(Order_De

Re: Newforms, MultiSelect, "Hold Down Control" message.

2007-06-25 Thread Matt McClanahan
On Jun 25, 1:03 pm, larry <[EMAIL PROTECTED]> wrote: > I've derived a new version of the CheckboxSelectMultiple widget. > Unfortunately, just like its parent, it prints a message "Hold down > "Control", or "Command" on a Mac, to select more than one." on each > field. This instruction, which I

Re: Debugging production site.

2007-08-13 Thread Matt McClanahan
On Aug 13, 2:11 pm, Merric Mercer <[EMAIL PROTECTED]> wrote: > Is there anyway to trap the debug information - so it is logged - but > not visible to users? A good starting point is to use the ADMINS setting, which will give you a way to receive error reports via e-mail when debugging is off: h

Re: How to start shell without ipython

2007-09-08 Thread Matt McClanahan
On Sep 8, 10:13 am, shabda <[EMAIL PROTECTED]> wrote: > I need to write some doctests for my app. > So I am running the interactive shell by > manage.py shell > But since ipython is already installed on my system, the i python > prompt starts and I can't just copy paste the shell output for > c

Re: Rendering splitdatetime widget with upgrade

2008-02-03 Thread Matt McClanahan
On Feb 3, 6:30 am, jeffhg58 <[EMAIL PROTECTED]> wrote: > I just recently upgrading my trunk to revision 7054 and I noticed that > the form I have that uses the splitdatetime > widget no longer renders correctly. This issue has been reported in ticket #6113. The ticket has a patch which you can

Re: how to set initial value for select multiple

2008-02-14 Thread Matt McClanahan
On Feb 13, 9:34 pm, cschand <[EMAIL PROTECTED]> wrote: > My problem is i want to set initial value for the given network > CheckboxSelectMultiple field.. Since it's a multiple value field, it expects a list of initial values. NetworkForm(initial={'network': [1,2,3]}) Matt --~--~-~--~

Re: Can you define an extra filter to be applied to a class in all cases via the model?

2007-05-24 Thread Matt McClanahan
On May 24, 2:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > To accomplish this we are going to add a 'deleted_flag' to each table, > and set it to 0 if it is not deleted, and 1 if it is deleted. Just as an aside, when I use this approach I find it handy to use a date field, 'deletedate'

Re: problem with urls for generic views

2007-09-10 Thread Matt McClanahan
On Sep 10, 4:38 pm, Car <[EMAIL PROTECTED]> wrote: > With development server everything works fine (py 2.5), but after > uploading to production server (;y 2.4) I have following error msg. > TypeError at / > cannot concatenate 'str' and 'function' objects > > After commenting these lines eve

Re: max_length / Upgrade error in tutorial part 1 (polls)

2007-11-13 Thread Matt McClanahan
On Nov 13, 12:38 am, [EMAIL PROTECTED] wrote: > I am stepping through Dajngo Tutorial (Part 1, to create polls > application) and get this error. > > Unexpected keyword argument 'max length' when running "manage syncdb" > > If I change it to "maxlength" it works: This is the proper solution when

Re: check for request.META keys

2007-11-15 Thread Matt McClanahan
On Nov 15, 8:51 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > It just seem that there should be a better way of doing this. I was > thinking about a method that would perform the test for me and return > either the contents or a blank string. Often times, when it seems like something should ex