Fix name project and Add Heroku deploy

This commit is contained in:
Andros Fenollosa 2021-07-14 17:17:52 +02:00
parent a16079c308
commit c877ddbcc9
8 changed files with 6 additions and 8 deletions

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: gunicorn project.wsgi

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@ -6,7 +6,7 @@ import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proyect.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:

View File

@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proyect.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
application = get_asgi_application()

View File

@ -41,7 +41,7 @@ MIDDLEWARE = [
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
ROOT_URLCONF = "proyect.urls"
ROOT_URLCONF = "project.urls"
TEMPLATES = [
{
@ -59,7 +59,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = "proyect.wsgi.application"
WSGI_APPLICATION = "project.wsgi.application"
# Database

View File

@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proyect.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
application = get_wsgi_application()