Commit 1651252a authored by Michal Čihař's avatar Michal Čihař

Use separate namespace for API urls

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 336af1f3
......@@ -307,7 +307,7 @@
</tr>
<tr>
<th>{% trans "API root URL:" %}</th>
<td><a href="{{ site_url }}{% url 'api-root' %}">{{ site_url }}{% url 'api-root' %}</a></td>
<td><a href="{{ site_url }}{% url 'api:api-root' %}">{{ site_url }}{% url 'api:api-root' %}</a></td>
</tr>
<tr>
<th colspan="2">{% trans "API usage example:" %}</th>
......@@ -317,7 +317,7 @@
<pre>
curl \
-H "Authorization: Token {{ user.auth_token.key }}" \
{{ site_url }}{% url 'api-root' %}
{{ site_url }}{% url 'api:api-root' %}
</pre>
</td>
</tr>
......
......@@ -688,7 +688,7 @@ urlpatterns = [
url(r'^accounts/', include(weblate.accounts.urls)),
# Auth
url(r'^api/', include(weblate.api.urls)),
url(r'^api/', include(weblate.api.urls, namespace='api')),
# Static pages
url(r'^contact/', weblate.accounts.views.contact, name='contact'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment