diff --git a/.gitignore b/.gitignore index a2c3648..2fe0678 100644 --- a/.gitignore +++ b/.gitignore @@ -62,7 +62,7 @@ db.sqlite3 db.sqlite3-journal # Static Media Stuff -/media/ +stude/media/* # Flask stuff: instance/ diff --git a/stude/accounts/models.py b/stude/accounts/models.py index a90020f..8e7fcd3 100644 --- a/stude/accounts/models.py +++ b/stude/accounts/models.py @@ -28,5 +28,5 @@ class CustomUser(AbstractUser): max_length=50, choices=YEAR_LEVELS) semester = models.CharField( max_length=50, choices=SEMESTERS) - avatar = models.ImageField(upload_to='media/avatars', null=True) + avatar = models.ImageField(upload_to='avatars', null=True) pass