- settings.py is global to all apps in a django project.
- Django documentation in this link provides good overview of the settings.
- This link provides more detailed info of these settings
- Settings those needed change for first time.
- INSTALLED_APPS
- TEMPLATES
- STATICFILES_DIRS
- Settings those might needed change.
- DEBUG
- Set to true by default, but is best set to false when your web project is deployed. When DEBUG is true, any stack traces are shown in the webpage, which is helpful for development but is a security risk when the side is publicly available.
- DATABASES
- We're using the built in default database called SQLite, but if you want to use a production ready database such as PostgreSQL or MYSQL, You'll need to change the engine and name entries in the DATABASES setting and in production, you'll need to set the user and password entries for authentication
If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged
No comments:
Write comments