Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's a little unclear from your question, but <a href="http://docs.djangoproject.com/en/dev/topics/http/urls/" rel="nofollow noreferrer" title="http://docs.djangoproject.com/en/dev/topics/http/urls/">http://docs.djangoproject.com/en/dev/topics/http/urls/</a> will likely provide an explanation to what you're after.</p> <p>Especially useful to note how Django processes requests:</p> <p>When a user requests a page from your Django-powered site, this is the algorithm the system follows to determine which Python code to execute:</p> <ol> <li>Django determines the root URLconf module to use. Ordinarily, this is the value of the ROOT_URLCONF setting, but if the incoming HttpRequest object has an attribute called urlconf (set by middleware request processing), its value will be used in place of the ROOT_URLCONF setting.</li> <li>Django loads that Python module and looks for the variable urlpatterns. This should be a Python list, in the format returned by the function django.conf.urls.defaults.patterns().</li> <li>Django runs through each URL pattern, in order, and stops at the first one that matches the requested URL.</li> <li>Once one of the regexes matches, Django imports and calls the given view, which is a simple Python function. The view gets passed an HttpRequest as its first argument and any values captured in the regex as remaining arguments.</li> </ol> <p>If you're just after the full path, you can try:</p> <p><a href="http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_full_path" rel="nofollow noreferrer" title="http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_full_path">http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_full_path</a></p> <p>I hope that helps - it indicates how to use the URLconf module, and hopefully will help point you in the right direction.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload