diff --git a/app/local_settings.example.py b/app/local_settings.example.py index a73bffd..fa54526 100644 --- a/app/local_settings.example.py +++ b/app/local_settings.example.py @@ -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 = "" diff --git a/app/settings.py b/app/settings.py index c07d169..e075551 100644 --- a/app/settings.py +++ b/app/settings.py @@ -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 diff --git a/core/views/__init__.py b/core/views/__init__.py index 8d32817..3b53290 100644 --- a/core/views/__init__.py +++ b/core/views/__init__.py @@ -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)