Get datetime now, not at server initialisation

2020-10-27 Thread Clive Bruton
I have a function that uses the current date to set up a file path for uploaded images: def upload_path(): dtnow = datetime.now(timezone.utc) dtstr = '{:%Y/%m/%d/%H/%M/%S}'.format(dtnow) print('dtstr: ') print(dtstr) dtstr = 'images/

Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread RANGA BHARATH JINKA
Hi, Refer to this too. All the best 👍 https://youtu.be/J3MuH6xaDjI On Tue, Oct 27, 2020 at 7:29 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > Refer this forGenerating PDF from HTML with image > > https://youtu.be/txlKYeLEflY > > On Tue, Oct 27, 2020 at 7:27 PM RANGA BHARAT

Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread RANGA BHARATH JINKA
Hi, Refer this forGenerating PDF from HTML with image https://youtu.be/txlKYeLEflY On Tue, Oct 27, 2020 at 7:27 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > Refer to this. > > https://www.youtube.com/watch?v=5umK8mwmpWM&ab_channel=DennisIvy > > On Tue, Oct 27, 2020 at 7:2

Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread RANGA BHARATH JINKA
Hi, Refer to this. https://www.youtube.com/watch?v=5umK8mwmpWM&ab_channel=DennisIvy On Tue, Oct 27, 2020 at 7:24 PM Senthil Kumar wrote: > Thanks a lot. We will check it out & get back to you > > On Tue, Oct 27, 2020 at 6:43 PM Derek wrote: > >> You can try : https://pypi.org/project/xhtml2pd

Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread Senthil Kumar
Thanks a lot. We will check it out & get back to you On Tue, Oct 27, 2020 at 6:43 PM Derek wrote: > You can try : https://pypi.org/project/xhtml2pdf/ > > On Tuesday, 27 October 2020 at 11:37:22 UTC+2 senthil...@gmail.com wrote: > >> Hi Everyone, >> >> Hope you are doing well >> >> We need help t

Re: How to connect django and React js but getting Error

2020-10-27 Thread Алмаз Есеньязов
You need to write BASE_DIR / 'build' not '/build/' пн, 26 окт. 2020 г., 15:55 Vineeth : > I am using django 3.1 version how to connect django and react i am trying > to connect but > getting Error like TemplateDoesNotExist at /index.html i attached my > folder structure and error image > > -- >

Re: Patreon and Django-AllAuth Integration

2020-10-27 Thread Ryan Nowakowski
On Mon, Oct 26, 2020 at 12:16:03PM -0700, Andrew Stringfield wrote: > Hello all, > > I am trying to use Patreon's API Version 2 with Django 3.1. I > read: https://docs.patreon.com/#third-party-libraries and found that > Patreon supported the django-allauth library. I installed the library

Django session Through login/logout

2020-10-27 Thread kawsar sarker
Hi, Nice to be with you here. I am developing an e-commerce site and there I I used a cart session. For login i created a own backend session and the session is still alive. But when I logout , I lost the session and with it the cart items. Please help, as I am new with django. I appreciate you

Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread Derek
You can try : https://pypi.org/project/xhtml2pdf/ On Tuesday, 27 October 2020 at 11:37:22 UTC+2 senthil...@gmail.com wrote: > Hi Everyone, > > Hope you are doing well > > We need help to generate the PDF from the HTML tag with images. Let us > know if any package available to do this requirement

Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread Farai M
Try also reportLab it's on the server side you can create any pdf with easy On Tue, Oct 27, 2020, 11:36 AM Senthil Kumar wrote: > Hi Everyone, > > Hope you are doing well > > We need help to generate the PDF from the HTML tag with images. Let us > know if any package available to do this require

Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread Ashutosh Kumar
Hi, Explore Google puppeteer for your requirement. Regards, Ashutosh Kumar On Tue, Oct 27, 2020, 15:05 Senthil Kumar wrote: > Hi Everyone, > > Hope you are doing well > > We need help to generate the PDF from the HTML tag with images. Let us > know if any package available to do this requireme

Regd:- Generating PDF from HTML with image

2020-10-27 Thread Senthil Kumar
Hi Everyone, Hope you are doing well We need help to generate the PDF from the HTML tag with images. Let us know if any package available to do this requirement. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib