Messy but working save confirmation on change page

This commit is contained in:
Thu Trang Pham
2020-10-31 16:29:46 -07:00
parent 220e9d8b41
commit 48c8e9bd10
12 changed files with 221 additions and 23 deletions
-16
View File
@@ -1,16 +0,0 @@
"""
ASGI config for testproject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testproject.settings')
application = get_asgi_application()
+6 -6
View File
@@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
@@ -31,6 +31,8 @@ ALLOWED_HOSTS = ['127.0.0.1']
# Application definition
INSTALLED_APPS = [
'admin_confirm',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -38,9 +40,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'admin_confirm',
'tests.market',
'market',
]
MIDDLEWARE = [
@@ -53,7 +53,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'tests.testproject.urls'
ROOT_URLCONF = 'testproject.urls'
TEMPLATES = [
{
@@ -71,7 +71,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'tests.testproject.wsgi.application'
WSGI_APPLICATION = 'testproject.wsgi.application'
# Database