Re: User filling form in login session if user logout and login again data of form not to lose.

2021-04-19 Thread Salima Begum
Hi sir. Thanks for the response but I did not get this. Can you please send me any example resource On Mon, Apr 19, 2021 at 11:20 AM boyuanl...@gmail.com wrote: > You can do that by calling an endpoint in JavaScript. So when the field's > been changed, automatically called the endpoint in

Re: User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread boyuanl...@gmail.com
You can do that by calling an endpoint in JavaScript. So when the field's been changed, automatically called the endpoint in Django and store it into the database. When a user's logged back in, just render the existing data if there's any. On Sunday, April 18, 2021, 10:09:29 PM PDT, Salima

User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread Salima Begum
Hi all, Here we are trying. While user enters a value in form input fields the value should not clear if user logout the session and navigate from one page to other. After filling the form in django if user fills some form fields and suddenly user logout and if user login again then it should

Re: Form to login

2015-11-05 Thread Dariusz Mysior
Thank's I have it! W dniu środa, 4 listopada 2015 06:51:02 UTC+1 użytkownik Dariusz Mysior napisał: > > I try do login view and I find it on > > https://docs.djangoproject.com/en/1.8/topics/auth/default/ > > from django.contrib.auth import authenticate, login > > def my_view(request): >

Re: Form to login

2015-11-04 Thread victor menezes
Looks like you are not making anything very custom on you view so maybe would be easier/better to use the buitin views from django auth. on your urls.py you can do: from django.contrib.auth import views as auth_views urlpatterns = [ ... url(r'^login/', auth_views.login), ] On your

Re: Form to login

2015-11-03 Thread Dheerendra Rathor
Django do have built-in forms. Take a look here https://docs.djangoproject.com/en/1.8/topics/auth/default/#module-django.contrib.auth.forms On Wed, 4 Nov 2015 at 11:21 Dariusz Mysior wrote: > I try do login view and I find it on > >

Form to login

2015-11-03 Thread Dariusz Mysior
I try do login view and I find it on https://docs.djangoproject.com/en/1.8/topics/auth/default/ from django.contrib.auth import authenticate, login def my_view(request): username = request.POST['username'] password = request.POST['password'] user = authenticate(username=username,

Re: djano user registration form and login(full example)

2013-04-17 Thread sachin
Hello again, In extended auth user model, is there any *way to handle unique fields with django forms*. Lets say I have model like: class UserProfile(models.Model): user = models.OneToOneField(User) phone_num = models.BigIntegerField(null=True, unique=True) def __unicode__(self):

Re: djano user registration form and login(full example)

2013-04-17 Thread isachin
Thanx, Btw, I solved it by creating an instance of get_profile() and then saving user and profile separately. here is the code snippet of *forms.py* if commit: profile = user.get_profile() profile.serial_num = self.cleaned_data['serial_num'] profile.save()

Re: djano user registration form and login(full example)

2013-04-16 Thread Avnesh Shakya
This error is occur when you're saving the member, not the user. When creating the member, you are not assigning the user. On Wed, Apr 17, 2013 at 10:45 AM, sachin wrote: > I m still stuck with > > Exception Type: IntegrityError > Exception Value: column user_id

Re: djano user registration form and login(full example)

2013-04-16 Thread sachin
I m still stuck with Exception Type: IntegrityError Exception Value: column user_id is not unique Whenever I try to save, it throws the above error. I have attached files for reference, can someone help ?? On Saturday, April 6, 2013 7:07:32 PM UTC+5:30, sachin wrote: > > Thanx

Re: djano user registration form and login(full example)

2013-04-07 Thread Thomas Rega
Am 06.04.2013 um 16:30 schrieb Shawn Milochik: > I've seen some situations where it looked like signals are received multiple > times. > > However, you can easily fix that by checking for the existence of the user in > your function, or a try/except that handles the integrity error. or by

Re: djano user registration form and login(full example)

2013-04-06 Thread Shawn Milochik
I've seen some situations where it looked like signals are received multiple times. However, you can easily fix that by checking for the existence of the user in your function, or a try/except that handles the integrity error. Also, if you're starting a new project, consider upgrading to Django

Re: djano user registration form and login(full example)

2013-04-06 Thread sachin
Thanx Shawn, * * UserCreationForm really helped. Now I have a different problem, I'm trying to add custom feilds to *auth user *using storing-additional-information-about-users . But now I m getting

Re: djano user registration form and login(full example)

2013-04-01 Thread Alexis Roda
Al 01/04/13 21:11, En/na sachin ha escrit: Hello, I'm just starting with Django. I want to create a user registration form which will take input like username, password, first and last name, email, address etc. using the same information I want to send a conformation mail to user and

Re: djano user registration form and login(full example)

2013-04-01 Thread Shawn Milochik
Don't even worry about factories. They're for when you want a bunch of forms for the same model on the page at once. Use the UserCreationForm in django.contrib.auth.forms. It only accepts a username and password, so you can either subclass it to add the fields or make your own form and add it to

djano user registration form and login(full example)

2013-04-01 Thread sachin
Hello, I'm just starting with Django. I want to create a user registration form which will take input like username, password, first and last name, email, address etc. using the same information I want to send a conformation mail to user and authenticate her/him. I have read Django docs, from

Styleled Form in login generic views

2011-01-29 Thread Daniel Corbe
Hi, How to get a 'class=inputStyle' on a form in generic login view? -- Daniel Corbe Hahne Latorre dan...@corbe.com.br 55 48 9618-5115 skype: daniel_corbe -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,