Le Createur
if you consider that outlook messages are live.com messages
Le Createur
then OAuth2 will helps you
Himanshu
Yes ✋✋
amar
guys i am integrating paytm but i got this error "MID
invalid: This MID is not available on our staging environment"
amar
how can i fix help me guys
Bryan
let orderID = "".randomString(length: 20)
Bryan
Cavidan
Hello, has written a program that transforms Django with pdf to excel. Can you help with it?
Cavidan
pdf to excell convertor program
Anders (izzno / gooood) 🇳🇴
Bryan
Write the render_to_pdf function like this
Bryan
from io import BytesIO
from django.http import HttpResponse
from django.template.loader import get_template
from xhtml2pdf import pisa
def render_to_pdf(template_src, context_dict={}):
template = get_template(template_src)
html = template.render(context_dict)
result = BytesIO()
pdf = pisa.pisaDocument(BytesIO(html.encode("ISO-8859-1")), result)
if not pdf.err:
return HttpResponse(result.getvalue(), content_type='application/pdf')
return None
Doragonsureiyā
Bryan
«<from io import BytesIO
from django.http import HttpResponse
from django.template.loader import get_template
from xhtml2pdf import pisa
def render_to_pdf(template_src, context_dict={}):
template = get_template(template_src)
html = template.render(context_dict)
result = BytesIO()
pdf = pisa.pisaDocument(BytesIO(html.encode("ISO-8859-1")), result)
if not pdf.err:
return HttpResponse(result.getvalue(), content_type='application/pdf')
return None
Doragonsureiyā
Bryan
«<from io import BytesIO
from django.http import HttpResponse
from django.template.loader import get_template
from xhtml2pdf import pisa
def render_to_pdf(template_src, context_dict={}):
template = get_template(template_src)
html = template.render(context_dict)
result = BytesIO()
pdf = pisa.pisaDocument(BytesIO(html.encode("ISO-8859-1")), result)
if not pdf.err:
return HttpResponse(result.getvalue(), content_type='application/pdf')
return None»>
Doragonsureiyā
Bryan
«<from io import BytesIO
from django.http import HttpResponse
from django.template.loader import get_template
from xhtml2pdf import pisa
def render_to_pdf(template_src, context_dict={}):
template = get_template(template_src)
html = template.render(context_dict)
result = BytesIO()
pdf = pisa.pisaDocument(BytesIO(html.encode("ISO-8859-1")), result)
if not pdf.err:
return HttpResponse(result.getvalue(), content_type='application/pdf')
return None«<
Doragonsureiyā
Bryan
nonsense
Mirco
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
nonsense
😂😂😂
Mirco
is so hard to follow group rules and send code via sharing tool like pastebin instead ? 🤷🏼♂️
Raad
nonsense
😂😂😂
Himanshu
Cavidan
Richie RH
is there anyfree e- books which explain how to integrate bootstrap4 with Django?
Cavidan
Cavidan
This django create static files and html,css,js managing
Richie RH
Yeah.. I am new to Django
Richie RH
I do not need full documentation though , just a little bit of examples
Richie RH
And I still do not know how to use jinja
Mirco
Richie RH
what does Django use?
Richie RH
well alright
Le Createur
well alright
Please follow the django tutorial. It will more clear after
Mirco
well alright
one u got how templates work , you will easily understand how to include bootstrap 😊
Richie RH
thanks
Richie RH
I will
Mirco
amar
Himanshu
amar
any one can help me
amar
how shall i solve it
amar
acctualy when i try to put up test mid its giving unbound local variable checksum error
Bryan
check your inbox amar
amar
ok
Shreehari
how can i delete data that we get as input in a view after sometime ?
Le Createur
Shreehari
i get some data from user .
i want them to be deleted after 2 days automatically
Le Createur
Shreehari
local database
Shreehari
i was searching for a simple python program kind of thing actually
Shreehari
dhelbegor
Hi guys, someone here is using graphene _django?
dhelbegor
I looking for resources to test the query, what I need to test and what not
Mirco
Mukesh khandelwal
Yes ✋✋
can i message you directly in yr inbox
Charly
copy paste that on google
Isaías
Ok
Himanshu
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
* If you want to overrideany delete method of model in Django Admin Site —> https://stackoverflow.com/questions/15196313/django-admin-override-delete-method/56165570#56165570
* If you want to disply model's objects permission wise in Django Admin Site —> https://stackoverflow.com/questions/20722740/object-level-permissions-in-django-admin/56182857#56182857
originally posted by me for build better communitiy 😍
Kumar
Hey, guys, I need help adding JWT auth in django for react as frontend..
Kumar
And how can i hide payload request in developer tool while post request...
Kumar
??
Leo
You can request with a custom header along with the token. Then decode it in the server side it is simple as that
Kumar
I'm beginner so can you elaborate or give me link for it if possible...
Kumar
I tried but didn't get any link...
inchidi
Kumar
inchidi
what is your reason to do that?
Kumar
I'm just sending data from react and i don't want it to be seen over the network...
inchidi
then use ssl