Re: Django Playing with API

2024-01-02 Thread Habibu Yasin
hi Ryan, thank you for responding , but I did find the solution was a typo I did misspell the something in the code On Tuesday, January 2, 2024 at 10:22:54 PM UTC+3 Ryan Nowakowski wrote: > Show your code > > > On December 31, 2023 7:35:52 AM CST, Habibu Yasin > wrote: > >> hi every one, >>

Re: HttpResponse works but HttpResponseRedirect does not

2024-01-02 Thread Mike Dewhirst
Merci AlexI'll have to try what you suggest - not with pandas because the csv part is working well - but perhaps assembling the response as a separate object and then trying to redirect back to the same URL. Might have to look at the Django source and try to comprehend what it is doing.CheersMik

Re: Hire remote Python codeer

2024-01-02 Thread 许三高
what done ? Ngaga Dancan 于2024年1月2日 周二下午2:02写道: > Good morning, Done Sir. > > On Tue, Jan 2, 2024, 06:25 Joseph Emeka wrote: > >> HI >> Good morning. If this position is still I with to apply for it. >> Find my GitHub link https://github.com/Amasiani >> >> On 24 Oct 2023, at 02:18, 许三高 wrote: >

Re: Hire remote Python codeer

2024-01-02 Thread 许三高
telegram @easychat6 ,or view my web easychat24.com to contact me Joseph Emeka 于2024年1月2日 周二上午11:25写道: > HI > Good morning. If this position is still I with to apply for it. > Find my GitHub link https://github.com/Amasiani > > > On 24 Oct 2023, at 02:18, 许三高 wrote: > > Hire remote Python codeer

Re: HttpResponse works but HttpResponseRedirect does not

2024-01-02 Thread Alex007 MULUMBA
import pandas as pd from django.http import HttpResponse # Assuming Django context data_frame = pd.DataFrame.from_records(data) data_frame.to_csv( "output.csv", index=False) # Save as CSV with open("output.csv", 'rb') as f: response = HttpResponse(f.read(), content_type='text/csv') response[ 'Conte

Re: HttpResponse works but HttpResponseRedirect does not

2024-01-02 Thread OSP PRO
One potential issue in the code is that the variable fname is being used in the Content-Disposition header, but it's not defined in the provided snippet. Make sure that fname is defined and contains the desired filename for the CSV file. Additionally, it's important to ensure that the make_csv fun

Django bugfix releases issued: 4.2.9 and 5.0.1

2024-01-02 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2024/jan/02/bugfix-release/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email