Muflone
don't think) I love SQL, but the project has restrictions
The correct way is to use a fk which will do a left outer join
Georg
ok. Many thanks to you all
Georg
I'm going to think
E r
Is there any way to bulk measure the widget for CharFields in the Form class?
Anonymous
https://dpaste.org/1Qr49 so basically, I am supposed to get an audio file as the response from the "conver_audio_api" and then I need to process it and send it as my response from my view. For some reason, the audio file is not playable after I send the response and also has a bloated size than it is supposed to be Anyone can please help me, it would be really helpful Thank you
Charly
it directly returns the audio file,
As a download or as a response content?
Charly
as a response
So how it is returning a file?
Anonymous
So how it is returning a file?
[{"key":"Content-Type","value":"audio/x-wav","description":"Indicates the resource's media type.","enabled":true,"disableEdit":true,"info":"Indicates the resource's media type."},{"key":"Content-Disposition","value":"inline; filename=\"Eleven_labs_arnold_multilingual.wav\"","description":"Indicates if the response content is displayed in the browser or as an attachment that is saved locally.","enabled":true,"disableEdit":true,"info":"Indicates if the response content is displayed in the browser or as an attachment that is saved locally."}]
Anonymous
its the header, not the response body
Anonymous
Charly
Anonymous
Which API is it?
its the main api, where I am sending the request,
Anonymous
[{"key":"Content-Type","value":"audio/x-wav","description":"Indicates the resource's media type.","enabled":true,"disableEdit":true,"info":"Indicates the resource's media type."},{"key":"Content-Disposition","value":"inline; filename=\"Eleven_labs_arnold_multilingual.wav\"","description":"Indicates if the response content is displayed in the browser or as an attachment that is saved locally.","enabled":true,"disableEdit":true,"info":"Indicates if the response content is displayed in the browser or as an attachment that is saved locally."}] headers of the main api response
Charly
its the main api, where I am sending the request,
No, thats an external service right? Whioch one
Charly
https://docs.djangoproject.com/en/4.2/ref/request-response/#fileresponse-objects
Anonymous
you already sent that before
is there a way to add images in this group??
Charly
is there a way to add images in this group??
I don't know why you need an image to answer a simple question
Charly
https://docs.djangoproject.com/en/4.2/ref/request-response/#fileresponse-objects
You need to send a File-like objet, maybe something like FIleResponse(BytesIO(content))
Mohit
What is new in django5.0
Maxim
What is new in django5.0
read announce or changelog
KD
i have error in django-crispy-forms
DisboardTetta
Hello, how i can set null in django admin for: parent = models.ForeignKey('self', verbose_name='Parent product', on_delete=models.CASCADE, blank=True, null=True, default=None, related_name='variations') in django admin i not see expected nullable select
I’m
i have error in django-crispy-forms
We can't read minds yet, so see explain the problem at least... please -.-"
nhẫn
Hello everyone! I am currently working on an app that can facilitate cryptocurrency deposits onto a website similar to those sites which offer depositing funds by displaying a wallet address and a QR code for users to deposit money. I'm unsure what that is called or what technology is used to accomplish it. Could someone please enlighten me on what it is? Where can I find documentation about it? What technology is utilized to make this possible?
Kasra
Hi guys, I had an issue with html audio tag and it's source which is given to it by django, for smaller files everything works fine but for larger files the seek function of the audio doesn't work properly, my files are not corrupted and are font btw, what is causing the issue?
Cute
Hi guys I am trying to use webdriver in django when i download and run it locally its working fine but when i deploy it to azure am not able to set the path. Can anyone help me with this
Anonymous
Hi guys what the best cloud to deploy Django projects
Believe
can you send your code
Believe
the same problem i was facing with the geckodriver but now it is resolved
Siddharth
Hi guys, I had an issue with html audio tag and it's source which is given to it by django, for smaller files everything works fine but for larger files the seek function of the audio doesn't work properly, my files are not corrupted and are font btw, what is causing the issue?
Here are a few things to consider and troubleshoot:HTTP Range Requests: Ensure that Django is supporting HTTP Range Requests. The seek function in HTML audio relies on the server's ability to handle Range Requests. This allows the browser to request specific parts of the file, enabling seeking.Content-Disposition Header: Check if the Content-Disposition header is set appropriately. For audio files, it's often beneficial to set this header to inline. This can be done in your Django view that serves the audio file.response['Content-Disposition'] = 'inline; filename="your_audio_file.mp3"
Ayass
Tried upgrade to django 5.0 and this assert going error Error Message: TypeError: SimpleTestCase.assertFormError() got multiple values for argument 'form'
Sammy
please i'm encountering this error in my django project while tring to integrate openai API into my django project to build a chatbot
Jamie
I want to use static files through the cdn link How can I achieve this
Jay
Hello fam👋👋 I have a number of Django endpoints that return reports/statistics about hospitals. E.g Number of beds, number of ICU beds, Number of doctors in all facilities within a certain county/borough/Sub-county The data is huge and takes long to load! Aside from the typical optimization techniques. I was thinking of: 1. Run the queries once.( E.g no_of_docs =11111) 2. Store the result of the first query "somewhere". 3. Incase there are any additions/ reduction in the DB create a DB trigger to update(no_of_docs= no_of_docs + 3) 4. For the next and subsequent queries return the value updated by the trigger.( Instead of making the querry) How would I go about this? Where would I cache/store the updatable fields?
Cute
chrome_options = Options() chrome_options.add_argument('headless') chrome_options.add_argument("--start-maximized") chrome_options.add_argument("user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3") chrome_options.add_experimental_option("prefs", { "download.default_directory": download_dir, "download.prompt_for_download": False, "download.directory_upgrade": True, "safebrowsing.enabled": True, }) # Define the Chromedriver path driver = webdriver.Chrome(options=chrome_options) This code is working good when i test in local but after deploying it to server its not working Not able to setup a path for webdriver in azure
Prasad
Hello all I have issue with microsoft azure sso Im using frontend is sap ui5 Backend is django I have done authentication separately done both The problem is how to get access key from front-end and validate user. Could anybody please help me in solving the issue
Y
I create a project login or signup page Now I want if any user will signup the message will b show on my email address, new user add How can I do this ??? I try from you tube but it's not work
NDev
With over a decade of experience as a senior full stack developer, I'm confident in my ability to deliver 100% satisfaction. I'd gladly share my resume with you. If there's a project where I can be of assistance, please don't hesitate to reach out.
Shivam
Someone plz help me with my django project it showing server error 500 when I upload image to predict plant disease
Shivam
Im rookie in django and not getting how can I resolve it 😥
nyctophile
Serv
Hello, guys. Attention, please. I am learning django and I dont know how upload a few images in model field. Help me. This is my code, for ex. model.py class Profile(models.Model) name = models.CharField() about = models.TextField() image = models.ImageField(upload='', blank=True) forms.py class ProfileForm(forms.ModelForm) class Meta: fields = ('name', 'image', 'about')
Believe
I need an advice. If i created a custom user model using abstractbaseuser then can i used Django rest framework authentication in that model or do i need to create new authentication function
Lords
Guys I am looking to build small search engine
Lords
First we will build the backend and with the help of backend flow we can build frontend
Lords
Is it work
Lords
Angular with restframework
Yogesh
Why don't you go with node?
Maxim
Angular with restframework
sounds like off-topic
Lords
Why don't you go with node?
I have knowledge on rest
Yogesh
Use your knowledge of rest in node express
Yogesh
React node is same on js
Siddharth
Angular with restframework
It will work but no need for angular
refleks1a
Hello everyone, I am trying to connect postgresql to my django project, but i get this error: django.db.utils.OperationalError: connection to server at "localhost" (::1), port 3306 failed: received invalid response to SSL negotiation: I ,when I try to run local server
refleks1a
Does anybody know solution to this problem?(Thx in advance)
refleks1a
Now I get: django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
Muflone
wym?
The message asked you something
refleks1a
you mean this: Is the server running on that host and accepting TCP/IP connections?
Muflone
This is the question