Antuane
I have a project in django deployed with apache, every is fine, but i got error when i have to open media file. if i set the setting with debug=true everythig work fine
Anonymous
Hey everyone, just a question outta curiosity... Can we embed webrtc api on django to start voice communication?
Aleksandr
Hey people. Can you help me with drf? How can I return from DRF api a JSON response of desireable format? class EquipmentViewSet(viewsets.ModelViewSet): queryset = Equipment.objects.all() serializer_class = EquipmentSerializer def list(self, request, *args, **kwargs): return Response({ 'cv_valves': self.queryset.filter(equip_type='cv_valve'), 'pr_valves': self.queryset.filter(equip_type='pr_valve'), })
Aleksandr
This variant returns an error. Object of type Equipment is not JSON serializable
Fady samy
Good evening, people. I made the invitation code. And I want to give a reward to the one who invited him to his friend. I want to add a certain field in the models.
Fady samy
Can anyone help me?
Anonymous
from django.http
Aleksandr
I tried but I failed. Is there any pattern for returning drf jsob of desirable format?
Anonymous
Can anyone help me?
You can create a model for that with fields: user and invitation_code Or you can directly add invitation_code field to your user model
Fady samy
You can create a model for that with fields: user and invitation_code Or you can directly add invitation_code field to your user model
I've already created a field for it, but I want when someone records through the user's code. Gives the user who sent the code and invited a new person a specific point bonus
հօรรεiռ
hi i want to separate admin and site users db table how can i do it?
Anonymous
Hello everyone, as I promised that when I will find a solution about building a web application using Docker, Django, React and Postgresql, I will publish that solution. Here is the starter project for creating that project ready to modifications and also to deployment (specially on Heroku) Github Repo: github.com/Elkarouani/Dockerize-django-boilerplate Check it out, fork it, leave a star, use it, and any comment or contribution will be helpful for everyone.
ken
not directly related to django... but anyone using sublime text editor for (django) programming? any other terminal/cmd plugin apart from terminus??
Banjo
Hello guys I'm on a project and i need a way to get a django form as a response to a fetch request or maybe to re-render my template with the context dictionary updated with the form in it. I want to add the form to a modal box when the button is clicked. Thanks guys
V4RI4NT
V4RI4NT
if i click on add button then it opens the modal correctly but if the scenario for update it shoud take the regarding pk and do not reder to page but open same modal with data
Anonymous
if i click on add button then it opens the modal correctly but if the scenario for update it shoud take the regarding pk and do not reder to page but open same modal with data
For that, you can append that particular data using ajax call, for example when you click to open modal assign ajax call which will go to your django view and check if that particular Id contains data or not. And if data exists send that data in ajax response. And then append it in particular input of it.
Anonymous
Wait
Anonymous
https://stackoverflow.com/questions/54158459/django-how-to-use-modal-as-a-form-to-update-an-object
Sumit
Hi, In the profile model I have city, region and country as model , I am providing it to be chosen as Chainned dropdown list. But when I am updating it is happening but not seeing in the form . I know this is happeinig because of chained dropdown but I want that it should be shown there too. How can I do this.
Haleem
Any good mobile django project editior app for Android ?
Naol
acode with termux
^o^
I have 14 Boolean fields in a model. How to find the count of False values and display it in the template listing table along with other values
Anonymous
I could do that but the data is intended to fill a form created in django as a model form so it's quite difficult
I am not able to get what exactly you want to do. You can dm me with issues you are having.
Banjo
Good morning folks, sorry i keep running into bugs So, i have a form with a foreign key field that i converted to a text input widget, but the form is not passing validation, error is saying that the input is not part of available choices Help guys
Banjo
I am not able to get what exactly you want to do. You can dm me with issues you are having.
Thanks for your help bro, but the app has too much bugs and this is the least. I'll just make templates for the form instead. Not giving up though. I'll research further on this Thanks bro 😘😘
Anonymous
I have 14 Boolean fields in a model. How to find the count of False values and display it in the template listing table along with other values
from django.db.models import Q ModelName.objects.filter( Q(FieldName1=True) | Q(FieldName2=True) | Q(FieldName3=True) ).count() I think this will work
^o^
Thanks 👍
Anonymous
Thanks 👍
Just replace true with false
^o^
👍
Ekta
Can anyone help me to build zoom clone using django
Ekta
How I can implement video call using django
david john
Hi, I just started studying Django last week. Check if your app is registered in settings.py Make sure you import the 3 models in init.py
david john
Doragonsureiyā
Hi! This group is English-only. Please, translate your message into English and delete the non-english message. Or move to a group speaking your language (type "!ol" to see the list). Thank you.
Jimmies San
English only please. Thank you people
Ali
English only please. Thank you people
Bro i just told him that this is english group.
Anonymous
Hello guys Do you have any django online free course?
Naol
you can find plenty on youtube
190030201__sasi
Brother i am trying to connect my html form to database all connections are made perfectly i have done this in django interfqce but i don't why it is showing error if possible can you help me any one?
Gürol
Hi guy Itry Filter Product Category but category is a many to many field how canı filter? yhx
Anonymous
Login_required not working???
Sumit
Hi, favicon icon seems very small in my website.
Anonymous
Please, I want to implement a function that runs... With second in my Django project ...in such a way that once an investment is initiated, I will run with the duration of the investment plan and counts the investment percentage per second, and return the profit at the end of the investment plan to the user balance
Anonymous
Like its an investment plan project that returns the dividend to the user account balance after the period of the investment days
Sumit
i am using <link rel="shortcut icon" type="image/png" href="{% static 'images/logo-m.png' %}" />
🐼🖤
Hello everyone, I had a question from Django. Is there a simpler way to use data from the html file?
Suganesh
Hello, I need Django Developers with paid task (only for RestFramework). Interested guys DM me.
Doragonsureiyā
Hello, I need Django Developers with paid task (only for RestFramework). Interested guys DM me.
Rule 🔟: Job offers are only allowed in the offtopic chat - @PythonOfftopic. To avoid being marked as spam, make your offer include skillset/techstack, salary/reward, contact information and a brief description of what work you want done.
Yash
I am getting the error in terminal that django-admin not defined
Yash
What to do
david john
I am getting the error in terminal that django-admin not defined
Have you installed python and django via pip?
Aditya
Then you might have to activate the virtual env
Aditya
R you able run your project?
Yash
Nope
david john
Yea
Are you using Windows OS? Make sure the python path is in PATH environment variable.
Yash
django-admin is not recognized as an internal or external command
Anonymous
Have you installed django?😅