aboutsummaryrefslogtreecommitdiff
path: root/ignis/models.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-22 11:25:33 -0500
committerBobby <[email protected]>2022-11-22 11:25:33 -0500
commit0a171d8cb74f6dacaefe06fc21901c8db4d0e372 (patch)
tree64d2054e9dbe9cafa708c142c727bb7ac78df4c0 /ignis/models.py
parenta9e737a0a36a460722db5e9ccce8a49520bb25a8 (diff)
downloadthatcomputerscientist-0a171d8cb74f6dacaefe06fc21901c8db4d0e372.tar.xz
thatcomputerscientist-0a171d8cb74f6dacaefe06fc21901c8db4d0e372.zip
Delete file on image delete
Diffstat (limited to 'ignis/models.py')
-rw-r--r--ignis/models.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ignis/models.py b/ignis/models.py
index 0cddab4a..048f1ea5 100644
--- a/ignis/models.py
+++ b/ignis/models.py
@@ -1,10 +1,7 @@
from django.db import models
from blog.models import Post
-from dotenv import load_dotenv
-import os
-load_dotenv()
-UPLOAD_ROOT = 'images/' if os.getenv('ENVIRONMENT') == 'development' else '~/database/images/'
+UPLOAD_ROOT = 'images/'
# Only For Storing Images