django-payable
Getting Started
- Clone this repo.
- Set
STRIPE_PUBLIC_KEY
andSTRIPE_SECRET_KEY
in your environment. You can find your keys at https://dashboard.stripe.com/account/apikeys. If you're developing locally, you can create an .env file in the root folder. This file should have key-value pairs on different lines, e.g.STRIPE_PUBLIC_KEY=pk_test_1234567890
. You should probably setDEBUG=True
while developing locally as well. - Set up the database with
src/manage.py migrate
. - Create an admin user with
src/manage.py createsuperuser
. - Start the server with
src/manage.py runserver
. - Create your first invoice at http://localhost:8000/admin/payable/invoice/add/.
- Edit src/templates/invoice.html and src/static/styles/invoice.css until your invoice looks acceptable.
- Deploy your app to Heroku or your favorite hosting platform.