manosim / manosim/django-rest-framework-docs
cannot load endpoints from different urls files
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 641
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
In case someone is using subdomains and his api endpoints are in a separate urls.py file (ex.: api_urls.py) its unable to find the routes.
IMHO it would be great to have a setting (variable) in settings.py where this file can be defined and not strictly use the base urls.py.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how endpoint discovery reads Django's urls.py, then inspect how a setting in settings.py could select an alternate file such as api_urls.py. The change is done when configured endpoint files, including subdomain routes, are discovered while the existing default behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100