by James Glennon
The site is for a gym/fitness centre.
The basic model is business to customer B2C.
The product is membership to the centre. A possible consideration is different tiers of membership. (e.g. swimming only, gym only, gym and swim)
The payment model should be recurring subscription , with ease of cancellation being a priority to the customer. Cancellation should not imediately remove the remainder of a customer's membership time. Ideally, bulk once-off payment which does not automatically renew should also be provided as a payment option. Such a payment method could have a different price (i.e a discount for prepurchasing a long membership).
Both the customer and the business staff should be able to see how much longer a customer has on their membership.
After changing from the local db.sqlite3 server to the elephantSQL, I attempted to change the DATABASE_URL recorded in the heroku config_vars but was unable.
The problem was addressed by deleting the associated Heroku Postgres resource. This deleted any database data currently saved on heroku, but allowed the heroku app be connected to the elephantSQL database instead.
Logging into the Django backend through heroku live site using the '/admin' url and the superuser info returns a "csrf token missing" error.
On refreshing the page, the login attempt appears to have gone through, allowing backend maintainence.
followed steps from W3 schools to display static files in development environment when 'DEBUG = False'.
Followed steps from Make Us Of.
Python code from Code Institute's Boutique Ado walkthrough project was used to display/hide links for logged-in users / anonymous
Copied from bootstrap documentation