this repo is the result of tutorial at https://learndjango.com/tutorials/hello-world-5-different-ways
- App + TemplateView
- This approach works well for large projects where you want a dedicated pages app for static pages.
- Function-Based View
- No Template
- No App
- We don't have to use apps, actually, if we don't want to. It's possible to create a "Hello World" page solely within our project-level directory.
- Directly edit the path in urls.py at the project level
- Models
- A fifth approach would be to use the database to display our "Hello World" message. That involves adding a models.py file and leveraging the built-in DetailView.
- create a model
- register the model
- add a record in the databaseadd urls patterns at app level
- add a Template
- add a view to read from the database
- A fifth approach would be to use the database to display our "Hello World" message. That involves adding a models.py file and leveraging the built-in DetailView.
To play around
- Create VENV
- install django