Re: How can I get a message from views.py ?

2018-02-19 Thread Mike Ru
It's cool. Thank you! понедельник, 19 февраля 2018 г., 15:21:31 UTC+3 пользователь Etienne Robillard написал: > > Check this out: > https://stackoverflow.com/questions/20306981/how-do-i-integrate-ajax-with-django-applications > > Etienne > > Le 2018-02-19 à 07:12, Mike Ru

How can I get a message from views.py ?

2018-02-19 Thread Mike Ru
I don't get how to do it. I need to display a message "Hello world" using framawork messages with Jquery/Ajax I can do it without Jquery/Ajax but it's not good. The user clicks the link and depending on a condition or to send him according to the reference or to display the message without

Re: Two forms in one template.

2017-11-15 Thread Mike Ru
Thank you so much! среда, 15 ноября 2017 г., 6:29:57 UTC+3 пользователь Mike Ru написал: > > How can I pass two forms(registration and login) in one template? I'm > using 'registration' and it's using different templates. For registration > it's using 'registration_form.html and fo

Two forms in one template.

2017-11-14 Thread Mike Ru
How can I pass two forms(registration and login) in one template? I'm using 'registration' and it's using different templates. For registration it's using 'registration_form.html and for login it's using login.html. How can I pass a login form in modal window inside registration_form.html. In

How can i add one point to user after to press the button?

2017-04-20 Thread Mike Ru
I have Model. class UserProfile(models.Model): user = models.OneToOneField(User, related_name='userprofile') points = models.IntegerField(default=0) city = models.CharField(max_length=30, blank=True) about = models.TextField(blank=True) avatar =

python-social-auth-django for Twitter

2017-03-28 Thread Mike Ru
I'm using python-social-auth-django. I' trying to login with Twitter. It works. But some symbols are added to my nickname. Why is it happening? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving