Re: Is Django limited by Python's GIL? If not, are there any benchmarks for multiple connections?

2020-05-26 Thread navinipe
This is very helpful. Thanks Alejandro! -- 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 to django-users+unsubscr...@googlegroups.com. To view this discussion on

Re: EmptyDataError at /upload_reading while reading csv file using pandas

2020-05-26 Thread jakote lejaha
The file I had created myself but I have realized that the problem was with the path to the file. Django request.POST['file'] uses an "InMemoryUploadedFile" to handle file upload. And I could not explicitly reference the path of the file from the fileupload input, and parse directly into

Re: Is Django limited by Python's GIL? If not, are there any benchmarks for multiple connections?

2020-05-26 Thread Alejandro Garrido Gongora
https://medium.com/@KonopkaKodes/an-introduction-to-asynchronous-programming-in-python-6809a4385f69 https://docs.djangoproject.com/en/3.0/topics/async/ https://blog.disqus.com/scaling-django-to-8-billion-page-views

Custom Group

2020-05-26 Thread Soumen Khatua
Hi Folks, Actually my requirement is a registered user can create a room/group where n(could be any number) number of peoples can join for a certain period of time like 1 hr,But I don't have any idea about this,How I can do this in Django?! Any help will be appreciated Thank You Regards, Soumen

Re: regular expression in an url showing post details

2020-05-26 Thread Daniel Roseman
On Tuesday, 26 May 2020 01:50:35 UTC+1, Tiempo wrote: > > Hi, > my name is Tiempo and I'm new with Django. currently, I'm using django > 3.0 and i want to display each article of a blog app ( like when I click on > article 1, it should display it full details on page show with the > following

How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread ratnadeep ray
Hi all, I am trying to display the value from the context_process.py file to the template. The content of my context_process.py is as follows: from fusioncharts.models import QRC_DB from django.db import connection def get_result(request): > cursor = connection.cursor() > pattern

Is Django limited by Python's GIL? If not, are there any benchmarks for multiple connections?

2020-05-26 Thread navinipe
Hello, I'm a freelancer just getting introduced to web app programming, and will soon need to create web apps for clients who want a database of info for many of their customers and clients who want an e-commerce website. I know of Python's GIL, and I assume Django creators would've obviously

animate.css not working on android !

2020-05-26 Thread Prachi Khandelwal
I have been using animate.css library for basic animations, as everything is running smoothly on PC but it is not working on android :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: How to connect Django Logn Sigup API with Flutter

2020-05-26 Thread Alay Patel
Ok i will check On Tue, 26 May, 2020, 12:53 PM Anonymous Patel, wrote: > Help me please > I have created login , sign-up API , and even ready with Flutter deaigns, > I don't know how to make it functional. > If anyone can help me to connect Django API with flutter app. > > Raj Patel > > -- >

Re: EmptyDataError at /upload_reading while reading csv file using pandas

2020-05-26 Thread Jason Turner
Is the csv something you created? Or was it given to you? I use pandas extensively & the times I've received that error, the issue has been with the file itself. Ard there blank line(s) at the top of the file? On Tue, May 26, 2020, 4:11 AM jakote lejaha wrote: > The same very same file works

Re: Is Django limited by Python's GIL? If not, are there any benchmarks for multiple connections?

2020-05-26 Thread graeme
On Tuesday, May 26, 2020 at 1:33:47 PM UTC+1, navinipe wrote: > > Hello, > > I'm a freelancer just getting introduced to web app programming, and will > soon need to create web apps for clients who want a database of info for > many of their customers and clients who want an e-commerce

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Aboyeji Solomon Adeleke
Your context should be written this way response_context = get_result(request) On Tuesday, May 26, 2020 at 2:26:35 PM UTC+1, ratnadeep ray wrote: > > Hi all, > > I am trying to display the value from the context_process.py file to the > template. > > The content of my context_process.py is as

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Aboyeji Solomon Adeleke
response_context = { } On Tuesday, May 26, 2020 at 2:26:35 PM UTC+1, ratnadeep ray wrote: > > Hi all, > > I am trying to display the value from the context_process.py file to the > template. > > The content of my context_process.py is as follows: > > from fusioncharts.models import QRC_DB >

Re: regular expression in an url showing post details

2020-05-26 Thread Ousseynou Diop
Hello friend the error is you've used a different name for regex. Try to change "ids" in URLs to "id". Example: path('posts/?P[0-9]+', views.show), Or easily with this : path("posts//", views.show) Le mardi 26 mai 2020 00:50:35 UTC, Tiempo a écrit : > > Hi, > my name is Tiempo and I'm new with

Re: Is Django limited by Python's GIL? If not, are there any benchmarks for multiple connections?

2020-05-26 Thread Alejandro Garrido Gongora
No problem :). El mar., 26 may. 2020 a las 15:13, navinipe () escribió: > This is very helpful. Thanks Alejandro! > > -- > 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

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread ratnadeep ray
So for this we have to import the model of context_process ? -- 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 to django-users+unsubscr...@googlegroups.com. To view

Datetime Error

2020-05-26 Thread HJ
hello django-users hope you are doing well ! I was trying to convert the Date from string to timestamp def JsonDeliv(request): dataset = DeliveriesperDate.objects.all().values_list('Date', 'CountDeliveries') data = list(dataset) for i in data : data[i][0] =

Re: How to create a function like Count

