Top "Django-urls" questions

The Django URL dispatch system

django template extends not working

This is my base.html <!DOCTYPE html> <head> <title> My Site </title> &…

django django-templates django-views django-urls
How to access url hash/fragment from a Django Request object

As in the title: How can I access the URL hash/fragment (the part following the hash #, or 'pound symbol' …

python django hash django-urls fragment-identifier
Pass url argument to ListView queryset

models.py class Lab(Model): acronym = CharField(max_length=10) class Message(Model): lab = ForeignKey(Lab) urls.py urlpatterns = patterns('', …

django django-urls
Django Rest Framework reverse and SimpleRouter

How do I use DRF's reverse to call a complex URL from SimpleRouter? My URL is at two places, one …

django django-rest-framework django-urls
Django/python: 'function' object has no attribute 'as_view'

I am trying to create a list_view for a model queryset. When running my server, it returns : attribute error …

django django-views django-urls django-generic-views
django url pattern for %20

In Django what is the url pattern I need to use to handle urlencode characters such as %20 I am using (?…

django django-urls
Access kwargs from a URL in a Django template

Can I access value of a named argument (from the URL) in a Django template? Like can I access the …

django django-templates django-urls
Django URL.py and the index

I want to know what is the best way to write in the URL.py. I am trying to get …

python django django-urls
How to use namespace urls with django in a reusuable app

I have a django app, a forum app, that has templates with it. In those templates, there are urls that …

django django-urls
New url format in Django 1.9

I recently upgraded my Django project to version 1.9. When I try to run migrate, I am getting the following two …

django django-urls django-1.9