V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ljcarsenal
V2EX  ›  问与答

django FileField 问题

  •  
  •   ljcarsenal · Oct 23, 2014 · 2579 views
    This topic created in 4211 days ago, the information mentioned may be changed or developed.
    我做了个爬虫,爬取一个网站上的文件的url。model设置的是attachment = models.FileField()
    应该给attachment什么值呢?
    我爬取的时候是爬的url,而不是文件本身。需要把文件下载下来,然后再给attachment赋值?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2898 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 132ms · UTC 07:17 · PVG 15:17 · LAX 00:17 · JFK 03:17
    ♥ Do have faith in what you're doing.