Pedro
Good morning, everyone!
I'm running celery django and every time I run my task, it finishes, but not all memory is returned to the system and this keeps growing indefinitely.
Does anyone know a way to debug or possible reasons?
Eric
Pedro
The pod starts with 250 to 300mb and now tun the script and go back to 550mb
Alexander
Hello, is anybody know, how to insert an update form in a list template? I have already add a create form in context as context["form"] = MyForm() and it works. For an update I need to use exactly the same form, but prefilled with previous data. I tried context["update_form"] = {
record.id: MyForm(instance=record) for record in self.get_queryset()
}
but thats doesn't work
Bhavin
I'm working on a Django and React project, but my API request to http://127.0.0.1:8000/api/chat/ is returning a 404 Not Found error. The route is defined in backend/urls.py and chat/urls.py. Can someone help me debug this?
hamid
hamid
Programmer_Mboa
Alexander
Use the same file but fix a field value on the forms.py the same way you add widget ...
Can you please explain?
I want to generate an "update form" with each list object
<ul>
<li>
Object 1
{{ form }}
</li>
<li>
Object 2
{{ form }}
</li>
</ul>
To be honest, I don't understand how to implement it in forms.py
Programmer_Mboa
Declare your fields. As per your models. This a fields.py
Alexander
Thank you, I will try 👌🏻
Maleficent
Do you have any notes to learn Django
Doragonsureiyā
Do you have any notes to learn Django
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Ibrahim Jamiu
Good day, is it worth it to learn DTL or should I just focus on DRF as a Django developer..?
Ibrahim Jamiu
GuriSandal
Hi, i am facing issue running Django app on server. When I open any it stop the server without any error show. Could anyone help me on this?
clouded
GuriSandal
I did
clouded
I did
Then there are errors.
GuriSandal
Problem is I there is no error
GuriSandal
It just stop server
GuriSandal
But migrations works fine
GuriSandal
Some time after performing system check... it stop
clouded
GuriSandal
INFO 2025-02-17 12:55:17,837 autoreload 24228 24644 Watching for file changes with StatReloader
DEBUG 2025-02-17 12:55:17,842 autoreload 24228 24644 Waiting for apps ready_event.
GuriSandal
after this there is no logs
Ainul
GuriSandal
Yes
Charly
Yes
Why you say it stops if it doesn't show a message suggesting it?
Charly
which server is?
GuriSandal
Windows server
cj
Aditya
I have setup the timezone to asia/kolkata in settings
And also set use tz = true
But still my celery is running on incorrect timming
Doragonsureiyā
GuriSandal
Damir
Shawna
Django Channel question 🙋♂️
how can a person subscribe to another person profile in Django channels ? receive update from the other user when he connected he sends the users subscribe to his profile update message
Shawna
hello is very appreciated it's being very confusing for me
Damir
Shawna
I reach somewhat a solution not sure if it's how it should be done
by adding user group to another user group I was able to listen on to changes
Programmer_Mboa
ßinary403
Hello everyone 👋... any open source project available?
Maxim
Mr
Any idea on the best os to host a django application
Doragonsureiyā
Any idea on the best os to host a django application
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django specific question, so delete your question here and move to the @PythonOfftopic group and ask there.
M. Hossein
I have an exam model and an attempt model. Each exam has a duration, for example, 30 minutes.
I want every attempt to automatically time out if its status is still "in-progress" after 30 minutes.
The solution I have in mind is to create a Celery task when each attempt is created, which will check after 30 minutes and mark it as "timeout" if it's still "in-progress."
Would you recommend this approach for a large number of exams? Is it reliable?
Shinny
https://dpaste.org/dGs50
Doragonsureiyā
The Inspired
The Inspired
hmm, but then again, that's extra code writing...
The Inspired
But I agree. it would work
Shawna
Hey, anyone know If Django is suitable as TURN/STUN Server for webrtc
.
from django.contrib.contenttypes.admin import GenericTabularInline from . import models class TagInline(GenericTabularInline):
model = Tagged_item
@admin.register(models.Product)
class ProductAdmin(admin.ModelAdmin): inlines = [TagInline] HEY I am encountering an error saying Tagged_item is not defined how can i resolve this without importing the Tagged_item which is on another app
Doragonsureiyā
The Inspired
.
The Inspired
Another app models
good.
so how do you import a model from another app?
in your case, if Tagged_item is inside your models, then how would you import it inside another app?
Denis
Is it possible to learn Django using only documentation?
The Inspired
Даниил
What should be learnt before learning django?
LUPIN
Sankalp
Charly
Denis
Denis
Denis
Denis
How did you study?