Django ValidationError for DateField

2010-05-05 Thread LeeRisq
This is mostly me just venting, but why is it if you run a query like this: a = Model.objects.get(pk=1) Which has an attribute with an output of: a.date = None I pass that to a template, change some other attribute and then attempt to pass it back in: date = request.GET['a.date'] b =

Development to deployment

2009-11-18 Thread LeeRisq
I am working on a web site in a windows development environment, but the hosting plan that my client is currently using runs a Linux server. Can anyone tell me if there are significant hardships in making this transition between Windows development vs. Linux deployment. Thanks for reading. --

Can't find doc for this - concerning buildout

2009-08-12 Thread LeeRisq
Hi all, I just want to install buildout for use with my Django app, but I get an error that I can't find any documentation for. Here is what I am running: C:\somedirectory>easy_install zc.buildout This is what happens: Searching for zc.buildout Reading

Re: Intermediate Table question

2009-08-04 Thread LeeRisq
> I don't believe it would work, but even if it did, what would this do? >  What's the expecected behavior? class A defines an consumer order class B and C both define different lines of product I'd like to store all the ordering info in one intermediate table while maintaining different

Intermediate Table question

2009-08-04 Thread LeeRisq
Does anyone know if an intermediate table can be specified on more than two models? For instance: class A(m.Model): B = ManyToManyField(B, through='D') C = ManyToManyField(C, through='D') Will this validate and actually work? --~--~-~--~~~---~--~~

Base Class Inheritance w/ Model Methods

2009-07-15 Thread LeeRisq
So I'm hitting a beginner's snag here. I have six models that I need to contain essentially all the same attributes. I created a base class and then created the child classes respectively. Some of the child classes will contain additional attributes to the base class, but the rest only need what

Model Inheritance question

2009-06-25 Thread LeeRisq
If I am looking to use an abstract base class with multiple models, which is assigned the primary key id? The child or the parent? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Modifying Django's User Model

2009-06-15 Thread LeeRisq
Thanks for the info. I'll check it out. On Jun 12, 11:06 am, Rajesh D <rajesh.dha...@gmail.com> wrote: > On Jun 12, 9:29 am, LeeRisq <leer...@gmail.com> wrote: > > > I am interested in changing the primary key of the User model to email > > and also use that as th

Modifying Django's User Model

2009-06-12 Thread LeeRisq
I am interested in changing the primary key of the User model to email and also use that as the username. I would like to maintain the admin interface as well. I am uncertain about the ramifications of doing this. I understand this change will need to be reflected in other models and some

ManyToMany Question

2009-06-11 Thread LeeRisq
Programming with Django is unfortunately my job on the side right now, so limited time for coding and testing. I know I could answer this question myself by tinkering around, but don't have time. When you have a generic ManyToMany field specified between two models, will Django automatically

DjangoBook help Chapter 7

2009-04-17 Thread LeeRisq
Hey all, Thanks for reading. I have gone over and over the section first half of the chapter about having a simple search form. Here are my views: from django.shortcuts import render_to_response from mysite.books.models import Book def search_form(request): return

OperationError: fe_sendauth: no password supplied

2009-04-08 Thread LeeRisq
I've been following along with the Djangobook. When I try to configure the postgresql db, I get that error. I've tried tracing the problem myself and have been unsuccessful. >From Chapter 5: >>> from django.db import connection >>> cursor = connection.cursor() Then I get the error. Any ideas?