I am setting up a new URL path but I keep getting a page not found. This is my URL that isn't working:
url(r'^collections/(?P<collection_name>\d+)$', collections.home, name='collections'),
This is the function in my view:
def home(request, collection_name, slug=None):
collection_data = Collections.objects.get(collection_name=collection_name)
try:
logged_id = request.GET.get('admin_id')
except:
logged_id = ""
return render(request, 'collections.html', {'collection_data':collection_data,'logged_id':logged_id})
This is the error I am getting:
If I turn it into a simple URL and remove the parameter from the URL and view function as follows, it works fine so I know I'm pointing to the right view:
url(r'^collections$', collections.home, name='collections'),
In the same file I have another URL as follows, and it also works fine:
url(r'^store/(?P<seller_id>\d+)$', store.home, name='store'),
This leads me to believe that I have a simple typo or something really basic that I am overlooking. Can anyone help me spot the error here? Thank you!

collection_namea string?