Skip to content

url配置里正则表达式结尾少了¥ 导致slug参数无法正确传参 #3

@whee1

Description

@whee1

url(r'^category/(?P<bigslug>.*?)/(?P<slug>.*?)', IndexView.as_view(template_name='content.html'), name='category'),

应改为
url(r'^category/(?P<bigslug>.*?)/(?P<slug>.*?)/$', IndexView.as_view(template_name='content.html'), name='category'),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions