# Path: demo/demo/views.py
# def index(request):
#     return render_themed(request, 'index', {})
# 
# def listing(request):
#     return render_themed(request, 'listing', {'articles': get_list_or_404(Article)})
# 
# def detailed(request, article_id):
#     return redirect('demo:articles-listing')


from django.urls import re_path
from .views import index, listing, detailed



urlpatterns = [
    re_path(r'^$', index, name='index'),
    re_path(r'^articles/$', listing, name='articles-listing'),
    re_path(r'^articles/(?P<article_id>\d+)/$', detailed, name='articles-detailed'),

# Path: demo/demo/views.py
# def index(request):
#     return render_themed(request, 'index', {})
# 
# def listing(request):
#     return render_themed(request, 'listing', {'articles': get_list_or_404(Article)})
# 
# def detailed(request, article_id):
#     return redirect('demo:articles-listing')


# Path: demo/demo/urls.py
from django.urls import re_path
from .views import index, listing, detailed




urlpatterns = [
    re_path(r'^$', index, name='index'),
    re_path(r'^articles/$', listing, name='articles-listing'),
    re_path(r'^articles/(?P<article_id>\d+)/$', detailed, name='articles-detailed'),

]