Re: best approach for using email as username

2009-10-30 Thread wancharle sebastiao quirino
Hi,

The unique problem is username = email.

You could create auth backend for login with email but email != username

I use:
 http://code.google.com/p/django-profile/

In django-profile login is with username and email is opcional...
But i add email auth backend and user can login with your email if
registred.



ps.: i dont speak english

2009/10/29 Adrián Ribao 

>
> Hello,
>
> I need to use the email field as the username. I neet these:
>
> * Email must be unique
> * I should authenticate against the email
> * The admin should work I I should be able to create users with
> username = email address.
>
> I have a custom authentication method but I need more. I need to tell
> Django to make the email unique, and I need to login and create users
> from the admin with the @ character.
>
> What is the best approach for this?
>
> I've been searching in google but no one of the solutions can
> accomplish the three points I need.
>
> Thank you!
>
> Adrian.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: update() (for bulks) is a atomic operation?

2009-10-27 Thread wancharle sebastiao quirino
thanks,
A friend recommended the django-debug-toolbar but did not pay much
attention.
Now I have a reason.

Thanks


2009/10/25 Mikhail Korobov <kmik...@googlemail.com>

>
> Yes, it's a single query.
>
> Take a look at django-debug-toolbar. It can display all SQL queries
> that was executed during request/response so you'll always be sure
> what's going on.
>
> On 26 окт, 03:12, wancharle sebastiao quirino <wancha...@gmail.com>
> wrote:
> > Hello,
> >
> > I currently am using raw sql to make an atomic operation of the following
> :
> >
> > UPDATE table SET field1 = 0, flag = 'A' WHERE flag = 'I'
> >
> > Reading the documentation I realized I could do this:
> >
> > Table.objects.filter(flag='I').update(field1=0,flag='A')
> >
> > I want to make sure that this is a unique operation. (to avoid problems
> of
> > parallelism and concurrency)
> >
> > Someone could confirm me this? Apparently the limitations imposed by the
> > documentation already gives a hint that is a single query but I want to
> be
> > sure.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



update() (for bulks) is a atomic operation?

2009-10-25 Thread wancharle sebastiao quirino
Hello,

I currently am using raw sql to make an atomic operation of the following :

UPDATE table SET field1 = 0, flag = 'A' WHERE flag = 'I'

Reading the documentation I realized I could do this:

Table.objects.filter(flag='I').update(field1=0,flag='A')

I want to make sure that this is a unique operation. (to avoid problems of
parallelism and concurrency)

Someone could confirm me this? Apparently the limitations imposed by the
documentation already gives a hint that is a single query but I want to be
sure.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: SVG and Django

2009-10-16 Thread wancharle sebastiao quirino
try accessing the url http://127.0.0.1:8000/radial2.svg in firefox and see
what happens.

Probably you have not set the right url for static files.


2009/10/16 claytonbonelli 

>
> I have a HMLT file with a SVG embed tag, like this:
>
> 
>   
>   
>  
>  type="image/svg+xml"
>pluginspage="http://www.adobe.com/svg/viewer/install/;
>  />
>  
>   
> 
>
> This file works fine when I opened it with firefox, but dont work if
> the file is served by django server. The SVG image (radial2.svg) is
> not displayed.
>
> Any help?
>
> Thanks
>
> Clayton
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Message Box with yes and no option ( confirm a deleting operation )

2009-10-03 Thread wancharle sebastiao quirino
sory my english i speak portuguese.

msgbox are made with javascript and not with python, or php or ruby

you can create a template tag to do it for you but this is not the
responsibility django or python. Is responsibility template.

2009/10/2 Nicu Marcu 

> Hello,
>
> There is something similar in django and Python with msgbox? I need to
> have a confirmation before doing a deletion.
>
> --
> All the best,
>
> Nicolae MARCU
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---