Hello Carl,
I really appreciate your comments and I agree with you. I'll put here soon
the code I'm writing, maybe this can be helpful for others too.
Thanks!
Em sexta-feira, 29 de maio de 2015 18:53:25 UTC-3, Carl Meyer escreveu:
>
> Hello Carlos,
>
> On 05/29/2015 03:19 PM, Carlos Ribas wro
Hello Carlos,
On 05/29/2015 03:19 PM, Carlos Ribas wrote:
> Hello,
>
> I have to confess that I did not understand your suggestion. How this
> will help me to reverse the logic of my system? I mean, instead of User
> with or without a profile (the Person class, in my case), I want a
> Person with
Hello,
I have to confess that I did not understand your suggestion. How this will
help me to reverse the logic of my system? I mean, instead of User with or
without a profile (the Person class, in my case), I want a Person with or
without a User.
Thanks anyway
Em quarta-feira, 27 de maio de 2
Hi,
Try this views.py
from django.contrib.auth import authenticateuser = authenticate(username='',
password='secret')if user is not None:
# the password verified for the user
if user.is_active:
print("User is valid, active and authenticated")
else:
print("The passwor
hi ,
Try to use the django administration to create the user authentication with
admin.py,views.py and forms.py
try by using this link:
https://docs.djangoproject.com/en/1.8/topics/auth/default/
On Wednesday, May 27, 2015 at 9:24:59 PM UTC+5:30, Carlos Ribas wrote:
>
> Hello All,
Hello All,
I am currently extending the existing User model to store additional
information. So, basically I have:
# models.py
class Person(models.Model):
user = models.OneToOneField(User, verbose_name=_('User'))
zipcode = models.CharField(_('Zip Code'), max_length=9, blank=True,
null=T
6 matches
Mail list logo