diff --git a/app/settings.py b/app/settings.py index 5489aeb..720de0c 100644 --- a/app/settings.py +++ b/app/settings.py @@ -23,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = "insecure-fake-key-do-not-use-in-production" # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True ALLOWED_HOSTS = [] diff --git a/app/urls.py b/app/urls.py index b69a630..dd75772 100644 --- a/app/urls.py +++ b/app/urls.py @@ -19,11 +19,11 @@ from django.contrib import admin from django.urls import include, path from core.ui.views.drilldown import Drilldown -from core.views import Home, Profile, Signup +from core.views import Billing, Home, Signup urlpatterns = [ path("", Home.as_view(), name="home"), - path("profile/", Profile.as_view(), name="profile"), + path("billing/", Billing.as_view(), name="billing"), path("admin/", admin.site.urls), path("accounts/", include("django.contrib.auth.urls")), path("accounts/signup/", Signup.as_view(), name="signup"), diff --git a/core/templates/base.html b/core/templates/base.html index 91c7641..bb3499e 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -30,7 +30,7 @@ + {% include 'checkout.html' %} diff --git a/core/templates/index.html b/core/templates/index.html index 2614412..7460795 100644 --- a/core/templates/index.html +++ b/core/templates/index.html @@ -1,12 +1,10 @@ {% extends "base.html" %} {% block content %} -

Pathogen Products Panel

-

Billing and subscription management

-
- {% if user.subscription_active %} - {% include 'checkout.html' %} - {% else %} -

Please setup a payment mandate in the profile page to view products

- {% endif %} +

Pathogen Data Insights

+
+

Welcome to the Neptune system

+
+

Hello!

+
{% endblock %} diff --git a/core/views.py b/core/views.py index 03a99ad..394b2f0 100644 --- a/core/views.py +++ b/core/views.py @@ -16,8 +16,8 @@ class Home(View): return render(request, self.template_name) -class Profile(LoginRequiredMixin, View): - template_name = "profile.html" +class Billing(LoginRequiredMixin, View): + template_name = "billing.html" def get(self, request): return render(request, self.template_name)