zuri-training / Chunk-File_Proj_team_49

We are creating a product that enables users split large JSON and CSV files into smaller chunks
5 stars 6 forks source link

Hosting the chunk-it on the heroku platform #120

Closed SydneyTechnologies closed 2 years ago

SydneyTechnologies commented 2 years ago

1.Serve static files using whitenoise

  1. Use a database that is supported by heroku in order to save models
SydneyTechnologies commented 2 years ago

a new branch called production has been created. The code in this branch is currently what is being hosted on heroku. I did to following things to achieve this:

  1. connected the django application to the postgres database that is provided by heroku, and made use of python decouple to server environment variables to the application from heroku
  2. Added, the python module whitenoise to serve static files
  3. Added a simple patch to the existing register view, to check if a user already exists before creating a new user instance