Feb 29 04:15
Have you fund the solution for your issue?
Feb 28 08:06
Try to debug your code on this line download_token = get_object_or_404(BrochureToken, token=token) if this fails you'll see 404 if it's not failing then there's issue with nginx.
Feb 28 08:05
I think your token is invalid or maybe there's something wrong in your code because It's giving you 404 from gunicorn means nginx accepting the request but gunicorn returning 404 error
Feb 28 08:00
Nginx logs are not updated it's showing 1 page need 49 page log
Feb 27 15:24
The screenshot you've provided it's only first page out of 49 you've to press end key to go to the end of the page & show me output
Feb 27 13:56
if there's permission related issue it will show in the logs
Feb 27 13:56
& provide the output
Feb 27 13:55
I mean check the old logs when you got 404 for both services gunicorn & nginx
Feb 27 13:54
Whats the status of gunicorn & nginx service try this command for gunicorn service log journalctl -u your_service
Feb 27 13:54
Is token same everytime you send an email?, try to visit url manually greate a BrochureToken & then type your url with newly generated token check if it's still giving you 404.
Feb 27 13:54
Have you set media configuration correctly?. You're using /api/filedownload/brochure/{token} but I don't see api mentioned anywhere in urls.py. Please provide relevant code in post
Feb 27 13:54
Check if your token saved in db & brochure_download_view(request, token) token in parameter are same
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Oct 13, 2023 12:03
Hi
 
Aug 29, 2022 15:04
I can't make duplicate answers so I've added my answer on this question
Aug 29, 2022 15:03
Check
Aug 29, 2022 15:03
Done
Aug 29, 2022 15:03
Don't
Aug 29, 2022 14:56
Hey sorry I bad you there was no need of asking new question UI was not clear to me that's why I told you to do it with Ajax but it was simple mistake I'll update my views.py code in both questions
Aug 29, 2022 14:52
Ok
Aug 29, 2022 14:50
Ok, Got it thank god you saved my time I was doing it in wrong way
Aug 29, 2022 14:47
so I can code according to it
Aug 29, 2022 14:46
You've added absent and present select tag inside your table in the same table you're looping over students so I'm bit confused about your UI it will helpful if you provide your UI ss
Aug 29, 2022 14:44
I'll share my code but I think your UI is bit confusing so you can update your code as per my answer
Aug 29, 2022 14:43
Hey can you show ss of you UI how it looks
Aug 29, 2022 14:37
wait 5 minutes I'll post an answer
Aug 29, 2022 14:37
now*
Aug 29, 2022 14:37
Yes, I'm doing it noe
Aug 29, 2022 14:35
Hello @Ajay sorry I was at work I'll do it now
Aug 29, 2022 14:33
Yes, sure I'll provide that but not in this question becouse it's contain too much code in my answer it will be greate if you ask new question
Aug 29, 2022 14:33
As I said above you've to write javascript which will collect id's of all selected students & after that you've to make ajax request so that it will send specific id's to server
Aug 29, 2022 14:33
So if you want to select indivisual students then you've to write javascript for that and have to make a ajax call
Aug 29, 2022 14:33
Yes, I got that but by default all studets are in your table so if you select absent it will set absent for all students in table if you want to absent specific students then you've to select indivisual student
Aug 29, 2022 14:33
by default every thing should be present only the student I make absent should be made absent - are you selecting students (eg. checkbox) to make them absent ?
Aug 29, 2022 14:33
So you wanted to add attandance for indivisual student from table of students ?
 
Aug 21, 2022 09:35
Both
Aug 21, 2022 09:34
Okk then check I'll add one more approch in my answer let me know it it works ?
Aug 21, 2022 09:33
Did it logged clicked ?
Aug 21, 2022 09:33
If you din't find solution I'll try to help you out as soon as possible
Aug 21, 2022 09:32
I'll connect with you afterword I've small work
Aug 21, 2022 09:31
or your loop is not woking
Aug 21, 2022 09:31
Hey it's hard to say but I think your button is not clickable
Aug 21, 2022 09:26
Okay
Aug 21, 2022 09:25
Did you used any preventDefault on buttons ?
Aug 21, 2022 09:07
ctrl+shift+r
Aug 21, 2022 09:06
Tyr to hard rfresh your browser
Aug 21, 2022 09:06
You've to give me full control I can't request for it
Aug 21, 2022 09:05
@muneermohd9690 No
Aug 21, 2022 09:04
And still I'm not able to type
Aug 21, 2022 09:04
I'm trying to drbug I don't get it why it's not working
Aug 21, 2022 09:03
I've disconnected