Re: How to get data from django model to the excel sheet.

2020-07-06 Thread sum abiut
You can try this export data to excel file Sum, On Mon, Jul 6, 2020 at 7:00 PM Ashutosh Mishra wrote: > I want to get the data from the django model contans(name,age,photo) on a > excel sheet. > How can i do

Re: How to get data from django model to the excel sheet.

2020-07-06 Thread mohamed khaled
You can serialized your data and then use any tools to export the data as csv for example. On Mon, Jul 6, 2020, 9:00 AM Ashutosh Mishra wrote: > I want to get the data from the django model contans(name,age,photo) on a > excel sheet. > How can i do that. > > -- > You received this message becaus

Re: How to get data from django model to the excel sheet.

2020-07-06 Thread Ashutosh Mishra
What if I have an image field too,how to do that -- 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 discussi

Re: How to get data from django model to the excel sheet.

2020-07-06 Thread Damanjeet Singh
Please see handsontable.com. I have been using it for my project. On Mon, Jul 6, 2020 at 9:06 AM Ashutosh Mishra wrote: > What if I have an image field too,how to do that > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: How to get data from django model to the excel sheet.

2020-07-06 Thread Ashutosh Mishra
But It is for js,react,angular, how can I place that in django project On Jul 6, 2020 1:54 PM, "Damanjeet Singh" wrote: > Please see handsontable.com. > > I have been using it for my project. > > On Mon, Jul 6, 2020 at 9:06 AM Ashutosh Mishra < > ashutoshmishra...@gmail.com> wrote: > >> What if I

RE: How to get data from django model to the excel sheet.

2020-07-06 Thread Vishesh Mangla
@Ashutosh Mishra I think reading your sql table with pandas and using to_excel/to_csv would be great in this case. If you are worried about the images. First of all I don’t know how you are storing your images. One method to store an image is to convert it to a very long base64 string and store it

Re: How to get data from django model to the excel sheet.

2020-07-06 Thread Luciano Martins
To work with excell within Django projects we use the *openxl *library, but you can't use it directly, you need to build scripts that bring you what you want. Em segunda-feira, 6 de julho de 2020 03:59:29 UTC-3, Ashutosh Mishra escreveu: > > I want to get the data from the django model contans

RE: How to get data from django model to the excel sheet.

2020-07-06 Thread Vishesh Mangla
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_sql.html Sent from Mail for Windows 10 From: Ashutosh MishraSent: 06 July 2020 13:56To: django-users@googlegroups.comSubject: Re: How to get data from django model to the excel sheet. But It is for js,react,angular, how can I pl

POSTGRES CONNTECTION TIMEOUT WHEN USING AN API

