Remove unnecessary configuration directive

This commit is contained in:
Mark Veidemanis 2022-07-21 13:50:41 +01:00
parent c5e811878b
commit db87a138f2
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 8 additions and 9 deletions

View File

@ -1,3 +1,9 @@
# Secret key
SECRET_KEY = ""
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# OpenSearch settings
OPENSEARCH_URL = "127.0.0.1"
OPENSEARCH_PORT = 9200
@ -36,3 +42,4 @@ STRIPE_API_KEY_PROD = "sk_prod_xxx"
STRIPE_PUBLIC_API_KEY_PROD = "pk_prod_xxx"
STRIPE_ENDPOINT_SECRET = ""
STATIC_ROOT = ""

View File

@ -20,10 +20,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "insecure-fake-key-do-not-use-in-production"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# MOVED TO local_settings.py
ALLOWED_HOSTS = []
@ -118,8 +115,6 @@ USE_TZ = True
STATIC_URL = "static/"
STATICFILES_DIRS = (os.path.join(BASE_DIR, "core/static/"),)
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field

View File

@ -23,8 +23,6 @@ class Home(View):
def get(self, request):
blocks = ContentBlock.objects.filter(page="home").order_by("position")
print("BLOCKS", blocks)
print("ITER", [x.position for x in blocks])
context = {"blocks": blocks}
return render(request, self.template_name, context)
@ -34,7 +32,6 @@ class Billing(LoginRequiredMixin, View):
def get(self, request):
context = {"plans": Plan.objects.all(), "user_plans": request.user.plans.all()}
return render(request, self.template_name, context)