diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 20:13:10 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 20:13:10 +0100 |
commit | 7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (patch) | |
tree | c5de47b92ed21e227cf0582c8f1f9171170b1a74 | |
parent | 52240b9a0c9efaf0d092bfb029b6ca7e74442217 (diff) |
wip: import tidying and renaming path in sassit alias
-rw-r--r-- | alias | 2 | ||||
-rw-r--r-- | pyblackbird_cc/payments/urls.py | 3 | ||||
-rw-r--r-- | pyblackbird_cc/payments/views.py | 11 |
3 files changed, 11 insertions, 5 deletions
@@ -1 +1 @@ -alias sassit='sass --no-source-map ~/code/python/pyblackbird_cc/pyblackbird_cc/static/scss/custom.scss ~/code/python/pyblackbird_cc/pyblackbird_cc/static/css/custom.css' +alias sassit='sass --no-source-map ~/code/python/alphabetlearning/pyblackbird_cc/static/scss/custom.scss ~/code/python/alphabetlearning/pyblackbird_cc/static/css/custom.css' diff --git a/pyblackbird_cc/payments/urls.py b/pyblackbird_cc/payments/urls.py index 72f6678..52e2451 100644 --- a/pyblackbird_cc/payments/urls.py +++ b/pyblackbird_cc/payments/urls.py @@ -1,7 +1,8 @@ from django.urls import path from . import views -from .views import CancelView, SuccessView +from .views import CancelView +from .views import SuccessView app_name = "payments" diff --git a/pyblackbird_cc/payments/views.py b/pyblackbird_cc/payments/views.py index 6ca31d8..8c32caa 100644 --- a/pyblackbird_cc/payments/views.py +++ b/pyblackbird_cc/payments/views.py @@ -1,13 +1,19 @@ import stripe from django.conf import settings from django.contrib.auth.decorators import login_required -from django.shortcuts import get_object_or_404, redirect, render +from django.shortcuts import get_object_or_404 +from django.shortcuts import redirect +from django.shortcuts import render from django.views import View from django.views.generic import TemplateView + from pyblackbird_cc.resources.models import Resource from pyblackbird_cc.users.models import User -from .models import CartItem, Price, Product, ShoppingCart +from .models import CartItem +from .models import Price +from .models import Product +from .models import ShoppingCart stripe.api_key = settings.STRIPE_SECRET_KEY @@ -88,4 +94,3 @@ def checkout(request): return render(request, "cart/checkout_success.html") return render(request, "cart/checkout.html", {"cart": cart, "total": total}) - pass |