Django development urlpatterns
Project description
Installation
$ [sudo] pip install django-dev-urls
Examples
urls.py
from django_dev_urls.urls import urlpatterns
urlpatterns += [
...
]
equivalent of
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
...
]
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.