2020-05-26 Thread Kushal Neupane
I think this in template will help you. Total Table Numbers {{tableNumber_total}} On Tue, May 26, 2020 at 10:50 AM Saurabh Adhikary wrote: > I want to create a custom function which will get modified into a sql > querry and will work like Count ...i.e. for every row of the queryset > > -- >

Re: Issue with CRUD Operation

2020-05-26 Thread Luqman Shofuleji
Hi, Please also attach the code of your list template where the delete is been executed. On Mon, May 25, 2020 at 1:39 AM Ifeanyi Chielo wrote: > Hello, > I performed a CRUD operation and every thing is working well except two > things > 1. my insert form does not clear the text boxes after

Re: Issue with CRUD Operation

2020-05-26 Thread Luqman Shofuleji
To clear your form after submit, just re-assign an empty form object after the form.save(). See below def soapprod_form (request, id=0): if request.method == "GET": if id == 0: form = SoapprodForm() else: soapprod = Soapprod.objects.get(pk=id)

How to connect Django Logn Sigup API with Flutter

2020-05-26 Thread Anonymous Patel
Help me please I have created login , sign-up API , and even ready with Flutter deaigns, I don't know how to make it functional. If anyone can help me to connect Django API with flutter app. Raj Patel -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Integrate wepay payments in django site

2020-05-26 Thread Hella Nick
你应该是阿三吧? Akshat Zala 于2020年5月20日周三 上午11:32写道: > You can install the following package and study the documentation: > > 1. https://pypi.org/project/django-wepay/ > > On Tuesday, 19 May 2020 22:56:24 UTC+5:30, Shyam Acharjya wrote: >> >> greetings, >> >> has anyone here have any prior experience

Re: EmptyDataError at /upload_reading while reading csv file using pandas

2020-05-26 Thread jakote lejaha
The same very same file works fine for the python "csv.reader" function with the other parameter as (delimiter=",") other than the file itself. I recently added names attribute as a parameter to the "pandas.read_csv" function, but I can still not get my table as expected. Instead, I get an

Filefiled get file from url

2020-05-26 Thread Parampal Singh
Filefiled get file from remote url save to s3 Any example please -- 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 to django-users+unsubscr...@googlegroups.com. To

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Aboyeji Solomon Adeleke
Yes, import the get_result from the context_process.py -- 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 to django-users+unsubscr...@googlegroups.com. To view this

Read Text file in django

2020-05-26 Thread Lansana Sangare
Good evening people, i'm a beginner at django, i try to read a text file in django template but i only get the data.txt in template. how can i open and read the content of the text file in templates. Below you can see the html section and the output. Thanks in advance Django model: class

Problem with django-social-share

2020-05-26 Thread sunday honesty
Hello develops, hope you guys are doing well. Really thankful for all those who make out time to answer our varrying questions. When I used django-social_share, everything worked fine until I added custom templates. After creating the templates and styling with W3.CSS, the social link didn't

Re: Read Text file in django

2020-05-26 Thread Ammar M. Adam
The FileField Must have a function for that Use help(django.models.FileField) It must have some sort of FileField.read() or something like that. Am also a beginner but I think this should work with you . On May 26, 2020 23:34, "Lansana Sangare" wrote: > Good evening people, > i'm a beginner at

RE: Please help me pip install mysqlclient time screenshot image this error

2020-05-26 Thread Vishesh Mangla
See the last photo, it says Microsoft Visual C++ 14 required. You are surely using win 7. Please try install Visual studio community version  https://visualstudio.microsoft.com/vs/. Sent from Mail for Windows 10 From: R D SainiSent: 26 May 2020 22:40To: Django usersSubject: Please help me pip

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Durai pandian
I can see typo in adding 'fusioncharts.*context_processors*.get_result', isn't it context_processor ? if there is no typo, please check; if you have any row data by printing it. On Tue, May 26, 2020 at 10:44 PM Daniel Roseman wrote: > On Tuesday, 26 May 2020 17:27:13 UTC+1, Aboyeji Solomon

Django CSRF protection and AJAX calls

2020-05-26 Thread Kevin
Hi, I'm not able to POST to django without having a csrf_token cookie sent with the request, though the documentation says you can set an X-CSRFToken header - it appears to be entirely ignored. The behaviour has been pointed out a couple of times before:

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Daniel Roseman
On Tuesday, 26 May 2020 17:27:13 UTC+1, Aboyeji Solomon Adeleke wrote: > > Yes, import the get_result from the context_process.py This is entirely wrong. The point of a context processor is that it is automatically added to the template context. You shouldn't be importing it or calling it

RES: Please help me pip install mysqlclient time screenshot image this error

2020-05-26 Thread Samuel Nogueira
In the error shows that you don’t have visual C++ 14.0 installed in your machine, have you already verified if you have it or not? Try to install the especified version and them try the pip command again. Enviado do Email para Windows 10 De: R D SainiEnviado:terça-feira, 26 de maio de 2020

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread ratnadeep ray
So what should be the correction in my case? -- 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 to django-users+unsubscr...@googlegroups.com. To view this discussion

RE: RES: Please help me pip install mysqlclient time screenshot image this error

2020-05-26 Thread Vishesh Mangla
Sorry for duplicate answer. I posted late. Sent from Mail for Windows 10 From: Samuel NogueiraSent: 26 May 2020 22:49To: django-users@googlegroups.comSubject: RES: Please help me pip install mysqlclient time screenshot image this error In the error shows that you don’t have visual C++ 14.0