2020-07-06 Thread Sunday Iyanu Ajayi
I have a database sql function that I am running fine when on the database but once i link the output via an api I created and test via postman, I get Nginx 502 error and on my postgresql log I get : Çonnection Timeout error. The sql db function link to a foreign table and pulls some data (betwee

Re: REUTILISER UN CITE DJANGO

2020-07-06 Thread Karan Sahu
Hi do you hire contract based python/django freelancer? I can help you in this and related tasks Best, Karan Sahu On Sunday, July 5, 2020, C L A S S E 1 wrote: > *BONJOUR A TOUTES A TOUS* > > *si je décharge un site(une application django) est ce que je peut l > utiliser sur mon envi

Re: Trouble getting kwargs into filter

2020-07-06 Thread Karan Sahu
Hi, Do you hire contract based python/django freelancer? I can help you in this and related tasks Best, Karan Sahu On Monday, July 6, 2020, Clive Bruton wrote: > I am struggling with getting kwarg values into a queryset filter: > > class UsersItemsView(ListView): > template_name = 'tes

Re: POSTGRES CONNTECTION TIMEOUT WHEN USING AN API

2020-07-06 Thread Sunday Iyanu Ajayi
I get this error from my postgresql log also : could not send data to client: Broken pipe *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * On Mon, Jul 6, 2020 at 2:06 PM Sunday Iyanu Ajayi wrote: > I have a database sql function that I am running fine when on the database > but onc

Re: Trouble getting kwargs into filter

2020-07-06 Thread Clive Bruton
Thank you. On 6 Jul 2020, at 05:24, Stephen J. Butler wrote: def get_queryset(self): qs = super().get_queryset() return qs.filter(user__id=self.kwargs['userlist']) -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Adding an 'or' to filter

2020-07-06 Thread Clive Bruton
I am working into someone else's solution, with this code in forms.py: *** class SearchForm(forms.Form): area = forms.ModelChoiceField(label=_('Area'), queryset=Area.objects.all(), required=False) group = forms.ModelChoiceField(label=_('Group'), queryset=Group.objects.all

Static not working on unix while working on windows

2020-07-06 Thread ashish goyal
Hi All, I have created a django app on windows and have used bootstrap navbar n other functions which are working good on windows. Same files I have imported on unix server then i am able to get all details but getting issue with css and js files saying below error Refused to apply style from

Django ContentTypes required?

2020-07-06 Thread JJ Zolper
Hello, I am not using any of the ContentType relations, etc right now in my Django 2.12 Python 3.6 application, am I able to run the application without having django.contrib.contenttypes in the INSTALLED_APPS? Is there a piece I am not understanding that Django uses it for in the background?

RE: Static not working on unix while working on windows

2020-07-06 Thread Vishesh Mangla
Href = "" static appname/something.css %}” Sent from Mail for Windows 10 From: ashish goyalSent: 06 July 2020 23:50To: django-users@googlegroups.comSubject: Static not working on unix while working on windows Hi All, I have created a django app on windows and have used bootstrap navbar n other func

Re: Django ContentTypes required?

2020-07-06 Thread Dan Madere
I agree that it should work. Django uses ContentType in the admin and user authentication, but you mention that you have removed these from INSTALLED_APPS, so I don't get it. I'd try clearing .PYC files first. Then maybe a sanity check.. double check what settings file you're actually using, an

Re: How to get names of columns from QuerySet without executing it

2020-07-06 Thread Eugene Kulak
Michael, this will not work for cases with `values` and `annotations` On Sunday, July 5, 2020 at 2:23:03 PM UTC-4, michaelfladischer wrote: > > What about introspecting the model associated with the QuerySet: > > qs = SomeModel.objects.all() > columns = [f.column for f in qs.model._meta.fields]

Re: POSTGRES CONNTECTION TIMEOUT WHEN USING AN API

2020-07-06 Thread Dan Madere
Sounds like nginx is timing out waiting for Django, due to the slow query. You can set proxy_connect_timeout and proxy_read_timeout in your nginx config to allow it to wait longer. Another approach would be to optimize the SQL query and add indexes, to have the query run faster and not cause th

Re: POSTGRES CONNTECTION TIMEOUT WHEN USING AN API

2020-07-06 Thread Sunday Iyanu Ajayi
Yes. I later figured it out after a lot of research. Thanks to this link: https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/ *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * On Tue, Jul 7, 2020 at 1:46 AM Dan Madere wrote: > Sounds like nginx is timing out waiti

Re: Static not working on unix while working on windows

2020-07-06 Thread ashish goyal
I am using same but still css is not available when i am clicking on css file link from inspect. Is it because i have not configured nginx as i am just running app from runserver on unix machine. Was working fine on windows. No change Thanks Ashish > On 07-Jul-2020, at 00:11, Vishesh Mangla

Static not working on unix while working on windows

2020-07-06 Thread Exactly musty
Try this https://groups.google.com/d/msgid/django-users/35233aa7-a4c2-4cbf-8d69-54ddc4844045o%40googlegroups.com.

Basic security check

2020-07-06 Thread Exactly musty
Bro you should probably host it before talking about security,I am talking about buying a domain name and hosting for yourself -- 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, se