12 lines
351 B
Python
12 lines
351 B
Python
"""URL patterns for markov stuff."""
|
|
|
|
from django.conf.urls import url
|
|
from django.views.generic import TemplateView
|
|
|
|
from markov.views import context_index
|
|
|
|
urlpatterns = [
|
|
url(r'^$', TemplateView.as_view(template_name='index.html'), name='markov_index'),
|
|
url(r'^context/(?P<context_id>\d+)/$', context_index, name='markov_context_index'),
|
|
]
|