Django FileField : How to return filename only (in template). In your model definition: import os class File(models.Model): file = models.FileField() ... def ...
確定! 回上一頁