Si le but est simplement de faire plaisir a la base de données, il est
possible d'utiliser l'email comme nom d'utilisateur.

Pour le mot de passe, c'est une mauvaise idée. Mais c'est possible, par
exemple avec le module secrets en python 3.6

https://docs.python.org/3.6/library/secrets.html#recipes-and-best-practices

On Fri, Oct 19, 2018, 16:00 <fatoubinetou...@gmail.com> wrote:

> parce que je veux pas que le username soit créer manuellement mais
> automatiquement par random. Car ça serait difficile que pour chaque
> inscription je créer manuellement le username pour pouvoir lui envoyé dans
> son mail afin qu'il puisse se connecter.
>
> Le vendredi 19 octobre 2018 01:24:54 UTC, fatoubi...@gmail.com a écrit :
>>
>> Bonjour! Je voudrais lorsqu'un utilisateur s'inscrit avec ses
>> informations personnelles puis soumet le formulaire, je lui génère un nom
>> d'utilisateur et un mot de passe qu'on envoie dans son mail fourni.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/50fa5b8a-c5c3-4e64-aef3-53c6c1197d0b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/50fa5b8a-c5c3-4e64-aef3-53c6c1197d0b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEuG%2BTas5iXJaLObcpKW%2BS9aRmaiLROg7D5hjFi3tbKe-0ObDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to