Remove unnecessary configuration directive
This commit is contained in:
parent
c5e811878b
commit
db87a138f2
|
@ -1,3 +1,9 @@
|
||||||
|
# Secret key
|
||||||
|
SECRET_KEY = ""
|
||||||
|
|
||||||
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
|
DEBUG = True
|
||||||
|
|
||||||
# OpenSearch settings
|
# OpenSearch settings
|
||||||
OPENSEARCH_URL = "127.0.0.1"
|
OPENSEARCH_URL = "127.0.0.1"
|
||||||
OPENSEARCH_PORT = 9200
|
OPENSEARCH_PORT = 9200
|
||||||
|
@ -36,3 +42,4 @@ STRIPE_API_KEY_PROD = "sk_prod_xxx"
|
||||||
STRIPE_PUBLIC_API_KEY_PROD = "pk_prod_xxx"
|
STRIPE_PUBLIC_API_KEY_PROD = "pk_prod_xxx"
|
||||||
|
|
||||||
STRIPE_ENDPOINT_SECRET = ""
|
STRIPE_ENDPOINT_SECRET = ""
|
||||||
|
STATIC_ROOT = ""
|
||||||
|
|
|
@ -20,10 +20,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = "insecure-fake-key-do-not-use-in-production"
|
# MOVED TO local_settings.py
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
|
||||||
DEBUG = True
|
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = []
|
||||||
|
|
||||||
|
@ -118,8 +115,6 @@ USE_TZ = True
|
||||||
|
|
||||||
STATIC_URL = "static/"
|
STATIC_URL = "static/"
|
||||||
|
|
||||||
STATICFILES_DIRS = (os.path.join(BASE_DIR, "core/static/"),)
|
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,6 @@ class Home(View):
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
blocks = ContentBlock.objects.filter(page="home").order_by("position")
|
blocks = ContentBlock.objects.filter(page="home").order_by("position")
|
||||||
print("BLOCKS", blocks)
|
|
||||||
print("ITER", [x.position for x in blocks])
|
|
||||||
context = {"blocks": blocks}
|
context = {"blocks": blocks}
|
||||||
return render(request, self.template_name, context)
|
return render(request, self.template_name, context)
|
||||||
|
|
||||||
|
@ -34,7 +32,6 @@ class Billing(LoginRequiredMixin, View):
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
context = {"plans": Plan.objects.all(), "user_plans": request.user.plans.all()}
|
context = {"plans": Plan.objects.all(), "user_plans": request.user.plans.all()}
|
||||||
|
|
||||||
return render(request, self.template_name, context)
|
return render(request, self.template_name, context)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue