Ronald
That listens for messages
Ronald
And saves to db
Ronald
Via api
Михаил
Does it recuire activation via mobile?
Михаил
Thank you Ronald
Михаил
It'll take some time to checkout
Luke
Ronald
Thank you Ronald
No probs. It's a very nice library. Great documentation too
Xyz
Hi @Inchidi @iFlare3G , what directory structure do you use for your django production apps
Mirco
Xyz
cookiecutter ?
Mirco
Xyz
alright thanks! I'll try that then
inchidi
Xyz
inchidi
the indentations removed there, this one better https://dpaste.de/c1a2
Xyz
mehn cookiecutter looks too verbose... I can barely find my way around
Xyz
Thanks @Inchidi and @iFlare3G !
Mirco
Anonymous
Hii.. Any document for studying REST Api ?? Beginner tutorial.
8 € ∆ $ "|"
anyone here use postgres
Mohit
Should I use " through " when using django many to many relationship just to use "unique together"
Anonymous
cj
the dark
can any one tell me how can i run my django website on any server like a2 hosting
cj
Xyz
You guys should checkout tableplus.io, it's a pretty neat tool for managing your databases
Xyz
cj
cj
also DataGrip if you want to pay for a multi-platform tool
inchidi
cj
Mike
Hi, everyone. I need a help. I posted on stackowerflow, but my problem doesn't resolve. If you can help me, would be nice https://stackoverflow.com/questions/54522323/i-cannot-save-a-picture-link-from-a-facebook-account/54523465#54523465
Anonymous
Hi guys i can't send imahe here?
Mirco
Paritosh
Hey everyone, I'm building a web app that takes an image from a client , upload it to the server.
After that i want this image to be processed by an OCR written in python. And return the text to the html file. Can anyone tell me how to pass this image to my python program?
I'm a beginner.
Mirco
Paritosh
Paritosh
Paritosh
I'm confused about the second part(processing image and return text)
Paritosh
Also my ocr program is worling perfectly
Mirco
good, so do you have a model with image field ? or an image model ?
Paritosh
Yes i have ... It has one image field and one title field
Paritosh
I try to pass all the obects as context .. like - imgs=img.objects.all()
Then in html i try to access them as - {% for img in imgs %}
<Img src="{{ img.image.url }}>
Ending for loop
Paritosh
But i don't get anything in my webpage
Mirco
share your code with pastebin or similar, so it's easier to help ya :)
Paritosh
Okay .... I'll when I'm back at office.
Paritosh
Yes
Mirco
Yes
Ook so u have to get image path from your model
Paritosh
class img(models.Model):
title = models.CharField(max_length=50, blank=True)
image = models.ImageField(upload_to='documents/')
uploaded_at = models.DateTimeField(auto_now_add=True)
Paritosh
this is my model
Paritosh
and this is the function in my views.py _
Paritosh
def fileget(request):
if request.method == 'GET':
imgs = img.objects.all()
return render(request,"textdetect/view.html", {'imgs':imgs})
Mirco
use code sharing service pls, it's easier to read and edit
Mirco
Mirco
Paritosh
https://pastebin.com/d5VCaz64
Mirco
Mirco
and try to follow PEP standard, class names should be start with capitalized letter
Paritosh
https://pastebin.com/f9H9jRp4
Paritosh
this is my template
Paritosh
it shows nothing..
Paritosh
Mirco
have you already checked out in a django shell what your query returns ?
Paritosh
i guess something is wrong... all the title and images are stored in database table but i deleted them from my documents folder so it returns NOT FOUND
Paritosh
I this i should clear my DB and start again
Mirco
if u have deleted them, path stored in your table is pointing to the vaacum