Re: login_required decorator

2007-02-20 Thread Frank Tegtmeyer
Malcolm Tredinnick <[EMAIL PROTECTED]> writes: > next day or two in order to make this (and a couple of other > login-related URLs) directly configurable via settings.py. What I need is several different login pages at one site. So the parameter (or the workaround with user_passes_test) is what

Re: newforms form_for_instance returning IntegerField for PhoneNumberFields

2007-02-20 Thread Adrian Holovaty
On 2/20/07, Matt H <[EMAIL PROTECTED]> wrote: > When using newforms.form_for_instance() with a model that has a > PhoneNumberField, I get get an IntegerField in the resulting form which > doesn't validate properly. I have been using a custom form with my own > PhoneNumberField widget, however, I'd

Re: login_required decorator

2007-02-20 Thread Malcolm Tredinnick
On Tue, 2007-02-20 at 10:09 -0800, ScottB wrote: > Hi Frank. > > > is there any reason that the login_required decorator doesn't have the > > login_url parameter? > > If you want to set the login url to something other than the default / > accounts/login/ you add this to your settings.py: > > f

Pretty cool - anyone can be a DJ

2007-02-20 Thread nowliveone
Though some of you might be interested in this, I thought it was pretty cool... NowLive.com is a live mobile community. DJs on the shows get to interact with people doing interviews, sending in live videos and photos. The best part of NowLive is that YOU can become a DJ or a field reporter and get

Yet another ManyToMany question ...

2007-02-20 Thread ZebZiggle
I have a model: class Employee(models.Model): name = models.CharField(maxlength = 100) reportsTo = models.ForeignKey('self', null=True, related_name='dependent_element') subordinates = models.ManyToManyField('self') I want to add the employee as a subordinate when the manager is defi

Re: podcast-feed

2007-02-20 Thread [EMAIL PROTECTED]
I did it, but not using the syndication. I just use a generic list view and point to a template to build the xml. Not hard at all. Here's my template: http://www.itunes.com/dtds/podcast-1.0.dtd"; version="2.0"> Gretsch Pages Radio http://gretschpages.com/radio/ M

Re: Should newforms security fixes be posted to django-announce?

2007-02-20 Thread Dave Hull
Sorry, catching up on older messages... I favor disclosure and transparency. I didn't even know there was a django-announce. It's not listed on the web site with the other mailing lists. -- Dave Hull, CISSP --~--~-~--~~~---~--~~ You received this message because

Re: Captcha example

2007-02-20 Thread Joseph Heck
I used a very slight variation off that same code base - so let me take a stab at explaining what the general idea is behind how captcha was implemented - In the view where you're going to display a captcha, generate first a "captcha" that just goes into the database - a combination of a UUID, the

newforms form_for_instance returning IntegerField for PhoneNumberFields

2007-02-20 Thread Matt H
Not sure whats going on. When using newforms.form_for_instance() with a model that has a PhoneNumberField, I get get an IntegerField in the resulting form which doesn't validate properly. I have been using a custom form with my own PhoneNumberField widget, however, I'd like to be able to use form_

simple joins

2007-02-20 Thread Ramdas S
Hi, This is actually a simplified model of a more complex database. It seems simple, but I am not able to get the ruight solution. I have two tables, one a foreignkey of the other. The first table is a bill and other one is a table where I can add items to be billed and their price. I have a fi

Re: login_required decorator

2007-02-20 Thread ScottB
Hi Frank. > is there any reason that the login_required decorator doesn't have the > login_url parameter? If you want to set the login url to something other than the default / accounts/login/ you add this to your settings.py: from django.contrib.auth import LOGIN_URL LOGIN_URL = '/accounts/sig

Looking for competent Django Developer mod of Existing Client Database package

2007-02-20 Thread Fantasys
Looking for a really competent Django person to work on an Existing Client Database package. The System: cPanel Build 10.8.2-RELEASE 119 Operating system FreeBSD 5.4-RELEASE Machine Typei386 Apache version 1.3.37 PERL version5.8.8 PHP version 4.3.11 MySQL version 4.0.27 The Pac

is this a bug... Model/admin little problem

