diff options
| author | Bobby <[email protected]> | 2023-05-02 21:55:42 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-02 21:55:42 -0400 |
| commit | 4d2a4089529205bf326562ac81c4b3a7ee856a9b (patch) | |
| tree | e041fb78a14e872d85fe24769848705678a6e9b6 /ignis/models.py | |
| parent | 5db4fef9c6e187d774d2974dfdec1e9f65151c18 (diff) | |
| download | thatcomputerscientist-4d2a4089529205bf326562ac81c4b3a7ee856a9b.tar.xz thatcomputerscientist-4d2a4089529205bf326562ac81c4b3a7ee856a9b.zip | |
Update Image Directory
Diffstat (limited to 'ignis/models.py')
| -rw-r--r-- | ignis/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ignis/models.py b/ignis/models.py index e89cc83d..aba58c1d 100644 --- a/ignis/models.py +++ b/ignis/models.py @@ -1,7 +1,8 @@ from django.db import models from blog.models import Post +from django.conf import settings -UPLOAD_ROOT = 'images/' +UPLOAD_ROOT = 'images/' if settings.DEBUG else f'{settings.BASE_DIR}/../database/images/' # Only For Storing Images |
