Re: WebFaction + Django Fixture: Help?

2009-06-17 Thread Keyton Weissinger
<a...@clearwind.ca> wrote: > On 17-Jun-09, at 12:48 PM, Keyton Weissinger wrote: > > > backends/util.py", line 19, in execute > >    return self.cursor.execute(sql, params) > > DataError: value too long for type character varying(4) > > > Any ideas? > >

WebFaction + Django Fixture: Help?

2009-06-17 Thread Keyton Weissinger
I have a nice test fixture that loads my local database without incident. I'm using postgresql 8.3 at home on ubuntu. I use the fixture at home all the time. Trying to run it on webfaction, I get the following error: [key...@web58 schoolicity]$ python2.5 manage.py loaddata full_load.json

Re: Using Request Info in Generic Views

2009-06-02 Thread Keyton Weissinger
http://groups.google.com/group/django-users/browse_thread/thread/bde817d4620fdfec On Tue, Jun 2, 2009 at 7:33 AM, Keyton Weissinger <key...@gmail.com> wrote: > I know I'm in the minority, but I'm still having some trouble grokking > the details of generic views. I keep thinking I sho

Using Request Info in Generic Views

2009-06-02 Thread Keyton Weissinger
I know I'm in the minority, but I'm still having some trouble grokking the details of generic views. I keep thinking I should be using them but keep running into the same issue. Here's my problem: I am building a mgmt site for schools in which schools sign up for a monthly service fee. Most of

Practical Django Projects 2nd Edition

2009-06-01 Thread Keyton Weissinger
Supposed to ship today, no? Has anyone heard of a delay? Keyton --~--~-~--~~~---~--~~ 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.com To unsubscribe

Re: Garbage Collection(maybe?) and RequestContext

2009-03-24 Thread Keyton Weissinger
Something deep inside kept telling me it was something like that. Grrr Love making the noob mistakes. NOT! ;-) Thanks DR! On Mar 24, 11:57 am, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Mar 24, 3:42 pm, Keyton Weissinger <key...@gmail.com> wrote:

Garbage Collection(maybe?) and RequestContext

2009-03-24 Thread Keyton Weissinger
I'm using the extra_context dictionary passed into the view like many folks (James Bennett among them) seem to recommend either directly or via his projects. Here is what a view might look like (all of this is on dpaste with link below if you'd prefer): from django.shortcuts import

unknown encoding: cp0 --> django\forms\forms.py in full_clean (241)

2009-03-18 Thread Keyton Weissinger
I'm running django on an Apache 2.2 server on a Windows XP box. I'm running django 1.0.2. I had a simple form/view that worked like a champ in my ubuntu box but now suddenly bombs in the django forms code. Here's the trace: http://dpaste.com/16330/ Looking at other instances of similar

RELEASED: django-batchimport 0.2

