Other fixes
This commit is contained in:
parent
9dfead5e9c
commit
309009d3a4
2 changed files with 5 additions and 0 deletions
4
app.py
4
app.py
|
|
@ -149,6 +149,10 @@ class Relationship(BaseModel):
|
|||
|
||||
|
||||
UPLOAD_DIRECTORY = 'uploads/'
|
||||
|
||||
# fixing directory name because of imports from other directory
|
||||
if __name__ != '__main__':
|
||||
UPLOAD_DIRECTORY = os.path.join(os.path.dirname(__file__), UPLOAD_DIRECTORY)
|
||||
class Upload(BaseModel):
|
||||
# the extension of the media
|
||||
type = TextField()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue