pollo
How can i relate angular with Django
pollo
Mirco
Doragonsureiyā
Thanks
You're welcome! 😊
Anonymous
hello everyone. How do I write the data to the database that came from the post?
Sajjad
do you know why when we set
DEBUG = False
the app can't read static file and medias?
Elie
Sajjad
Alireza
Sajjad
Sajjad
can you help me?
Mirco
can you help me?
Read and study the topic into Django doc
https://docs.djangoproject.com/en/3.2/howto/static-files/
Alireza
how?
Your django project is deploying? Or in your pc?
Vasilii
how to run api test in DRF?
Hey It's
I am stuck with more challenge, just missing this one to complete the course and get a shiny new badge. Thanks for the help!
my model
http://linkode.org/#mKJfev57AB7C3L7LqvvpG4
my view
http://linkode.org/#iB5d106FtlRPcH2akw9K83
i want t get avarage rating from blog
Abhinesh
how to run api test in DRF?
for all apps coverage run manage.py test
if specific to app coverage run manage.py test appname
use coverage html for info
Vasilii
Vasilii
thank you
Vasilii
Abhinesh
Nadeem
Hi, am trying to stream video from client (html and Javascript) to backend (python and fastapi) real time using websockets and does some process and return the results to real time back to client while the video is still streaming, I managed to make it work when initially ran it but all of a sudden it became slow and am not getti g the desired results
Nadeem
Any idea how I can proceed??
Nadeem
It should be real time and video stream should be from client side
Anonymous
hey i am making react + django app
Anonymous
using rest_framework
Anonymous
but im getting 403 errors and not able to do post request to backend
Anonymous
i dont know why all things are coorect . i also cross checked urls and all things are ok
Optimus
Javlonbek Torajonov
how to use ChoiceField in django
Optimus
Javlonbek Torajonov
on selecting table
Optimus
you can use custom form
Optimus
or django form with widgeto
Optimus
or django model form with widget
Javlonbek Torajonov
Optimus
this
model form by default give select if fk field , if u want choice in char field use widget
Javlonbek Torajonov
Ben
Hey guys, I want a complete guide for what shoud I do before deploying a django project. Would you give me a source with a full list of tips and tricks
Elie
Ben
Thanks a lot
Ben
I have problem to set a price on my project, any idea where I can compare prices?
CY
Udemy
Ben
Isn’t it just for tutorial?
CY
Oh .. sorry I thought u created a video tutorial for your project
CY
My bad
Ben
That’s ok
Mohammed
Hello, I want to send notifications to my flutter app using Firebase Cloud Messaging
I want a complete guide To help me do it ,I tried to use fcm-django But I don't know how to use it
thanks in advance 🙏
Ben
CY
Check website that sells websites to people ... Just use Google search
Ben
Always the best option, but no luck this time
Anonymous
Farzin
HI, I have form with multiple fields some fields have multiple values because these fields are dynamic, like:
email = ['email1', 'email2', 'email3'],
question is how can I use Django Forms to validate these kind of fields
Mani
Hello, i have problem with heroku
My app name is :
orderchampion
Here's my procfile :
web: gunicorn orderchampion.wsgi
but it keep saying that it couldn't connect to my wsgi :(
I also added allowed host,idk what else to do
Anonymous
Anonymous
jūdê
jūdê
web: gunicorn orderchampion.wsgi --log-file -
Dk
How to generate dynamic qr code with Django template
Ɽ₳₲₦₳Ɽ ⱠØ₮Ⱨ฿ⱤØ₭
Can we do pagination of python lists in DRF,
I'm scraping data and creating list of JSON objects
I want to split my 50 results into 5 pages
Is this possible
Hernan
I ask them a question. I am using Crispy Forms, I have some fields that I set as readonly = True.
Although I see that the form field is disabled, the issue is that if I inspect the code and change the value forcibly when I submit the change it impacts anyway.
Does anyone think of how I can avoid that?
Ben
I want to add a py file to my django project which calculate the requested data before saving it to DB. Should I worry about conflicting as many users send requests at the same time?
Ben
Nadeem
Sergio
Hi people, Could anyone help me with that: TypeError: Expected a 'coreapi.Document'. I'm trying to use swagger, but I got this error. Thanks in advance
Leandro
Hello Guys, I need help with django pagination. I have a page witch return my list of results, but in next page dont return data. My endpoint is in a subpage, and the parameter of ?page=1 return error. The pagination that I created has a filter for search keywords.
Willian
Hello friends people, can you help me with django Channels?
Chikal
how to import choices outside of class in another models ?
example :
I have users.models.py
------------------------------------------------------------
from django.db import models
STATUS_ACTIVE = (
("1", "1"),
("0", "0"),
)
class Something(models.Model):
name = models.CharField(max_length=10, default='john')
...
------------------------------------------------------------
then I want to import the STATUS_ACTIVE to another models, in this example I want to import the choices in inventory.models.py
------------------------------------------------------------
from django.db import models
from users.models import STATUS_ACTIVE
...
-----------------------------------------------------------
but it display an error
ImportError: cannot import name 'STATUS_ACTIVE' from 'users.models' (C:\Users\xxxxx\yyyyy\zzzzz\users\models.py)
how to do it correctly ?
Sergio
Leandro
Sergio
It's nothing bro