2007-02-20 Thread enquest
I got the following problem: On my developing server everything is fine. On my deployment server (apache) I have the problem The problem: Hotel dissapears in the admin when I import the country.models I tryied about everthing with many apache restarts and many changes.. If I simple add the clas

Using choices with newforms.form_for_model

2007-02-20 Thread Phil Powell
Hi, I have this: class SomeModel(models.Model): some_choice = models.CharField(maxlength=255, choices=CHOICES_DICT) And I'm generating a form for HTML display using this: SomeForm = newforms.models.form_for_model(SomeModel) form = SomeForm() But my some_choices field just shows up a

Captcha example

2007-02-20 Thread Mike
Hello, Can anyone puke up a simple example of using captcha with Django forms? [I've already RTFM&N.] I installed the app code from http://code.google.com/p/django-captcha/ and noticed the test but don't see how it works with templates and extraspecially newforms (needs to be a tag library?). I

podcast-feed

2007-02-20 Thread va:patrick.kranzlmueller
has anyone done a podcast-feed (iTunes) using django syndication? I know that it´s possible by changing feedgenerator.py. if somebody has already done it, it´d be great to share the code and/ or give some advice. thanks, patrick --~--~-~--~~~---~--~~ You receiv

Re: Database changes

2007-02-20 Thread Honza Král
On 2/20/07, Mike H <[EMAIL PROTECTED]> wrote: > > > For me, if there was a way to simply add missing columns that would be > enough. Any data manipulation should be done by a patch runner that can > be tested and automated, but simply adding missing columns to a table I > think should be done by sy

Re: Database changes

2007-02-20 Thread Mike H
For me, if there was a way to simply add missing columns that would be enough. Any data manipulation should be done by a patch runner that can be tested and automated, but simply adding missing columns to a table I think should be done by syncdb. The way I have approached this when producing ORM

Re: python 2.4 v 2.5 and DJANGO_SETTINGS_MODULE

2007-02-20 Thread Veloz
Thanks so much for this. That clears up a LOT. Michael On Feb 19, 4:38 pm, "Waylan Limberg" <[EMAIL PROTECTED]> wrote: > On Mon, 19 Feb 2007 15:58:37 -0500, Veloz <[EMAIL PROTECTED]> wrote: > > > Hi there > > > A couple weeks back I evaluated Django under Python 2.4. I followed > > the installat

Re: how to get a reference to a authenticated user

2007-02-20 Thread Benedict Verheyen
Russell Keith-Magee schreef: Thanks for the answers (super quick !) Russell en Honza. I'll try it out at once, Thanks, Benedict --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: how to get a reference to a authenticated user

2007-02-20 Thread Honza Král
On 2/20/07, Honza Kr�l <[EMAIL PROTECTED]> wrote: > On 2/20/07, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > i have some tables that i want to link with an authorized user. > > Right now i use the login mechanism of django. > > > > 1. Is it possible to specify a foreign_key to t

Re: how to get a reference to a authenticated user

2007-02-20 Thread Russell Keith-Magee
On 2/20/07, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > > Hi, > > i have some tables that i want to link with an authorized user. > Right now i use the login mechanism of django. > > 1. Is it possible to specify a foreign_key to the auth_user database? Yes. from django.db import models from d

Re: how to get a reference to a authenticated user

2007-02-20 Thread Honza Král
On 2/20/07, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > > Hi, > > i have some tables that i want to link with an authorized user. > Right now i use the login mechanism of django. > > 1. Is it possible to specify a foreign_key to the auth_user database? > If not, what is the best way to have a "u

Re: Database changes

2007-02-20 Thread Honza Král
On 2/20/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 5:27 pm, "Lawrence Oluyede" <[EMAIL PROTECTED]> wrote: > > > All I can think of is to create a new model, say Poll1, with the > > > correct fields, do a syncdb, write and execute a python function to > > > transfer the data from Po

how to get a reference to a authenticated user

2007-02-20 Thread Benedict Verheyen
Hi, i have some tables that i want to link with an authorized user. Right now i use the login mechanism of django. 1. Is it possible to specify a foreign_key to the auth_user database? If not, what is the best way to have a "user" field in a table that refers to a logged in user? 2. How can i g