I'm working on e-bookstore project inspired by the book Django 2 by Example
At this dev-stage my project contains:
- Book catalog
- Book details
- Cart
- Promo-codes(Coupons)
- Orders & Payments via PayPal
- Landing page & Newsletter subscription
- Site recommendations
I've decided to add custom user logging system and user profiles, and It was easy (thanks to Django).
Everything related to site logic worked fine until I started working on localizing the site into Russian. After that, some problems appeared: #1 The books were removed from the basket not immediately, but only after switching to any other page of the site. #2 Changing the information in the user's profile also broken now - changes will be applied only when I switched to other pages, and/or when I'm switching the site language. #3. When I'm playing with site logic (ex: add some book to user cart, change book quantity, clear cart, edit profile, surfing the book catalog) I can admit that cart(or user) data is obsolete, then refresh the page and it's OK.
No errors, no 500s, were noticed
You can go and check my source code on GitHub. I can't place all the code here.Please, download and test It if you want.
Adding @csrf_protect to views didn't work in this case.
Any ideas how to debug/test this issues?
Aucun commentaire:
Enregistrer un commentaire