Kamlesh
Hii
Kamlesh
I am facing server time out issue, can any one help me to fix it
Kamlesh
Please
Neo
I am facing server time out issue, can any one help me to fix it
Do you have a very long running task that you aren't delegating to a job scheduler
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
Neo
How to increase the time out in server
Google it. Pretty simple. And out of the scope of django
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
it turns out for my project you need to install django rest?
if you want to build a REST API in an easy and fast way, yes, install django-rest-framework
Denis
if you want to build a REST API in an easy and fast way, yes, install django-rest-framework
Thanks a lot. I just started getting to know Django, so questions like this. sorry if that
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 😅
Ahmet
guys, does anyone have an article on my question? I installed rest but I don't know which function to use to solve my problem
Rest brings an other approach to your problem. First you need to understand frontend - backend speration. Then you should choice a front end framework to create user interface (which can be react, angular, vue or some other js libraries or framework). https://www.geeksforgeeks.org/frontend-vs-backend/ Then you can read the rest framework documents to learn more about drf. https://www.django-rest-framework.org/
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?
m
Is it strange to put some code in the __init__.py file of the project? Where do I have to put code that must be executed before anything else?
And you can use all list to define modules to be imported and also import some modules in init.py so user can import them from a root module and also the child module.
m
I want to download file and also it should store in database is that possbl
What kind of file, I don't mind saving file in database is efficient, you can save file on disk then save its path in database
saman
Don't forget python
I forgot to say, python I know)):😂
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
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/
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()
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...??
Fatima
Okay...
amar
Anyone knows how to integrate razorpay with webhook in django rest framework
amar
If anyone knows please tell me how to do it
amar
google razorpay django drf
I tried but not getting actual thing that i want
amar
I got simple integration
amar
But want to integrate with webhook
Maxim
But want to integrate with webhook
google razorpay django drf webhook
amar
google razorpay django drf webhook
Thank u but can you tell me how can i get razorpay signature in backend
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
Mirco
Can anyone help? What is CRM in django
Not related to Django CRM is an entity itself despite the framework You can build a CRM with 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
sharing the entire error message will be helpful.
https://linkode.org/#AZOmOQLvXLNudoVlo95tu5
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
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?
Mirco
https://linkode.org/#AZOmOQLvXLNudoVlo95tu5
You don't have any package called about with urls.py inside So your error will appear to the infinite and beyond unless you create the right file structure