Getting GET in django view
<p>I have this URL pattern to get to my view: </p>

<pre><code>url(r'^api/cabinet/(?P&lt;cabinetid&gt;[0-9]+)/bin/$', views.api_cabinetbin),
</code></pre>

<p>and pointing my browser to <code>http://domain/api/cabinet/10/bin/</code> gives me the info on cabinet 10.</p>

<p>I would like to put some extra info to the URL, like this: <code>http://domain/api/cabinet/10/bin/?format=test</code>. However, this gives me a 404 (<code>{"detail":Not found."}</code> is the message I see in my browser).</p>

<p>The view is like this:</p>

<pre><code>@api_view(['GET', 'POST'])
@authentication_classes((SessionAuthentication,BasicAuthentication,TokenAuthentication))
@permission_classes((IsAuthenticated,))
def api_cabinetbin(request, cabinetid):
    ...
</code></pre>

<p>Turns out, <code>format</code> has some magical properties in Django REST framework.</p>

<p>Using another variable did work.</p>

python django django-rest-framework