Re: How to create custom registration form in django rest api?

2020-02-17 Thread onlinejudge95
On Sun, Feb 16, 2020 at 3:19 PM maunish dave 
wrote:

> I am creating an health care app which need to include patients and
> doctors account, i have created Doctor model which have various info of
> doctor now i want a serializer  which maps this model to a proper html
> registration form.
>
You can use DRF serializers or use marshmallow

> My problem is that i can get a normal form rendered but it is only storing
> data to Doctors database but not creating a new user.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALpJ3uJj-hf-T5dx_5t6WXRqG_XRuex5r0MKE9E3gcHWCvFKDw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eTneAPrSYYv9%2BiY%3DUbGa3TKMNDvX7S8EZqXxH5qA%3D9gjA%40mail.gmail.com.


How to create custom registration form in django rest api?

2020-02-16 Thread maunish dave
I am creating an health care app which need to include patients and doctors
account, i have created Doctor model which have various info of doctor now
i want a serializer  which maps this model to a proper html registration
form. My problem is that i can get a normal form rendered but it is only
storing data to Doctors database but not creating a new user.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALpJ3uJj-hf-T5dx_5t6WXRqG_XRuex5r0MKE9E3gcHWCvFKDw%40mail.gmail.com.


Re: custom registration form

2019-03-25 Thread Sam W
Similar question  in Stackoverflow:

https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190

On Monday, March 25, 2019 at 7:52:57 AM UTC-5, Shubham Joshi wrote:
>
> How can I create sign up form in such a way that..once a form has been 
> filled and submitted by user (teacher / student) . The form should be sent 
> to the Admins email id , once s/he verified the sign up form , the user 
> should able log in
>

-- 
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/3df2988b-75fe-478c-9cd8-a6bf195f1ded%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: custom registration form

2019-03-25 Thread Mohamed Amin
O

On Mar 25, 2019 17:01, "Chetan Ganji"  wrote:

> There is a better way in django.
>
> Django provides admin panel for the admins, you just have to create one
> account for the admin as superuser. Email needs to be sent manually which
> can be done immediately after the form is validated.
> User model has "*is_active*" flag that can be used to limit access before
> the user is authorised by the admin. You will have to create an additional
> page to accept or discard the registered user.
>
> If you dont want to use default admin panel, you will end up writing CRUD
> for the admin panel. Workflow will still be the same as above.
>
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Mon, Mar 25, 2019 at 6:22 PM Shubham Joshi 
> wrote:
>
>> How can I create sign up form in such a way that..once a form has been
>> filled and submitted by user (teacher / student) . The form should be sent
>> to the Admins email id , once s/he verified the sign up form , the user
>> should able log in
>>
>> --
>> 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/67df728c-e165-4390-8fd8-9c5bc4ae1103%
>> 40googlegroups.com
>> 
>> .
>> 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/CAMKMUjsnb%3D48VXQGhCOc-HoQ2END9n_zL0TrJ_
> 9uQ7PZmdxtDw%40mail.gmail.com
> 
> .
> 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/CACMZ2LTgGBdFyMe76mvC91ZbM-xT-9UOzzGqS88xgZ_60JOM%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: custom registration form

2019-03-25 Thread Chetan Ganji
There is a better way in django.

Django provides admin panel for the admins, you just have to create one
account for the admin as superuser. Email needs to be sent manually which
can be done immediately after the form is validated.
User model has "*is_active*" flag that can be used to limit access before
the user is authorised by the admin. You will have to create an additional
page to accept or discard the registered user.

If you dont want to use default admin panel, you will end up writing CRUD
for the admin panel. Workflow will still be the same as above.



Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Mon, Mar 25, 2019 at 6:22 PM Shubham Joshi  wrote:

> How can I create sign up form in such a way that..once a form has been
> filled and submitted by user (teacher / student) . The form should be sent
> to the Admins email id , once s/he verified the sign up form , the user
> should able log in
>
> --
> 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/67df728c-e165-4390-8fd8-9c5bc4ae1103%40googlegroups.com
> 
> .
> 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/CAMKMUjsnb%3D48VXQGhCOc-HoQ2END9n_zL0TrJ_9uQ7PZmdxtDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


custom registration form

2019-03-25 Thread Shubham Joshi
How can I create sign up form in such a way that..once a form has been 
filled and submitted by user (teacher / student) . The form should be sent 
to the Admins email id , once s/he verified the sign up form , the user 
should able log in

-- 
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/67df728c-e165-4390-8fd8-9c5bc4ae1103%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.