Re: Simple CAS 1.0 authentication

2006-11-30 Thread Brian Beck
Alright, I'm gonna throw a question out there, maybe someone can help. As shown above I can intercept the admin index page in order to not display the login form which doesn't make sense for CAS authentication. However, this only works if the user needs to be authenticated and requests the

Re: Simple CAS 1.0 authentication

2006-11-30 Thread Brian Beck
Quick followup in case anyone is interested (anyone? Bueller?)... One problem is handling the admin site, which doesn't really account for an authentication backend that doesn't know the user's password (making the login form useless). So, without wanting to hack up django.contrib.admin, here's

Re: Session problems

2006-11-28 Thread Brian Ray
sions were not working properly for many reasons. I can recall once I build mod_python linking to the wrong libraries, and some strange stuff happened. -- Brian Ray (http://kazavoo.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: More questions on models

2006-11-27 Thread Brian Beck
10, price=1.5, total=2, order=o, product=p).save() >>> OrderItem(quantity=5, price=10.5, total=20, order=o, product=p).save() Here's the part you want: >>> o.orderitem_set.all() [, ] Hope that helps. -- Brian Beck Adventurer of the First Order --~--~-~--~~--

Simple CAS 1.0 authentication

2006-11-27 Thread Brian Beck
'django.contrib.auth'. Also see cas/backends.py if you have a way to automatically determine the user's name and e-mail from the username (from LDAP for example), or if you need to implement more of the CAS protocol (gateway, renew, proxy...). Questions and comments welcome. -- Brian Beck Adventurer

Django developers NYC???

2006-11-13 Thread Brian
Hi, New to the group. I just took over the website for a smaller, weekly newspaper in NYC, and I am looking at completely rebuilding the system with a Django framework. Do you have any suggestions how I can find a good lead Django developer in NYC. Are there job boards etc, besides this I

Re: Mac vs. PC for Django work.

2006-09-14 Thread brian corrigan
that though, there is a perfect tutorial on http://toolmantim.com/article/2006/5/31/installing_django_on_osx Helped alot! Cheers Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Running two django projects on the same server

2006-09-05 Thread brian corrigan
: SuspiciousOperation: User tampered with session cookie Is there a way around this? Has anyone had this problem before in the pass? I'd really appreciate any help. Thanks Brian Ps: Cheers for everyones help on last topic I had. I hope my questions weren't painfully idiotic to any one. Thanks

Re: django/core/meta

2006-09-01 Thread brian corrigan
stribution_list", "subscriber"),) Is there something I need to do or am leaving out? Thanks again Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: django/core/meta

2006-09-01 Thread brian corrigan
Jacob Kaplan-Moss wrote: > On Sep 1, 2006, at 9:17 AM, brian corrigan wrote: > > However with the project I'm working on, I can't change the Django > > version I'm working on. I have tried doing an SVN update on the core > > directory but meta was not included in it.

Re: django/core/meta

2006-09-01 Thread brian corrigan
= meta.ForeignKey(DistributionList) subscriber = meta.CharField(maxlength=30) class META: unique_together=(("distribution_list", "subscriber"),) ? It is the unique_together that I need to implement. Thanks in advance Brian --~--~-~--~~~

Re: django/core/meta

2006-09-01 Thread brian corrigan
Thanks Jacob, However with the project I'm working on, I can't change the Django version I'm working on. I have tried doing an SVN update on the core directory but meta was not included in it. Is there anyway I can download the relevant files/folders? Thanks again, Brian

Re: shared apps accross multiple sites/projects

2006-07-21 Thread Brian Hamman
Sweet. Thanks guys for the quick answer. This is very reassuring. Of course, this also means that I'm now looking at several hours of reorganization. Part of me was hoping you'd say "No! Don't touch." >From Jacob's example it looks like you guys take it a step further and more or less invert

shared apps accross multiple sites/projects

2006-07-20 Thread Brian Hamman
Hey there, I'm working on a project that will run several related news sites from a single Django installation. I'll be treating each site as a separate project, complete with its own settings.py file and corresponding use of the sites framework. Where I run into trouble is with apps that are

order by m2m field?

2006-05-06 Thread Brian Elliott
Hello, Is it possible to order a query by a ManyToManyField? For example, in the models below, I'd like to select all Entries and order by the Author's name. Something to the effect of Entry.objects.all ().order_by('authors__name')? Thanks, Brian class Author(models.Model): name

Re: querying for an empty set in m-r?

2006-04-12 Thread Brian Elliott
Russell, Just wanted to thank you for responding to my post. You did interpret my question correctly, though I was obviously hoping to avoid using raw SQL. Anyway, thanks again. Brian On Apr 12, 2006, at 1:10 AM, Russell Cloran wrote: > > Hi, > > On Tue, 2006-04-11 at 21:2

Re: querying for an empty set in m-r?

2006-04-12 Thread Brian Elliott
Max, Just wanted to thank you for responding to my question. You are correct that the list comprehension is pythonic, though I was ideally looking for a efficient method from a database perspective. Thanks, Brian On Apr 12, 2006, at 2:16 AM, Max Battcher wrote: > > Russell Cloran

querying for an empty set in m-r?

2006-04-11 Thread Brian Elliott
to obtain all Tags with no associated articles? (m-r) I basically want to delete unused tags. Thanks, Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Manipulator Change calls INSERT

2006-01-27 Thread Brian Ray
is a AccountManipulatorChange. I double checked by calling HttpResponse on manipulator.__class__.__name__. I do use a "_pre_save" in my model and I was wondering if this somehow was causing this unexpected behaviour. tia, Brian Ray <http://brianray.chipy.org> aim: brianray34

Database API Boolean Queries

2006-01-24 Thread Brian Ray
="t"); Alhtough, I am unsure if this will work if I switch Database platforms. Is there a better way? Thanks, Brian Ray bray sent com http://brianray.chipy.org

Re: Apache Authentication

2006-01-07 Thread Brian Ray
Thanks Ian. But, this is not really what I am doing here. I do not want to create users from Apache. Kind Regards, Brian

Re: Apache Authentication

2006-01-07 Thread Brian Ray
so, this is fine by me. Regards, Brian Ray

Re: Apache Authentication

2006-01-07 Thread Brian Ray
Adrian, I took a look at modpython.py. I changed line 16 to: _str_to_bool = lambda s: s.lower() in ('1', 'true', 'on', 'yes') Note the parethesis. Seems to work now. Cool, Thanks!

<    5   6   7   8   9   10