Home > other >  Django 1.11.8, how to display the data in the admin management interface of pictures?
Django 1.11.8, how to display the data in the admin management interface of pictures?

Time:10-13

Models. Py ImageField column of table

Direct registration was just a text shown in the admin path

How to show the path for a picture?

Many, baidu for two days, the answer are tested, not one of

Ask your bosses, all give you...

 
# models. Py
# product table, basic table
The class Product (models. Model) :
.
Watch_pic=models. ImageField (upload_to='media/watch_base_img, default=' media/watch_base_img/lazda. JPG ')


# admin. Py
Admin. Site. Register (Product)

CodePudding user response:

You first try to find a successful way to others

https://blog.csdn.net/le_17_4_6/article/details/81810627

Then ask you encounter error

CodePudding user response:

reference 1st floor tianfang response:
you first try to find a successful way to others

https://blog.csdn.net/le_17_4_6/article/details/81810627

Then ask you meet error


Emmmm...
I couldn't find it, online search, all copy and paste of others, as long as the source of fault, this type of basic it is wrong, or perhaps version are not compatible
Also, you send a link, I don't have not only in three or four platform to see this article, the whole is copy and paste, didn't change the punctuation

Can't find the successful example of successful examples do not post screenshots of others' success is successful, is successfully test also was a successful example of
Can not find to q
Can not find to q
Can not find to q

Second, the error, is that there is no response, no display, the display is not the picture
Don't display picture
Don't display picture
Don't display picture

And your suggestion to answer made me feel my post questions pale, feel myself ask like didn't ask
As you answer with no answer

So what is you are not the topic or the expression of me so bad?
Or say you don't understand the topic review, or said I don't understand your answer?

"You try to find a successful way as others", I found, I want to also not here to bother others.
"Then ask you meet error", error is not necessarily a bug, didn't realize the function of also can be, I think the title speaks for this situation, you why this question more

Conclusion: I was choked, read your reply
  • Related