diff --git a/app/settings.py b/app/settings.py index 00befba..07931fd 100644 --- a/app/settings.py +++ b/app/settings.py @@ -16,7 +16,6 @@ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ @@ -126,3 +125,6 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" AUTH_USER_MODEL = "core.User" LOGIN_REDIRECT_URL = "/" + + +from app.local_settings import * # noqa diff --git a/app/urls.py b/app/urls.py index 77dbe3e..c810a03 100644 --- a/app/urls.py +++ b/app/urls.py @@ -16,8 +16,8 @@ Including another URLconf from django.contrib import admin from django.urls import include, path -from core.views import Home, Profile, Signup from core.ui.views.drilldown import Drilldown +from core.views import Home, Profile, Signup urlpatterns = [ path("", Home.as_view(), name="home"), diff --git a/core/models.py b/core/models.py index 4cdf95b..4de0e93 100644 --- a/core/models.py +++ b/core/models.py @@ -25,5 +25,7 @@ class User(AbstractUser): plans = models.ManyToManyField(Plan, blank=True) def has_plan(self, plan): + if not self.paid: # We can't have any plans if we haven't paid + return False plan_list = [plan.name for plan in self.plans.all()] return plan in plan_list diff --git a/core/static/style.css b/core/static/style.css index b20149c..a5c3708 100644 --- a/core/static/style.css +++ b/core/static/style.css @@ -114,6 +114,11 @@ h5 { padding-top: 12px; padding-bottom: 3px; } +.search-box { + display: flex; + width: 100%; + height: 100%; +} .profile-info p { align-items: left; justify-content: left; diff --git a/core/templates/base.html b/core/templates/base.html index 09d1968..6c49dee 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -8,7 +8,7 @@
PROFILE INFO
-