aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/views.py (unfollow)
Commit message (Collapse)AuthorFilesLines
9 daysMajor refactoring and removal of junkMatthew Lemon1-4/+0
This commit includes significant refactoring, cleanup, and updates across various components of the Django project. The following changes were made: - **Database Migration Updates:** - Removed unnecessary migrations in the `alphabetlearning.contrib.sites` and `alphabetlearning.payments` apps, consolidating them into cleaner initial migration files. - Altered the `Site` model in `alphabetlearning.contrib.sites` to streamline its fields and default settings. - Introduced new models in `alphabetlearning.payments` related to email signups and verification, reflecting a shift in focus and better alignment with current business logic. - **Django Settings Changes:** - Updated the database settings to use SQLite for local development, while commenting out production-specific configurations. - Managed third-party dependencies within `requirements.txt` and `pyproject.toml`, ensuring alignment with the latest Django version (5.1.4) and removing obsolete dependencies (e.g., `celery`, `django-celery-beat`, `flower`, etc.). - **Docker and Compose Clean-up:** - Removed old Dockerfiles and unnecessary services from the `docker-compose` configuration, streamlining the local and production setups. - Updated the Dockerfile configuration for local development, focusing on essential services only. - **General Code Clean-up:** - Removed unused tasks, views, tests, and files related to the Celery and Redis frameworks. - Cleaned up various model definitions and their related migrations for consistency and clarity. - **Documentation and Comments:** - Updated comments and code documentation where necessary to reflect the changes made during this cleanup process. This major refactor aims to enhance project maintainability and streamline the development experience while preparing for future feature expansions and improvements.
9 daysRemoved Mailgun - all of itv.0.1-funnelMatthew Lemon1-108/+15
2024-12-09wip: moving home page to home app and implementing reCAPTCHAMatthew Lemon1-0/+2
2024-12-08wip: working on ratelimit - not quite working in the browserMatthew Lemon1-0/+2
2024-12-08Tidy imports, remove breakpoint, remove logged in linkMatthew Lemon1-2/+3
2024-12-08Uses Mailgun for production and local settingsMatthew Lemon1-6/+7
- credentials are in the .env file - uses the mailgun http API to send verification messages
2024-12-08wip: temporarily switched to mailgun testingMatthew Lemon1-19/+41
- this uses mailgun sandbox credentials whilst I was setting up the domain on there.
2024-12-08wip: sorting out the email sendingMatthew Lemon1-38/+61
2024-12-05Add unique constraint to EmailVerification email fieldMatthew Lemon1-58/+89
This update enhances the EmailVerification model by ensuring the email field is unique, preventing duplicate records. A new form, EmailVerificationForm, was also introduced to handle email cleaning and validation, which enhances user input handling. Additionally, existing views and templates have been updated to integrate this form, improving the user experience and error feedback.
2024-12-04Email verificationMatthew Lemon1-8/+43
- Associated changes in the .env file now allow us to test the SMTP server config - Added mine and J's email ad admins - Grab env variables from the .env file in the local.py file for testing purposes - Set an expiry of 24hrs for the validation link to work - Added an HTML version of the verification email
2024-12-03Better handling of email verificationMatthew Lemon1-4/+4
2024-12-03First cut at email verificationMatthew Lemon1-26/+69
2024-12-03Sorted importsMatthew Lemon1-12/+15
2024-12-02Some tweaks to the spurtMatthew Lemon1-0/+5
2024-11-26Got the basic form anbd privacy policy in placeMatthew Lemon1-13/+41
2024-10-20Can now delete item from basketMatthew Lemon1-3/+19
- if is only one item left, it is deleted along with the basket - if there are more than one, just that one is deleted - TODO needs proper handling of the confirmation page - it's not formatted. htmx?
2024-10-20tidying up the cart detail page - still nowhere near good enoughMatthew Lemon1-19/+16
2024-10-20bugfix: bad request if resource doesn't have price objectMatthew Lemon1-4/+3
2024-10-20Cart shows items in it; disables buttons if item in basketMatthew Lemon1-2/+7
- Rough cart icon in navbar - Shows items in cart - Styled dependent on existence - Add to cart buttons disabled if resource in cart, on resource list page and detail page - Throws 404 error if trying add item to cart which has no price - eventually all items will have a price
2024-10-20Updates the TODO list for payments viewsMatthew Lemon1-4/+4
2024-10-19Add multiple items to the cart and Stripe processMatthew Lemon1-9/+31
- Very rough but it works - Multiple items can be added to cart - Can be bought with stripe - Shopping cart is deleted after successful transaction
2024-10-19Changes the Resource to include Stripe referenceMatthew Lemon1-3/+3
2024-10-19Test email in the consoleMatthew Lemon1-2/+13
2024-10-17skeleton webhook for stripe workingMatthew Lemon1-0/+28
2024-10-17Adds TODO to the payments/view page for the next stepsMatthew Lemon1-0/+12
2024-10-17Update Stripe and include the API keyMatthew Lemon1-2/+3
2024-10-15Renamed from pyblackbird_cc to alphabetlearning - everywhereMatthew Lemon1-2/+2
2024-10-15wip: import tidying and renaming path in sassit aliasMatthew Lemon1-3/+8
2024-10-09wip: clicking add to cart button takes you to card detail but thats itMatthew Lemon1-2/+2
2024-10-09wip: working on tests for adding resource to a cartMatthew Lemon1-8/+4
2024-09-22very minor format changesMatthew Lemon1-2/+2
2024-09-19Looking crap but getting there - the basket...Matthew Lemon1-3/+0
2024-09-19wip: getting the thumbnails of resourcesMatthew Lemon1-4/+7
2024-09-16Upgrade to bootstrap 5.3Matthew Lemon1-0/+5
2024-09-11Cleaning up with ruff, typechecking, etc.Matthew Lemon1-2/+7
I am enabling lots of capability in neovim which is resulting in all this. Don't be scared.
2024-09-08wip: implementing checkoutMatthew Lemon1-0/+85
- also some formatting changes