reading-notes

Class 34

Back to home page

API Deployment

Q. What are the key principles to follow when organizing and configuring Django settings for a project, according to the “Django Settings Best Practices” reading?

  1. Keep settings in environment variables
  2. Write default values for production configuration (excluding secret keys and tokens)
  3. Dont hardcode sensitive settings, and dont put them in VCS
  4. Split settings into groups: Django, third-party, project
  5. Follow naming conventions for custom (project) settings

Referenced from djangostars

Q. How does the White Noise library contribute to the efficient serving of static files in a Django application, and what are the steps to integrate it into a project?

Q. What is the purpose of Cross-Origin Resource Sharing (CORS) in web applications, and how can it be implemented and configured in a Django project to control access to resources?

Bookmark and review