Re: how to connect Django to objects served over xml-rpc?

2007-04-21 Thread Forest Bond
Hi Brandon, On Fri, Apr 20, 2007 at 01:58:48PM -0400, [EMAIL PROTECTED] wrote: > I want to try out Django for a small project, hoping to discover that > it will be the web framework of my dreams, but I need some advice. > > My project group has written an xml-rpc API in front of our database >

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread mateo
Jay, Thanks for all your help. I found this ticket (http:// code.djangoproject.com/ticket/3708) and switched from python 2.5 back to 2.4 and now everythings working fine. Since it's a known issue, I'll just leave it alone and continue on with 2.4. As for the indents, I think it's just the

Re: reverse relationships with ForeignKey?

2007-04-21 Thread Oliver Charles
Thats' because by default Django will name the field "model_set" on the reverse relationship. So if you want to access it that way, you should do entry.updates_set.all(). A nicer, more readable way, is to set related_name on the ForeignKey. E.g: entry = models.ForeignKey(Entry,

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread Jay Parlar
On 4/21/07, mateo <[EMAIL PROTECTED]> wrote: > > I've found that if I add the 'admin' subclass to the 'choices' class > and remove 'edit_inline=models.TABULAR, num_in_admin=3' from > the Foreign Key I can save new entries just fine. The error only pops > up when I have the 'choices' edited

reverse relationships with ForeignKey?

2007-04-21 Thread drackett
I have an app that I'm building and I've run into a problem. I have 2 models "Entries" and "Updates" which points to "Entries" with a ForeignKey. The idea is that an entry can be updated at multiple times and I track the date and other meta information of the update within the update model. When

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread mateo
I've found that if I add the 'admin' subclass to the 'choices' class and remove 'edit_inline=models.TABULAR, num_in_admin=3' from the Foreign Key I can save new entries just fine. The error only pops up when I have the 'choices' edited inline with the 'polls'. On Apr 21, 3:02 pm, mateo <[EMAIL

Cannot resolve keyword into field

2007-04-21 Thread Ramashish Baranwal
Hi, I using a script to fetch some database records. However, when it encounters a ManyToManyField it gives the following error- TypeError: Cannot resolve keyword 'book' into field My models.py looks like this- from django.db import models # Create your models here. class

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread mateo
I've been following the code step by step and checking along the way, but I didn't try to save anything up until the end of that section. The admin console itself works fine, it isn't until I hit 'save' (or one of it's variations) that I get the error. I will rollback the models.py tutorial code

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread Jay Parlar
On 4/21/07, mateo <[EMAIL PROTECTED]> wrote: > I am on part 2, 'Custominze the Admin Change List'. (http:// > www.djangoproject.com/documentation/tutorial02/#customize-the-admin-change-list) Sorry, I meant, what stage exactly did it break? ie., did you go through tutorial 2 step by step,

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread mateo
> What stage of the tutorial, exactly, did this error occur at? Could > you also please copy and paste the contents of your models.py file > with your response? > > Jay P. I am on part 2, 'Custominze the Admin Change List'. (http://

SQL Debug middleware

2007-04-21 Thread Jesse Lovelace
Hey all, I made this the other day to help me track all the sql statements my pages were doing. I wanted something unobtrusive (i.e. middleware) and simple. Hope you like: from django.db import connection import re, pprint body_end = re.compile('', re.IGNORECASE) class

newforms.BooleanField needs a required=False?

2007-04-21 Thread Terji7
Hi, I'm making my first 0.96 application, a Faroe Islands tax calculator (it's at gladsheinur.webfactional.com/skattur/, check it out, it's a work in progress). I'm trying to use a BooleanField, but GET requests send nothing back to the server if the checkbox is unchecked. That makes the form

It is actually more than photosharing

2007-04-21 Thread Rico
I d like to show you http://www.morecute.com It has been awesome runs on Fedora I wanted to share it early on so there is litte load on the server and the early adopter crowd can try it out thanks Jerry It is actually more than photosharing http://morecute.com/vote/400562/1

A simple photosharing application written in django

2007-04-21 Thread Rico
I d like to show you http://www.morecute.com It has been awesome runs on Fedora I wanted to share it early on so there is litte load on the server and the early adopter crowd can try it out thanks Jerry --~--~-~--~~~---~--~~ You received this message because

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread Jay Parlar
On 4/21/07, mateo <[EMAIL PROTECTED]> wrote: > > List, > > When following the tutorial I get the below error when attempting a > save from the admin console. I'm new to Django and certainly not a > guru of any sort so I thought I would ask about it here first before > posting a bug report. I am

Error - 'int' object is unsubscriptable

2007-04-21 Thread mateo
List, When following the tutorial I get the below error when attempting a save from the admin console. I'm new to Django and certainly not a guru of any sort so I thought I would ask about it here first before posting a bug report. I am using the latest SVN release as of 4/21. Any ideas what

Re: [database-api] Using .select_related() with a multi-table query (bug?)

2007-04-21 Thread Luiz Carlos Geron
Any ideas on how I can do this with one query? On 4/18/07, Luiz Carlos Geron <[EMAIL PROTECTED]> wrote: > Hi, > I have three models, listed at [1], that I want to get data from with > only one query, because of performance issues with my app. The way > that worked so far is: > > league_ids =

Re: Subclasses or OneToOne relationship

2007-04-21 Thread Jamie Pittock
OK thanks very much for the reply Malcolm. On Apr 21, 3:47 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-04-20 at 20:00 +, Jamie Pittock wrote: > > Hi all, > > > I'm currently planning my first Django application and after a quick > > search of groups I need a model

Re: audit trail support

2007-04-21 Thread Tim Chase
> I will be working on this project as part of my Real Job(tm), > so devoting time to it should not be a problem. However, > before I begin coding, I want the community's input on a few > issues. > > What is the right way, at DB level, to implement the audit > trail? I had two ideas: Todd

Another take on auto-history

2007-04-21 Thread Oliver Charles
Morning all I've been meaning to post this to the list for a while, and I think my code is now ready to be shown. I've been working on a small bug tracker type project for myself - as I have 3 Django projects on the go at the moment. Anyway, I wanted a way to track changes made to

Re: error separating apps from projects

2007-04-21 Thread Tejas Shah
that's a nice idea thanks Michael On 4/21/07, Michael Trier <[EMAIL PROTECTED]> wrote: > > > I recently did something similar but what I ended up doing was > creating a symbolic link to a path that was already in my sys.path > location. For me since I have site-packages/django I just created a

Re: Accessing named URL patterns from views

2007-04-21 Thread Malcolm Tredinnick
On Sat, 2007-04-21 at 01:47 -0700, Michael wrote: > I'm not sure if this is obvious, but the documentation at: > > http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns > > doesn't mention how you can use your named URL patters to redirect > from one view to another. It

Accessing named URL patterns from views

2007-04-21 Thread Michael
I'm not sure if this is obvious, but the documentation at: http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns doesn't mention how you can use your named URL patters to redirect from one view to another. It only shows how you can get the url for a view from within a

Earn $1 for every person that joins your downline!

2007-04-21 Thread [EMAIL PROTECTED]
All you have to do is sign up and then get others to sign up under you, $1 for every single person. http://genbucks.com/?jassey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: how to connect Django to objects served over xml-rpc?

2007-04-21 Thread Oliver Charles
Hey, seeing as you haven't had any relies yet, I will through my idea down. What I think you're gonna have to do for the most graceful version is to create your own database wrapper, that calls xml-rpc, instead of an actual database. Then Django *should* be free to use. The problem may occur

Ready For dating

2007-04-21 Thread tauqir ahmad
Send free email to dating members http://www.datingseasons.com Find your dream partner online free http://www.datingseasons.com Search and make your online partners http://www.datingseasons.com Find more details about your dream partner http://www.datingseasons.com Search your soulmate

Re: selecting a framework ,

2007-04-21 Thread Ramdas S
I have build a simple billing module for an ad agency which is functional using Django. It is very easy to use it Ramdas On 4/20/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 20-Apr-07, at 8:53 AM, Jeremy Dunck wrote: > > >> > >> check out satchmo - it is an erp with django > > >