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
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
հօรรε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.
Fady samy
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
Banjo
V4RI4NT
Anonymous
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
V4RI4NT
Anonymous
Wait
Anonymous
https://stackoverflow.com/questions/54158459/django-how-to-use-modal-as-a-form-to-update-an-object
Anonymous
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
Banjo
^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
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
Anonymous
^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
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
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
Naol
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' %}" />
Dennoh
🐼🖤
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.
Mirco
Suganesh
Yash
I am getting the error in terminal that django-admin not defined
Yash
What to do
david john
Aditya
Aditya
Then you might have to activate the virtual env
Yash
Yash
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
Yash
Yash
Anonymous
Have you installed django?😅
Yash