Top "Django-urls" questions

The Django URL dispatch system

Using {% url ??? %} in django templates

I have looked a lot on google for answers of how to use the 'url' tag in templates only to …

django django-templates django-urls
Getting Django admin url for an object

Before Django 1.0 there was an easy way to get the admin url of an object, and I had written a …

django django-admin django-urls
Django optional url parameters

I have a Django URL like this: url( r'^project_config/(?P<product>\w+)/(?P<project_id&…

python django django-views django-urls
What is a NoReverseMatch error, and how do I fix it?

I have some code and when it executes, it throws a NoReverseMatch, saying: NoReverseMatch at /my_url/ Reverse for 'my_…

django django-urls
Difference between static STATIC_URL and STATIC_ROOT on Django

I am confused by static root and want to clarify things. To serve static files in Django, the following should …

django django-urls django-staticfiles
Django - after login, redirect user to his custom page --> mysite.com/username

By default after login django redirects the user to an accounts/profile page or if you edit the LOGIN_REDIRECT_…

django django-views django-urls django-settings
Is it better to use path() or url() in urls.py for django 2.0?

In a django online course, the instructor has us use the url() function to call views and utilize regular expressions …

python django django-urls
Django URL Redirect

How can I redirect traffic that doesn't match any of my other URLs back to the home page? urls.py: …

python django django-urls
Django URLs TypeError: view must be a callable or a list/tuple in the case of include()

After upgrading to Django 1.10, I get the error: TypeError: view must be a callable or a list/tuple in the …

python django django-urls django-1.10
Django HttpResponseRedirect

I have created a basic contact form, and when the user submits information, it should redirect to the "Thank You" …

python django django-views django-urls