diff --git a/cookbook/migrations/0012_auto_20191115_1504.py b/cookbook/migrations/0012_auto_20191115_1504.py new file mode 100644 index 000000000..022cc9586 --- /dev/null +++ b/cookbook/migrations/0012_auto_20191115_1504.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.7 on 2019-11-15 14:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0011_recipe_time'), + ] + + operations = [ + migrations.AlterField( + model_name='recipe', + name='time', + field=models.IntegerField(default=0), + ), + ] diff --git a/recipes/settings.py b/recipes/settings.py index 28eb92f26..44d2cf760 100644 --- a/recipes/settings.py +++ b/recipes/settings.py @@ -26,6 +26,9 @@ ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('ALLOWED_HOST LOGIN_REDIRECT_URL = "index" LOGOUT_REDIRECT_URL = "index" +SESSION_EXPIRE_AT_BROWSER_CLOSE = False +SESSION_COOKIE_AGE = 365 * 60 * 24 + CRISPY_TEMPLATE_PACK = 'bootstrap4' DJANGO_TABLES2_TEMPLATE = 'cookbook/templates/generic/table_template.html'