On Jul 4, 5:00 pm, RossGK <[EMAIL PROTECTED]> wrote: > I'm trying to do a bit of simple Django access to a postgresql > database, and must be missing something. Using the tutorial info, I've > had mixed success. I can pull a bit of stuff form the database, but > have some curious behaviour that is slowing me down. See the example > details below... > > Problems: > a) I am able to get an SList object by specifying the id, but the .id > attribute is not accessible. > If I use the django shell, it behaves as expected, but not when > implemented in my views.py > > b) I could not create and save a new object in my database, so I tried > it in the interactive shell where it worked as expected, then upon > trying it again in with the dev server running, and executing the > populateDB in views below, it worked. > However, I can only create an SList object by explicitly specifying > the id= field. It should allow me to make one without specifying > that (see doghop example below). >
What are the symptoms of a and b "not working"? Does nothing happen, do you get a traceback, what? The more details, the better. It might also help to post the db part of your settings.py file. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---