-
Notifications
You must be signed in to change notification settings - Fork 1
Chore : Refactor jazzmin settings and enhance token management in admin panel #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore : Refactor jazzmin settings and enhance token management in admin panel #40
Conversation
- Moved Jazzmin configuration to `jazzmin.py` for better organization. - Added static folder to `STATICFILES_DIRS`. - Included a dummy logo for branding. - Updated environment variables for improved configurability.
- Registered `UserActivationToken`, `ResetPasswordToken`, and `TokenProxy` in Django admin. - Created custom Jazzmin links to group tokens under "Auth Models" in the left navigation panel. - Updated `jazzmin.py` to hide original models and display them under the auth section.
- Moved environment variable loading logic to a single utility file (`env_config.py`). - Removed duplicated environment loading code from multiple places. - Imported environment setup from `env_config.py` in other files for cleaner code.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
|
Here's the code health analysis summary for commits Analysis Summary
|
- Renamed `JAZZMIN_SETTINGS` to `JAZZMIN_SETTINGS_CONFIG` to avoid "Variable assigned to itself" error (PYL-W0127). - Updated all references to `JAZZMIN_SETTINGS` to use `JAZZMIN_SETTINGS_CONFIG` for consistency and to prevent potential conflicts.
Description:
This pull request introduces several improvements to the project, including centralizing the environment variable setup, enhancing the Django admin panel with custom Jazzmin links, and organizing the static and branding assets.
Fixes : #39
Changes:
Refactor Environment Variable Setup
env_config.py) for cleaner and more maintainable code.env_config.py.Admin Token Management with Jazzmin
UserActivationToken,ResetPasswordToken, andTokenProxyin the Django admin interface.jazzmin.pyto hide the original models and display them only under the custom "Auth Models" section for better organization and usability.Jazzmin Configuration and Static Setup
jazzmin.pyfile for better organization.STATICFILES_DIRSto improve static file management.Why This Change?