Kamlesh
Hii
Kamlesh
I am facing server time out issue, can any one help me to fix it
Kamlesh
Please
William
Kamlesh
Kamlesh
Task*
Neo
Yes, it's a long running job
You have two solutions
One is to increase the timeout on your web server
The other is to pass off the job to a job scheduler like celery and then create a unique identifier to track that job's status and ideally your front end would check every now and then for a task report
Kamlesh
How to increase the time out in server
Kamlesh
Any idea
Denis
hi all. Can you please tell me how to implement link transitions without reloading pages? For example, on my site in the header there is a link to prices, how can I go through it without reloading the page itself. maybe there is some simple function
cj
Denis
Pulkit
Hello
I am working on a project, I am sending video links from media to the html template.
I want to check if user has watched that video completely without skipping or not.
How can I do that?
I know this can be done with some events in the video element of html
But I want it to be done from backend part because a user can change the code in client side.
I think streaming the video in small parts may work but I want a better solution.
Pulkit
Thanks for your response
I got the solution for client side on stack overflow.
Can we implement the same so that user can't make any changes to code? because I want it to be secure.
"javascript - How to check a user watched the full video in html5 video player without skipping any portion? - Stack Overflow" https://stackoverflow.com/questions/64566873/how-to-check-a-user-watched-the-full-video-in-html5-video-player-without-skippin
Pulkit
I am asking for a safe method. How can I implement this on the server side because I don't want it to be completely in client side.
Oleg
Guys, could you please point this out ->
How to bulk create polymorphic child models? I need to bulk_create submodel, but it raises an exception with something like: "Can't bulk create a multi-table inherited model"
btw, bulk_create of basemodel is ok
Pulkit
I don't understand 😅
Denis
Denis
thank you very much. at the moment both frontend and backend for my project are in django
Denis
Yes I know that
Saddam
I want to download file and also it should store in database is that possbl
saman
Html css bootstrap To start django Enough?
Mohamad
m
Dadakhon
Hello everyone. Can anyone please help me. I have an Lightsale from AWS. And i deployed a project with Docker and Nginx my Django app. How can i make the free ssl for my IP address?
Dadakhon
Its taking from me so much times. Pls help me
Jorge
You can use https://letsencrypt.org/getting-started/ to obtain a free SSL
m
Dadakhon
GoDaddy
Dadakhon
But i`m just using it for DRF for API responses
Dadakhon
I did not bind it to any domains
m
Securing a Containerized Django Application with Let's Encrypt | TestDriven.io
https://testdriven.io/blog/django-lets-encrypt/
m
Dadakhon
No, thanks. I hope it will help me. Thank you so much!
Rudraksh
Hi, I am new to Django. I am creating simple CRUD application in django. While Updating records, I was aware of Race Condition, so I implemented it with Atomic Transaction. When hundreds of user using the same data. Some of them get 'Database is locked' error. How to deal with this?
# This is Our Counter Function
def countIncrease():
with transaction.atomic():
c=Count.objects.get(pk=1)
c.count=c.count +1
c.save()
# Simulation of 100s of users
import requests
import threading
def load():
for i in range(0,10):
r=requests.get('http://127.0.0.1:8000')
print(r)
t1=threading.Thread(target=load).start()
t2=threading.Thread(target=load).start()
t3=threading.Thread(target=load).start()
t4=threading.Thread(target=load).start()
t5=threading.Thread(target=load).start()
t6=threading.Thread(target=load).start()
Few Users get [500]] error / ('Database is locked'). How to deal with this error? Please help me.
Alexey
@rudrakshradhe
Try to use select_for_update (note: doesn't work for SQLite)
def countIncrease():
c = Count.ojbects.select_for_update().filter(pk=1)
with transaction.atomic():
c.count=c.count +1
c.save()
Maxim
Fatima
How to make user blog approval from admin in Django?? Means to say ..when a user write a blog in blog site ,then firstly user get a approval from admin then show in blog site...
How to make it...??
Alex
Fatima
Fatima
Okay...
Rudraksh
amar
Anyone knows how to integrate razorpay with webhook in django rest framework
amar
If anyone knows please tell me how to do it
Maxim
amar
I got simple integration
amar
But want to integrate with webhook
Alex
amar
amar
Thank u
amar
But not getting things I am trying
k
I have a requirement, where my queryset should return none (objects.none()) . 
But it's serializer is a normal serializer (serializers.Serializer), and it has a method in it (serializermethodfield). 
Since the queryset is none the serializer or the methods in it are not reached. 
How can I make this work. Can someone please help me with this? 
PS:
The queryset has to be none, the serializer should be a normal serializer. These 2 can't be changed. 
Arya
Can anyone help?
What is CRM in django
Alex
is your app installed in settings? I
Faraaz
Yes Sir
Alex
sharing the entire error message will be helpful.
Faraaz
Okay sir just wait a moment
Maxim
Yes Sir
why did you answer?
the question wasn't for you
Faraaz
Faraaz
Alex
This is the error
seems like either path naming is wrong or the file structure is broken.
Faraaz
actually sir when I run the code without adding an extra path for 'about' page then it's working smoothly, it's only when I add another page then it shows this error
Alex
Alex
check settings that 'about' is added in INSTALLED_APPS
Faraaz
Sir is there any syntax to add 'about' in the installed apps or i have to just write 'about' in it
Faraaz
I tried adding it by writing 'about' but still not working
Alex
same error?