manosim / manosim/django-rest-framework-docs

cannot load endpoints from different urls files

Open
#61 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.