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.
Source Distribution
Close
Hashes for django-dev-urls-2020.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bff9d2cb708eb491634dbcad7f3aed92827cb340105ebd84ac71a0f1fde000 |
|
MD5 | 4e0a0bd070905093b9bcb9c7782339a7 |
|
BLAKE2b-256 | 2e1d657bb19f3aa9ed6c2ef74ab1feb5fb0f44f6dd0da516707c1363c0445e47 |