Browse Source

file upload support

aguryev 3 years ago
parent
commit
03dc25f64e
2 changed files with 5 additions and 0 deletions
  1. 1 0
      app.py
  2. 4 0
      uploads/.gitignore

+ 1 - 0
app.py

@@ -20,6 +20,7 @@ class Config(object):
     
     DEBUG = True
 
+    UPLOADS = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'uploads')
     MEDIA = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'media')
     LOGO = os.path.join(MEDIA, 'logo')
     BADGES = os.path.join(MEDIA, 'badges')

+ 4 - 0
uploads/.gitignore

@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore