wutang122 / babysteps

0 stars 0 forks source link

App initialization #1

Open kfwojton opened 2 years ago

kfwojton commented 2 years ago

See if you can set up a django app in this repo.

https://www.djangoproject.com/start/

Acceptance Criteria:

kfwojton commented 2 years ago

@wutang122 just pinging you here. Can you upload the django base files to this repo.

Bonus points if you can get a templateview, createview, and listview working!

https://docs.djangoproject.com/en/4.0/ref/class-based-views/base/

kfwojton commented 2 years ago

bonus bonus points if you can launch the app on a free heroku server, and auto deploy the code to the server such that if you update master branch the live code website updates automatically. Its actually super easy , all you have to do is:

  1. signup at heroku.com

  2. create a new server.

  3. in the deploy section click "auto deploy" connect your github and select the app you want to autodeploy from.

  4. set a Procfile in the root of your app. Here is an example of one of mine --> https://github.com/kfwojton/inventory_tracking/blob/master/Procfile

  5. Add the heroku URL to "allowed hosts" in the settings.py file

  6. push a new commit to your repo and you can watch the deploy occur in the heroku app .