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

django FileField 问题

  •  
  •   ljcarsenal · Oct 23, 2014 · 2582 views
    This topic created in 4214 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   ·   2798 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 15:44 · PVG 23:44 · LAX 08:44 · JFK 11:44
    ♥ Do have faith in what you're doing.