The self-hosted eCommerce Builder ships with a few built-in commands for checking that things are actually configured correctly, rather than finding out the hard way when a customer tries to check out. Run all of these with your virtual environment activated.
\r\nCheck Your Stripe Configuration
\r\npython manage.py test_stripe
\r\nVerifies your Stripe keys are present and valid without processing a real payment. Run this right after initial setup, and again any time you change your Stripe credentials or switch between test and live mode.
\r\nCheck Your Email Configuration
\r\npython manage.py test_email --to your-email@example.com
\r\nValidates the SMTP connection, tests authentication, and sends an actual test email so you can confirm delivery end to end. Run this after setting up email, and again after changing any SMTP credential.
\r\nCheck Your Migrations Match Your Models
\r\npython manage.py makemigrations --check
\r\nConfirms there's no mismatch between your database schema and your code before you deploy. Run this before every update, especially if you've made any customisations of your own.
\r\nRun the Full Test Suite
\r\npython manage.py test
\r\nRuns the application's full automated test suite. This is mainly useful if you (or a developer you've hired) have modified the code and want to confirm nothing else broke as a result.
\r\nWhen to Run These
\r\n- \r\n
- Right after initial setup, before you go live: test_stripe and test_email \r\n
- Any time you change a Stripe or SMTP credential: the matching one of the two above \r\n
- Before every update or deploy: makemigrations --check \r\n
- After any custom code change: test \r\n
\r\n