Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Flask not serving pictures
  2. <img src="/Users/username/Desktop/datafolder/pics/pic1.png" alt="pic1">
  3.        
  4. app = Flask(static_folder='C:\Some\Directory')
  5.        
  6. cd path/to/your/flask/app
  7. mkdir static
  8. mv /Users/username/Desktop/datafolder/pics/pic1.png /static