Re: Account verification

2024-05-13 Thread Anthony Flury
Your register view is setting is_active to True - regardless of email
verification.

Remember that the email confirmation will happen asynchronously to the
registration.

What I do is have a separate table that records that a user needs to
complete the verification process.
So registration sends the email (with a link) to the user and adds a record
to the verification pending table.

I then have the verification view which sets the user to be Active and
deleted the record in the pending table.



On Mon, May 13, 2024 at 1:27 PM Kennedy Akogo 
wrote:

> I'm attempting to implement a registration system with email verification.
> While the email verification functionality is working - sending an email to
> the user for verification - I'm encountering an issue where users are able
> to log in even without verifying their email addresses.
>
> My goal is to restrict login functionality for users who haven't verified
> their email addresses. In other words, users should only be able to log in
> if they have completed the email verification process.
>
> Please advise ,I have attached images of the login and register view
>
>
> --
> 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/CAJBDwusqGZXgHHg55uOvh_9h1VB8D3o1pxfLPcaJTJHViXrwZg%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/CAN0Bb7eQQ76s_VL2z%2BSc%3DEfHH%3DxqRePsp9Ph8teC2KN2ZqjF2w%40mail.gmail.com.


Serving static files with whitenoise

2024-05-13 Thread Richlue King
Hi, I'm trying to upload my project to render.com and I need to set up the 
static files with whitenoise. However, when I run collectstatic, I keep 
encountering this error:

Post-processing 'assets\css\bootstrap.min.css' failed!

raise ValueError(
ValueError: The file 'assets/css/bootstrap.min.css.map' could not be found 
with 
Could somebody please help me with this?

-- 
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/75882c41-d554-462a-96f5-d853bc3125a1n%40googlegroups.com.


Re: very urgent

2024-05-13 Thread Babatunde Mabinuori
Good day,
The error occurs because "usagers/login.html" doesn't exist in your 
template file or wasn't properly referenced. Kindly check the filename 
properly to see if it exist, the filename is correctly spelt and well 
referenced.
On Sunday, May 12, 2024 at 4:03:41 PM UTC+1 Yann wrote:

> Please does somoene can help me with this:
> [image: Capture d'écran 2024-05-12 091648.png]
>

-- 
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/ed4dc3aa-03fa-4589-b148-c881e216a4c3n%40googlegroups.com.


Re: very urgent

2024-05-13 Thread Agar Joshua
whats the folder structure for your templates?

On Sun, May 12, 2024 at 6:03 PM Yann  wrote:

> Please does somoene can help me with this:
> [image: Capture d'écran 2024-05-12 091648.png]
>
> --
> 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/8b6516df-3fa8-47a6-813f-8fb3c786a639n%40googlegroups.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/CALHJg5LP4TcO0ct%2BT6-%3D%2B1ckLd%3Dg7e8sC7g%3DmBPUf0OX5wKMrg%40mail.gmail.com.