Files
@ 609bf3066f84
Branch filter:
Location: django-pydenticon/django_pydenticon/urls.py - annotation
609bf3066f84
781 B
text/x-python
DJPYD-2: Added description of configuration parameters.
5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 5f16d1bf5419 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 8e01669dd403 | # Django imports.
from django.conf.urls import patterns, url
# Application imports.
from .views import image
urlpatterns = patterns(
'django_pydenticon.views',
# View for rendering an identicon image.
url(r'^image/(?P<data>.+)$', image, name="image")
)
def get_patterns(instance="django_pydenticon"):
"""
Generates URL patterns for Django Pydenticon application. The return value
of this function can be used directly by the django.conf.urls.include
function.
Arguments:
instance - Instance namespace that should be assigned to generated URL
patterns.
Returns:
Tuple consisting out of URL patterns, instance namespace, and application
namespace.
"""
return urlpatterns, instance, "django_pydenticon"
|