-
Notifications
You must be signed in to change notification settings - Fork 17
Add app configurations for all apps #1624
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
base: main
Are you sure you want to change the base?
Conversation
This brings enhancements to the app structure that comply with Django 3+. Introduced `apps.py` files with Django AppConfig classes for all apps in the project. Updated `__init__.py` files to include `default_app_config` for each app. Enhanced WSGI configuration to use WhiteNoise for static file handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Django AppConfig configuration files and related settings updates to enhance application structure and support for Django 3+.
- Introduces app-specific configuration in new apps.py files for apps like news, mail, global_settings, errata, donations, books, api, and accounts.
- Updates settings modules for REST framework and OpenStax Accounts integration, along with adjustments to the WSGI configuration to support WhiteNoise.
- Adjusts project-level settings to import these modular configuration components.
Reviewed Changes
Copilot reviewed 54 out of 54 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
openstax/settings/components/api.py | Added REST framework settings configuration |
openstax/settings/components/accounts.py | Added Accounts-related settings with dynamic URL construction |
openstax/settings/components/init.py | Aggregated and exposed individual settings components |
openstax/settings/init.py | Updated environment-based settings loading |
news/apps.py & news/init.py | Introduced app config for news with default_app_config |
mail/apps.py & mail/init.py | Introduced app config for mail with default_app_config |
global_settings/apps.py & global_settings/init.py | Updated global settings app configuration and default_app_config |
errata/apps.py & errata/init.py | Added app configuration for errata |
donations/apps.py & donations/init.py | Added app configuration for donations |
books/apps.py & books/init.py | Added app configuration for books |
api/apps.py & api/init.py | Introduced app config for api with default_app_config |
accounts/apps.py & accounts/init.py | Introduced app config for accounts with default_app_config |
""" | ||
# Import signal handlers if they exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] If the commented-out signal import is not needed, consider removing it to reduce clutter, or add a note explaining its anticipated future use.
""" | |
# Import signal handlers if they exist | |
If signal handlers are added in the future, uncomment the line below to import them. | |
""" |
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is way over my head on the django stuff, my only concern is that you created a lot of configs but didn't remove any, this stuff must have existed before you rearranged it right?
This brings enhancements to the app structure that comply with Django 3+.
Introduced
apps.py
files with Django AppConfig classes for all apps in the project. Updated__init__.py
files to includedefault_app_config
for each app. Enhanced WSGI configuration to use WhiteNoise for static file handling.