Friday, December 1, 2017

Django Learn Series| Settings



  1. settings.py is global to all apps in a django project.
  2. Django documentation in this link provides good overview of the settings.
  3. This link provides more detailed info of these settings
  4. Settings those needed change for first time.
    • INSTALLED_APPS
    • TEMPLATES
    • STATICFILES_DIRS
  5. 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