2009-01-24 Thread Keyton Weissinger
Hi Folks, I've updated the django-batchimport project to version 0.2. This new version allows for easy import of relationship data (many-to-many, for example) for previously imported data -- even if your original data doesn't have unique IDs. There's also the new ability to override field values

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-22 Thread Keyton Weissinger
Hi Malcolm, Thank you VERY much for taking the time to explain this to me. It makes perfect sense and since yesterday I've delved a bit deeper (than ever) into the django code itself to understand a little more. You are ABSOLUTELY right to point out that I'm in user-beware country. I don't

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-21 Thread Keyton Weissinger
f quagmire if I can Thank you VERY MUCH Martin and Malcolm. I appreciate your respective looks at this problem very much. Your taking time to help with this kind of thorny issue is what makes this community rock and, frankly, inspires me to help out more. Keyton On Jan 21, 3:59 pm, Keyt

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-21 Thread Keyton Weissinger
> M > > On Wed, Jan 21, 2009 at 3:06 PM, Keyton Weissinger <key...@gmail.com> wrote: > > > I'm on django 1.0.1 (NOT 1.0.2). Do you think that has any impact on > > this problem? I will try upgrading tonight. > > > Any other ideas? > > > K --~

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-21 Thread Keyton Weissinger
I'm on django 1.0.1 (NOT 1.0.2). Do you think that has any impact on this problem? I will try upgrading tonight. Any other ideas? K On Jan 21, 8:33 am, Keyton Weissinger <key...@gmail.com> wrote: > More information... > > I stuck the following into my code at the same place

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-21 Thread Keyton Weissinger
with the same results. Still stuck. Keyton On Jan 21, 8:13 am, Keyton Weissinger <key...@gmail.com> wrote: > Oh, and I have printed the import_object_dict, it has exactly what I > think it should... Argh! > > ;-) > > K > > On Jan 21, 12:12 am, Martin Conte Mac Done

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-21 Thread Keyton Weissinger
Oh, and I have printed the import_object_dict, it has exactly what I think it should... Argh! ;-) K On Jan 21, 12:12 am, Martin Conte Mac Donell <refl...@gmail.com> wrote: > On Wed, Jan 21, 2009 at 2:35 AM, Keyton Weissinger <key...@gmail.com> wrote: > > > Oh and just

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-21 Thread Keyton Weissinger
Martin Conte Mac Donell <refl...@gmail.com> wrote: > On Wed, Jan 21, 2009 at 2:35 AM, Keyton Weissinger <key...@gmail.com> wrote: > > > Oh and just to re-state, this exact same code works like a champ on > > import of School or Parent data (neither of which have

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-20 Thread Keyton Weissinger
Oh and just to re-state, this exact same code works like a champ on import of School or Parent data (neither of which have a ManyToMany field). Keyton On Jan 20, 11:32 pm, Keyton Weissinger <key...@gmail.com> wrote: > Hi Malcolm, > > Thanks very much for the quick reply. I'm

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-20 Thread Keyton Weissinger
ay that just to rule out some problem with the School object (a OneToMany) that *IS* being passed in. I appreciate any time you have to spend on it very much. Best, Keyton On Jan 20, 11:02 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Tue, 2009-01-20 at 19:32 -

Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-20 Thread Keyton Weissinger
Hello, OK. I'm totally stuck. I am trying to create an object (of type Student -- see below) with the following: new_student = Student.objects.create(**import_object_dict) I'm using the following dictionary as "import_object_dict" above (aside from the name of the school, this is fake data, so

Can I help you import your data into django (for free, of course)?

2009-01-16 Thread Keyton Weissinger
Hi All. Some of you have checked out django-batchimport to either bulk import or bulk update your database. Some of you have provided some great feedback. Thank you! Seems like it's working fairly well for straightforward XLS files. But I'd like to offer better support for CSV files and more

Re: Setting Bound Fields Programmatically

2009-01-08 Thread Keyton Weissinger
WAIT! Crap. If all else fails, RTFM. I'm sorry everyone. I just re-read the docs at http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ on commit=False. I get it now. Thank you all! K On Jan 8, 7:47 am, Keyton Weissinger <key...@gmail.com> wrote: > Thank you both very much f

Re: Setting Bound Fields Programmatically

2009-01-08 Thread Keyton Weissinger
to have required=False on the school field in my Teacher object for it before the form.save will work in such a way as to save the underlying model? Keyton On Jan 8, 12:38 am, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Wed, 2009-01-07 at 21:28 -0800, Keyton Weissinger wrote: &

Setting Bound Fields Programmatically

2009-01-07 Thread Keyton Weissinger
I have a form with the following fields (all required): - first_name - last_name - site_id I'd like to use a template to display only the FIRST two items to the user for him to fill out: {{ form.first_name }} {{ form.last_name }} Then when it gets posted back to me I'd like to set the

Re: Import models from CSV files?

2009-01-07 Thread Keyton Weissinger
Hey Victor, I did the django-batchimport mentioned earlier. I think it will address your need but is definitely aimed at XLS. However, it does already handle duplicates (it will either update them or ignore them based on setting). You can also specify a subset of model fields to use to determine

RELEASED: django-batchimport 0.1

2009-01-03 Thread Keyton Weissinger
Greetings All, I've just finished the 0.1 version of django-batchimport and have released it on code.google.com. Go to http://code.google.com/p/django-batchimport/ for more information (and SVN checkout). This application can be added to any django project to give it batch import capability

Re: Weird Behavior in Template Rendering: First Letter Only ?!?!

2009-01-02 Thread Keyton Weissinger
Thanks Alex! That was the hint I needed. I ended up going through my dictionary of fields (on my form object) in my view and getting BoundField instances for each. That did the trick. Thank you all! Keyton On Jan 2, 12:57 am, Keyton Weissinger <key...@gmail.com> wrote: > OK.

Re: Weird Behavior in Template Rendering: First Letter Only ?!?!

2009-01-01 Thread Keyton Weissinger
this rendered to the HTML: instead of a nicely rendered field. Any ideas? Thank you! Keyton On Jan 2, 12:06 am, Keyton Weissinger <key...@gmail.com> wrote: > I'm passing a dictionary of values that look something like this: > > {'name1':[field1, field2, field3], 'name2':[field4

Weird Behavior in Template Rendering: First Letter Only ?!?!

2009-01-01 Thread Keyton Weissinger
I'm passing a dictionary of values that look something like this: {'name1':[field1, field2, field3], 'name2':[field4, field5,field6]..} Each key is a simple string and each value is a list of form fields. I should be able to do something like this in the template to render same: {% for key,

Has anyone released a "User-Specific File Manager App?"

2008-12-10 Thread Keyton Weissinger
Hi There, I have a use case to build an online "file-locker" sort of app where each user can upload and download files (word processing documents, excel spreadsheets, etc) into a user-specific/secure location. Users would log into the site, and see the files on the server in their specific

Re: Best IDE for Django and python?

2008-11-25 Thread Keyton Weissinger
It's unlikely I will be able to add much after Russ, but I will suggest a book that has helped me a GREAT deal in support of the IDE- approach: Foundations of Agile Python Development: http://www.amazon.com/Foundations-Python-Development-Experts-Source/dp/1590599810 It goes step-by-step over

Eclipse/Mylyn for Django Dev

2008-11-20 Thread Keyton Weissinger
This is a question for my fellow Eclipse/PyDev fans Have any of you gone through the trouble to change your work flow to take advantage of Mylyn? >From the Mylyn web page (http://www.eclipse.org/mylyn/): "Mylyn is a task-focused interface for Eclipse that reduces information overload and

Re: Read/Create Excel xls files using django

2008-11-14 Thread Keyton Weissinger
I've used xlrd. It's pretty straightforward and Excel 2007 is in the works... Here's the main Google Group for both projects: http://groups.google.com/group/python-excel Keyton On Nov 13, 10:44 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > >> [my stuff about using XML templates with Excel] > >

Waiting List App

2008-11-13 Thread Keyton Weissinger
I need a waiting list application in which a site's functionality hasn't come online yet and I want to gather email addresses of folks interested in hearing when we go live. I know that building such as application would be almost trivial, but in the interest of reuse, I thought I'd ask if anyone

Pinax on Windows

2008-11-09 Thread Keyton Weissinger
I'm trying to get Pinax 0.5.0 set up on a windows XP box using Django 1.0. I'm just trying to get the BASIC project setup. No customization. I've executed the Windows-specific warning here: http://pinaxproject.com/docs/0.5.0/install.html I did that and it seems no matter what I've tried (and

Re: Django Equivalent to Rails Rumble

2008-10-26 Thread Keyton Weissinger
Hi Again Everyone, First my apologies to the group on not explaining what Rails Rumble was. Jeremy posted some details above. Here are some more from the website (http://railsrumble.com/): [About the Contest] The Rails Rumble is a 48 hour web application development competition. As a

Django Equivalent to Rails Rumble

2008-10-25 Thread Keyton Weissinger
Hello everyone! Long time listener. First time caller Is there an equivalent to the Rails Rumble for the Django community? Shouldn't there be one? What do you think? Keyton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the