Re: Send email - user data for complete registration

2017-11-30 Thread Mike Morris
Earlier comment is correct that you shouldn't email a password. It's actually not necessary, or even possible. The stored version is a "one way hash" -- which is not reversible; there's no way to get the password from the hash -- and you (should) only have access to the hashed value.

Re: Send email - user data for complete registration

2017-11-30 Thread Jason
you should *never* send anything password related via email to the user. doing so is highly irresponsible. furthermore, the plain password is never stored in the database, only the encrypted hash of it. -- You received this message because you are subscribed to the Google Groups "Django

Django forms and django models

2017-11-30 Thread Andrea Cristiana Adamczyk Abascal
I have an attribute of a model called "options" that is an array of prayers that are entered through textinputs. How can I declare this attribute in the model and what widget may I use in the model form? thank you! -- You received this message because you are subscribed to the Google Groups

How do I customize registration form HTML?

2017-11-30 Thread Tom Tanner
The HTML for the user registration form looks like this: {% csrf_token %} {{ registration_form.as_p }} Register I understand that the `registration_form.as_p` line automatically gives me the form's HTML. But I'd like to customize that HTML. For instance, I'd like the label text to be

why is `WebsocketMultiplexer.group_send` a class method?

2017-11-30 Thread Richard Tier
why is `WebsocketMultiplexer.group_send` a class method? Currently it's the following: @classmethod def group_send(cls, name, stream, payload, close=False): message = cls.encode(stream, payload) if close: message["close"] = True

Send email - user data for complete registration

2017-11-30 Thread Richard Maceček
Hello, after successful registration of the user, how to send personal information (password) to the user in emails? I personally use send_mass_mail. But I have a problem that the password is not in text, but it's in the "encrypted" form. I do not know how to send user's data but now they need

Re: Django with apache and php

2017-11-30 Thread Jason
you'll need to set up a virtual conf file. https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/modwsgi/ has good directions. You can have it run on the same port, just set the URL path differently to point to django. Eg, using the Alias directive

Re: How can i use live reloader in django. Please can anyone help me?

2017-11-30 Thread Jason
assuming you're talking python code, the django dev server, with the runserver command, is live reloading. If you're talking about javascript, that is something entirely different. what commands are you executing? -- You received this message because you are subscribed to the Google Groups

Django with apache and php

2017-11-30 Thread Julián Melero Hidalgo
Hi all.I'm new in Django. I have a question.I have a server with apache and php. I would like to use django in this server.How can I config django in apache?Can I use django in the same port that php projects? How?Thank you a lot!Julián Melero. -- You received this message because you are

How can i use live reloader in django. Please can anyone help me?

2017-11-30 Thread Ashok R
How can i use live reloader in django. Please can anyone help me? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-30 Thread ankita gupta
On Wednesday, 29 November 2017 08:24:26 UTC+5:30, Tom Tanner wrote: > > My `forms.py` looks like this. (I want user's email to be their login > username. > from django.utils.translation import ugettext_lazy as _ > > from django import forms > from django.contrib.auth.forms import

Re: How to configure NGINX to run Django app in a subpath?

2017-11-30 Thread Luca Moiana
Nothing wrong, but havign set up the system I didn't want to change software cause I'm not that savvy. Anyway, I ended up hiring someone on Fivrr and got the job done. I was closed, but not closed enough Thank for you help !!! Il giorno mercoledì 29 novembre 2017 22:56:37 UTC+1, Etienne

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-30 Thread Matemática A3K
Tom, - You shouldn't use Model=User (or the Meta) as it was a ModelForm, it is just a regular Form - AuthenticationForm takes request as its first parameter: def login_register(request, template="templates/login_register.html"): if request.method == "POST": login_form =