Найти - Пользователи
Полная версия: Добрый день. помогите разобраться с ошибкой NoReverseMatch at
Начало » Django » Добрый день. помогите разобраться с ошибкой NoReverseMatch at
1
lex911
Добрый день, у установил модуль в mezzanine, теперь при переходе вылетает ошибка


NoReverseMatch at /ru/admin/careers/jobpost/
Reverse for 'jobpost_detail' with arguments '()' and keyword arguments '{'slug': u'\u043f\u0442\u0440\u0432\u0440\u0438-1'}' not found. 0 pattern(s) tried: []


url этого приложения

from django.conf.urls.defaults import patterns, url
# Job Post patterns.
urlpatterns = patterns("careers.views",
    url("^tag/(?P<tag>.*)/$",
        "jobpost_list",
        name="jobpost_list_tag"),
    url("^archive/(?P<year>\d{4})/(?P<month>\d{1,2})/$",
        "jobpost_list",
        name="jobpost_list_month"),
    url("^archive/(?P<year>.*)/$",
        "jobpost_list",
        name="jobpost_list_year"),
    url("^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>.*)/$",
        "jobpost_detail",
        name="jobpost_detail_date"),
    url("^(?P<slug>.*)/$",
        "jobpost_detail",
        name="jobpost_detail"),
    url("^$",
        "jobpost_list",
        name="jobpost_list"),
)
inoks
C unicode slug модуль не дружит

попробуйте вместо:
url("^(?P<slug>.*)/$", "jobpost_detail", name="jobpost_detail"),

url(u"^(?P<slug>.*)/$", "jobpost_detail", name="jobpost_detail"),
lex911
inoks
C unicode slug модуль не дружитпопробуйте вместо:
Не помогло
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB