From a16079c30841a5fb7e9c2504566156621335c53d Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 14 Jul 2021 17:12:41 +0200 Subject: [PATCH] Add heroku --- proyect/settings.py | 16 ++++------------ requirements.txt | 5 ++++- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/proyect/settings.py b/proyect/settings.py index d9c9d64..2453a79 100644 --- a/proyect/settings.py +++ b/proyect/settings.py @@ -1,16 +1,5 @@ -""" -Django settings for proyect project. - -Generated by 'django-admin startproject' using Django 3.2.5. - -For more information on this file, see -https://docs.djangoproject.com/en/3.2/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.2/ref/settings/ -""" - from pathlib import Path +import django_heroku # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -127,3 +116,6 @@ STATIC_ROOT = "static" # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + +# Activate Django-Heroku. +django_heroku.settings(locals()) diff --git a/requirements.txt b/requirements.txt index 58ae99c..a83b412 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,7 @@ djangorestframework==3.12.4 django-extensions==3.1.3 Faker==8.10.1 pytest==6.2.4 -pytest-django==4.4.0 \ No newline at end of file +pytest-django==4.4.0 +# Heroku +gunicorn +django-heroku \ No newline at end of file