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)
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
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
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»>
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«<
Bryan
nonsense
Mirco
nonsense
makes sense
#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
😂😂😂
Richie RH
is there anyfree e- books which explain how to integrate bootstrap4 with Django?
Cavidan
is there anyfree e- books which explain how to integrate bootstrap4 with Django?
https://docs.djangoproject.com/en/2.2/howto/static-files/
Cavidan
This django create static files and html,css,js managing
Mirco
is there anyfree e- books which explain how to integrate bootstrap4 with Django?
are u really need it ? just include bootstrap css and js into your base template and use its classes as always
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
I do not need full documentation though , just a little bit of examples
again, include script and link for bootstrap css/js into your base template and enjoy its classes around your templates
Mirco
And I still do not know how to use jinja
django does not use jinja by default
Richie RH
what does Django use?
Mirco
what does Django use?
its own template engine
Cavidan
Yeah.. I am new to Django
You 're reading django documentions and you understand basic django
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
I will
yw 😃
Bryan
Yeah.. I am new to Django
welcome to the world how may we help
Bryan
its does nt need
i wanted to tell him that
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 ?
Shreehari
i get some data from user . i want them to be deleted after 2 days automatically
Shreehari
local database
cj
i get some data from user . i want them to be deleted after 2 days automatically
use a task manager to do that, like cron + celery, or just cron that trigger a custom command in manage.py 🤷🏻‍♂️ there are many possibilities
Shreehari
i was searching for a simple python program kind of thing actually
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
Mukesh khandelwal
Yes ✋✋
can i message you directly in yr inbox
Charly
copy paste that on google
Isaías
Ok
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
* 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
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