diff options
| author | Bobby <[email protected]> | 2022-11-22 11:25:33 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-22 11:25:33 -0500 |
| commit | 0a171d8cb74f6dacaefe06fc21901c8db4d0e372 (patch) | |
| tree | 64d2054e9dbe9cafa708c142c727bb7ac78df4c0 | |
| parent | a9e737a0a36a460722db5e9ccce8a49520bb25a8 (diff) | |
| download | thatcomputerscientist-0a171d8cb74f6dacaefe06fc21901c8db4d0e372.tar.xz thatcomputerscientist-0a171d8cb74f6dacaefe06fc21901c8db4d0e372.zip | |
Delete file on image delete
| -rw-r--r-- | ignis/models.py | 5 |
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 |
