dr.botzo/facts/urls.py
Brian S. Stephan fb04732ec3 facts: recreate the choices experience in facts
recreates the choices view in facts, allowing for display of any fact
category in the system, and providing a random item from it

bss/dr.botzo#15
2017-02-11 09:34:15 -06:00

10 lines
288 B
Python

"""URL patterns for the facts web views."""
from django.conf.urls import url
from facts.views import index, factcategory_detail
urlpatterns = [
url(r'^$', index, name='facts_index'),
url(r'^(?P<factcategory_name>.+)/$', factcategory_detail, name='facts_factcategory_detail'),
]