Problem
The boost_weblate Django app currently lacks a proper AppConfig and URL routing. Without apps.py, Django cannot auto-discover the app or run its ready() hook. Without urls.py, the boost endpoint has no route table and cannot be mounted into Weblate's URL namespace. These two files are prerequisites for the DRF views (views.py) and for operators who need to wire the plugin into their Weblate deployment.
Acceptance Criteria
Implementation Notes
Week 20 research concluded that AppConfig.ready() + ROOT_URLCONF override is the preferred URL registration approach. The urls.py route table should be kept minimal: mount info and add-or-update under a single prefix. Use app_name for namespace isolation. Keep the URL patterns stable since they will be documented in the API docs (William's item).
References
- Related files:
src/boost_weblate/apps.py, src/boost_weblate/urls.py, src/boost_weblate/__init__.py
- Depends on: Plugin integration validation (this week), Week 20 URL registration research
Problem
The
boost_weblateDjango app currently lacks a properAppConfigand URL routing. Withoutapps.py, Django cannot auto-discover the app or run itsready()hook. Withouturls.py, the boost endpoint has no route table and cannot be mounted into Weblate's URL namespace. These two files are prerequisites for the DRF views (views.py) and for operators who need to wire the plugin into their Weblate deployment.Acceptance Criteria
src/boost_weblate/apps.pydefines aBoostWeblateConfig(AppConfig)withname = "boost_weblate", a human-readableverbose_name, and adefault_auto_fieldAppConfig.ready()performs any one-time initialization (e.g., signal registration) or is left as a clean no-op with a docstring explaining future usesrc/boost_weblate/urls.pydefines aurlpatternslist with routes for the boost endpoint (at minimum:GET /info/andPOST /add-or-update/)path()orre_path()and maps to view classes/functions defined inviews.pyapp_name = "boost_weblate") so thatreverse("boost_weblate:info")worksREADME.mddocuments how the operator includes the URL conf (e.g.,path("boost/", include("boost_weblate.urls")))Implementation Notes
Week 20 research concluded that
AppConfig.ready()+ROOT_URLCONFoverride is the preferred URL registration approach. Theurls.pyroute table should be kept minimal: mount info and add-or-update under a single prefix. Useapp_namefor namespace isolation. Keep the URL patterns stable since they will be documented in the API docs (William's item).References
src/boost_weblate/apps.py,src/boost_weblate/urls.py,src/boost_weblate/__init__.py