diff --git a/.gitignore b/.gitignore index 19e63ac..52e206b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,12 @@ .idea db.sqlite3 __pycache__ - +*.env # Capistrano /config/ Capfile Gemfile Gemfile.lock capistrano.log +<<<<<<< HEAD -# api -/api/.env diff --git a/api/masteriqapp/migrations/0005_category_image_path.py b/api/masteriqapp/migrations/0005_category_image_path.py index 1022252..3524835 100644 --- a/api/masteriqapp/migrations/0005_category_image_path.py +++ b/api/masteriqapp/migrations/0005_category_image_path.py @@ -1,5 +1,7 @@ # Generated by Django 5.0.2 on 2024-03-08 08:42 +from os import path +from django.conf import settings from django.db import migrations, models @@ -13,6 +15,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='category', name='image_path', - field=models.CharField(default='data\\images\\default.jpeg', max_length=255), + field=models.CharField(default=path.join(settings.IMAGES_FOLDER, 'default.jpeg'), max_length=255), ), ]