ljcarsenal
V2EX  ›  问与答

django FileField 问题

  •  
  •   ljcarsenal · Oct 23, 2014 · 2641 views
    This topic created in 4256 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   ·   2701 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:23 · PVG 22:23 · LAX 07:23 · JFK 10:23
    ♥ Do have faith in what you're doing.