Integrating Selenium unit-tests into Django

2007-08-25 Thread bsdlogical
Hello everyone. I've seen several threads in the past months about integrating Selenium into Django, so hopefully I'm not asking something that's already been asked. I'm using OpenQA.org's Python RC client to communicate with a Selenium server running in the background. I have a SeleniumTestCase

Sequence of Meta.unique_together apparently matters

2006-07-28 Thread bsdlogical
Hello. I noticed a weird problem with the order of parameters specified in unique_together for a Meta class inside another class. I have the following definitions: class Obligation(models.Model): organization = models.ForeignKey(Organization) name = models.CharField(maxlength=80) cla

Re: Automatic redirecting after login

2006-07-02 Thread bsdlogical
Luigi Pantano wrote: >try this > >from django.http import HttpResponseRedirect > >... ... > >def login(request): >''' some code to put here ''' >return HttpResponseRedirect("index.htm") > > > > I see what you're saying, but I was thinking something more on a selective basis. This would

Re: Automatic redirecting after login

2006-07-02 Thread bsdlogical
Luigi Pantano wrote: >try this > >from django.http import HttpResponseRedirect > >... ... > >def login(request): >''' some code to put here ''' >return HttpResponseRedirect("index.htm") > > > > I see what you're saying, but I was thinking something more on a selective basis. This would

Automatic redirecting after login

2006-07-02 Thread bsdlogical
Is there a way to ask a page to redirect somewhere after a certain action is completed? Specifically, after a user has logged in? I have a sub-site running at /orgs/keyclub. When users click "Login" from the sub-site, they are directed to the main site's login page (to prevent code duplication -

Re: Problem with built-in User in many-to-many relationships

2006-06-27 Thread bsdlogical
Malcolm Tredinnick wrote: On Tue, 2006-06-27 at 23:53 -0400, bsdlogical wrote: I've recently stumbled over a problem whose solution I can't find. I have a class with two fields that use the built-in User class (from django.contrib.auth.models) in a many-to-many re

Problem with built-in User in many-to-many relationships

2006-06-27 Thread bsdlogical
I've recently stumbled over a problem whose solution I can't find. I have a class with two fields that use the built-in User class (from django.contrib.auth.models) in a many-to-many relationship. However, when I try to access or modify those fields, django throws an error message. My class declar