You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- fix#37
- Follows Django conventions for HTTP URLs. Allows us to add more in the future when needed.
- Major overhaul of the readme to improve readability.
- Expose IdomWebsocket to encourage type hinting
- Removes IDOM_BASE_URL as it was difficult to use in conjunction with Django base URLs
Old Behavior
Currently, we expect the user to add
IDOM_WEB_MODULE_PATH
within the urlpattern, however, this is an antipattern within the Django frameworkNew Behavior
Follow Django conventions and utilize standard path variables.
Implementation Details
Replace instructions to utilize
IDOM_WEB_MODULE_PATH
withpath("idom/", include("django_idom.http.urls"))
Create
django_idom.http.urls
that contains aurlpatterns = [...]
Anywhere within
django-idom
where we need to determine the URL, we need to fetch it using djangoreverse("idom:web_modules")
This implementation also requires that we remove
IDOM_BASE_URL
as a variable.Code of Conduct
The text was updated successfully, but these errors were encountered: