Send PDF as an email's attachment ( Working with xhtml2pdf library)

2021-04-30 Thread Walter Randazzo
Hi Dudes, Im working with pisa from xhtml2pdf LIB in order to get a pdf. That works OK, but i cant figure out how to attach the generated pdf to an email in order to send it . Anyone dealt with this? I would appreciate any help on this! *View*: def get(self,request,*args,**kwargs):

Python/Django job in energy efficiency

2021-04-30 Thread Scot Hacker
Want to put your python/django skills to work helping to reduce carbon footprints throughout the energy sector? Energy Solutions is looking for an experienced developer able to work permanent/full-time in one of the 50 U.S. states. (Sorry - small company.) Need about 4 years of experience - s

Re: Loading csv data in database

2021-04-30 Thread 'Amitesh Sahay' via Django users
try the below way. Its simple Writing custom django-admin commands | Django documentation | Django | | | | Writing custom django-admin commands | Django documentation | Django | | | Regards, Amitesh On Friday, 30 April, 2021, 08:28:07 pm IST, Derek wrote: Someone has

Re: Loading csv data in database

2021-04-30 Thread Derek
Someone has an example of doing just this: https://arshovon.com/blog/django-custom-command/ On Thursday, 29 April 2021 at 19:39:36 UTC+2 Ryan Nowakowski wrote: > Typically you would write a custom management command for this kind of > thing: > > https://docs.djangoproject.com/en/3.2/howto/cust

Re: Filtering OR-combined queries

2021-04-30 Thread Shaheed Haque
Hi, On Fri, 30 Apr 2021 at 11:52, Sebastian Jung wrote: > Take q for or Filterung: > > > https://stackoverflow.com/questions/6567831/how-to-perform-or-condition-in-django-queryset > Thanks for the response, but the OR is not the problem: it works just fine. (FWIW, I used the "|" form rather tha

Re: Filtering OR-combined queries

2021-04-30 Thread Sebastian Jung
Take q for or Filterung: https://stackoverflow.com/questions/6567831/how-to-perform-or-condition-in-django-queryset Shaheed Haque schrieb am Fr., 30. Apr. 2021, 02:43: > Hi, > > I have a query which ORs some selects on a single table together like this: > > jurisdiction = 'aaa' > qs = Buss.obje

Re: I have one doubt

2021-04-30 Thread Yeddu Prasad
Two things that you might want to check. 1.Ensure you have activated the virtualenv (if you running in the virtualenv mode) 2. Ensure your system has the python path set On Friday, April 30, 2021 at 3:32:47 PM UTC+5:30 bheem...@gmail.com wrote: > I had installed > > On Fri, 30 Apr, 2021, 15:17

Re: I have one doubt

2021-04-30 Thread Bheemanagowda S Gowdra
I had installed On Fri, 30 Apr, 2021, 15:17 , wrote: > Hope you have the Installed_apps setup properly. > > > > > > *From:* django-users@googlegroups.com *On > Behalf Of *Bheemanagowda S Gowdra > *Sent:* 30 April 2021 15:10 > *To:* django-users@googlegroups.com > *Subject:* Re: I have one doubt

RE: I have one doubt

2021-04-30 Thread yeddu.j.prasad
Hope you have the Installed_apps setup properly. From: django-users@googlegroups.com On Behalf Of Bheemanagowda S Gowdra Sent: 30 April 2021 15:10 To: django-users@googlegroups.com Subject: Re: I have one doubt On Fri, 30 Apr, 2021, 15:07 Arpana Mehta, mailto:arpana11me...@gmail.c

Re: I have one doubt

2021-04-30 Thread Arpana Mehta
Can you share the error stack in more detail? Or a screenshot? On Thu, 29 Apr 2021, 19:53 Bheemanagowda S Gowdra, wrote: > I am knew to Django > > I am getting below warning > > unresolved import 'django.contrib' > > -- > You received this message because you are subscribed to the Google Groups