E
E
EgorLee2021-09-19 14:42:24
Django
EgorLee, 2021-09-19 14:42:24

How to prefix api in django?

How to prefix api in django so that a regular site would work at the address: www.exemple.com or exemple.com, and the api part of the site would work at the domain: api.exemple.com?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nesterov, 2021-09-19
@AlexNest

Means of pure django - no way.
This is implemented in the server configuration (apache/nginx...)
PS "prefixes" are subdomains.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question