Top "Django-urls" questions

The Django URL dispatch system

Getting 'str' object has no attribute 'get' in Django

views.py def generate_xml(request, number): caller_id = 'x-x-x-x' resp = twilio.twiml.Response() with resp.dial(callerId=caller_id) …

python django django-views django-urls
Page not found 404 on Django site?

I'm following the tutorial on Django's site to create a simple poll app. However, Django is unable to resolve "//127.0.0.1:8000/polls" , …

django views django-urls
The current URL, app/, didn't match any of these

I'm a newbie in Django and just started looking at it before a day by installing Django 1.10 on my local. …

python django python-3.x django-urls django-1.10
How do I redirect in Django with context?

I have a view that validates and saves a form. After the form is saved, I'd like redirect back to …

django django-urls
How does one put a link / url to the web-site's home page in Django?

In Django templates, is there a variable in the context (e.g. {{ BASE\_URL }}, {{ ROOT\_URL }}, or {{ MEDIA\_URL }} that …

python django django-urls
Django 2.0 path error ?: (2_0.W001) has a route that contains '(?P<', begins with a '^', or ends with a '$'

I'm new to Django and am trying to create the back end code for a music application on my website. …

python django python-3.x django-views django-urls
How to pass url parameter to reverse_lazy in Django urls.py

Consider that I have 1 resource and 2 urls (let's say new one and old one) connected to that resourse. So, i …

django django-urls
Raise 404 and continue the URL chain

I've got a URLs pattern like this: urlpatterns = ( url(r'^$', list_titles, name='list'), url(r'^(?P<tag&…

django django-urls django-views django-signals
django media url tag

Does django have media tag similar to static and url and how to setup it? {% static 'styles/boo.css' %} {% url …

python django django-urls
Django URL Pattern For Integer

I'm new to Python and Django. I added a URLPattern into urls.py as below: url(r'^address_edit/(\d)/$…

python regex django-urls