About extending User model

2010-03-11 Thread russianbandit
I'm using UserProfile to add one field to my users. However, I know that I must explicitly create UserProfile for each new user that registers. So, I make a UserProfile upon registration. Is UserProfile still the best way to extend the user model? What about the admin user, or users that the admin

Re: Handling input of external urls

2010-02-28 Thread russianbandit
lready using javascript. > > On Feb 26, 9:37 pm, russianbandit <russianban...@gmail.com> wrote: > > > This is a fairly general question, but what is the best way to handle > > and verify user entry of external urls? For example, if the user types > > in "google

Re: Handling input of external urls

2010-02-26 Thread russianbandit
Sorry for being sort of a newb when it comes to regex. But what exactly does that line do? On Feb 26, 3:59 pm, "ge...@aquarianhouse.com" wrote: > Check it with regex? > > re.compile("[a-z0-9]\.[a-z]{2,6}$", re.I) -- You received this message because you are subscribed

Handling input of external urls

2010-02-26 Thread russianbandit
This is a fairly general question, but what is the best way to handle and verify user entry of external urls? For example, if the user types in "google.com", django will try to render "http://localhost:8000/ users/google.com". That is obviously not what I want. I know that if the user types in