"""URL patterns for the facts web views.""" from django.conf.urls import url from django.urls import path from facts.views import factcategory_detail, index, rpc_get_facts, rpc_get_random_fact urlpatterns = [ path('rpc//', rpc_get_facts, name='weather_rpc_get_facts'), path('rpc//random/', rpc_get_random_fact, name='weather_rpc_get_random_fact'), url(r'^$', index, name='facts_index'), url(r'^(?P.+)/$', factcategory_detail, name='facts_factcategory_detail'), ]