Files
@ 1980dba2bd79
Branch filter:
Location: django-pydenticon/django_pydenticon/urls.py - annotation
1980dba2bd79
781 B
text/x-python
DJPYD-2: Adding a README file.
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"
|