Prashant
Ok Thank🙂
godmode
Somebody asked for the repo, there is no repo, just a common thing that is usual to me... Si i created the example
Anonymous
Hello
Rajat
QR code generation using django
Rajat
how to create QR code in python where i fill the details in a forum and while submitting using submit button, qr code will generated.
Rajat
This one sir
Rajat
Yes sir.... I tried to apply python script in views.Py ...but its not working...
Anonymous
use pastebin.com or smth else
Rajat
use pastebin.com or smth else
Will try.. If not possible i will send u my code
Anonymous
Rajat https://github.com/lincolnloop/python-qrcode
Rajat
Thank you sir...
Rajat
Rajat https://github.com/lincolnloop/python-qrcode
Actually sir, I want to generate qr code from django forum, problem is how i can get data for qr code from the forum? Please help me i tried alot..
Anonymous
get the data pass to qr code generation function profit
Anonymous
its up to you how you get the data, man
Anonymous
be more specific in questions
Sap
Can any one help me to dispaly image in django Its cant displying image jst small sme thing is displying
Anonymous
Hi guyz, i have created a model and migrated and the tables has been created now from veiws.py when i am doing object.py() it is comming like employee object1 object 2 but not the value
Anonymous
please help me
Sap
use static
I have used but image is cmng In diffrent way Not displying
Anonymous
in different way means?? i am not getting
Anonymous
once use a different jpg file if it work then this will also work😊 if not check the definition of template
Anonymous
Hi, Who knows about Vue+Django projects can you send me any starter project's full zip format file.
Rangaraj
I have few users for my web portal with different roles using dijango model file filed am getting data from these users. I want restrict the file download to that respective user alone. For example. www.xyz.com/media/user1/djdbsmsk.csv Now currently anyone having the complete url able to download that file. But I want the above url should accessible only to the user who uploaded the file. How to achieve that in django. Any advice or reference web page to do it
ashish
hi i need a working example on django autocomplete
Shubham
Mezzanine and django is different framework of python??
cj
what do u mean
I mean: did you read the rules of the group before posting things?
Sami
well , no
Sami
it is just a code dude
cj
it is just a code dude
and... there's a rule about sharing code... dude...
Anonymous
Maybe google.com
Anonymous
Is it a good idea to disable csrf when Building an API ?
Anonymous
Nope if it's not necessary
can it provided to a desktop app for instance
Mirco
can it provided to a desktop app for instance
You just need to call your endpoint with a client
godmode
Never ever disable csfr
Anonymous
Csrf
godmode
Csrf
That what said
godmode
Hahahahahaha
Lugano
you are accessing the development server over https but it only supports http
Lugano
you are accessing the development server over https but it only supports http
Am getting this error guys,may you help me with this
Lugano
I was trying to print "hello world" in the webpage
godmode
Localhost?
Lugano
Yah
godmode
type
godmode
Yah
localhost:8000 just this
godmode
Or http//localhost:8000
Lugano
Thanks
Lugano
It worked
{°_°}
What is the opposite of User.is_authenticated? I want to check is user is not authenticated yet
Mirco
Or this
It returns False if it's not authenticated , so the same
Maz
Can you use False in a single line of code to check?
Maz
What u mean by using False ?
If self.... == false
Mirco
If self.... == false
Ah ok, imho it's more elegant if is_auth , if not is_auth
cj
If self.... == false
that's a code smell
Maz
that's a code smell
😂 I feel you bro. Sometimes you gotta do what you gotta do.
Maz
Anyone deployed Django to GCP? Compute Engine with a Cloud SQL backend?
Maz
definitely you don't have to do that
Have you ever had to deal with spaghetti code that you didn't write? sometimes you gotta do what you gotta do 🤗
Maz
definitely you don't have to do that
Btw...do you have experience with GCP? Cloud SQL as a backend?
cj
it takes a little more time, but it saves future headaches
Maz
i usually delete what's wrong and rewrite it the proper way
That right there tells me you've worked with people who know what they're doing.
cj
That right there tells me you've worked with people who know what they're doing.
and with people with don't... and those are the code smells I found and tell them to correct (or I do myself)