Configuration Guide
This guide explains the configuration options, default settings, and methods for customizing the Black and White Chef project.
Configuration Options:
Database Settings: - Default: The project uses a PostgreSQL database. - Customization:
Frontend Theme: - Default: The project uses a minimalistic theme. - Customization:
To customize the theme, edit the CSS files located in static/css:
` static/css/theme.css `
User Authentication: - Default: Basic username and password authentication. - Customization:
To enable third-party authentication (e.g., Google or GitHub), add and configure the corresponding OAuth libraries in settings.py.
Default Settings:
Server Port: - Default: The server runs on port 8000. - To change the port, run the server with the –port option:
` python manage.py runserver 8080 `Debug Mode: - Default: DEBUG = True during development. - For production, set DEBUG = False in settings.py:
`python DEBUG = False `
Customization Methods:
Environment Variables: - Store sensitive data such as API keys, database credentials, and debug mode settings in environment variables. - Use a .env file and the python-decouple package for easy management:
` DATABASE_PASSWORD=your_password DEBUG=False `Localization: - The project supports multiple languages. - To add a new language, create a new .po file in the locale directory and update settings.py with the new language code:
Logging: - Configure logging settings in settings.py to track errors or custom events:
By following this guide, you can configure and customize the Black and White Chef project to suit your needs.