Thanks for your reply! But what if the wc is a image object? The image is
generated directly and I can not call it from any folder.
Best regards,
Rylan
Aaron C. de Bruyn於 2015年11月23日星期一 UTC+8上午1時25分06秒寫道:
>
> If I recall correctly, the 'wc' object would need to be a file object.
> You could a
If I recall correctly, the 'wc' object would need to be a file object. You
could assign it similar to this:
from django.core.files import File
wc = File(open('/path/to/image', 'r'))
user.userprofile.tagcloud = wc
user.userprofile.save()
If the 'wc' variable returned by your program is already a
I am new to django and I am confused with the image display problem. Now I
have a image of word-cloud generated in the backend(let's say,
topicWords.py) and I don't know hot to deal with it. (1) How can I store it
in the image field of model UserProfile? In the models.py, I have:
class UserPr
3 matches
Mail list logo