1
A url is a string. The one and two arguments are substrings of your url (as described in your urls.py).
If you want your one argument to fetch a model name, you’ll have to check it manually.
def function(request, one, two):
if one == 'MyModel':
MyModel.objects.raw('SELECT * FROM ...')
Source:stackexchange.com