evildmp / Arkestra

Arkestra extends Django CMS to provide an intelligent semantic web publishing system for organisations and institutions.
http://arkestra-project.org
BSD 2-Clause "Simplified" License
139 stars 27 forks source link

Url patterns (re)defined only in urls.py #69

Closed darbula closed 11 years ago

darbula commented 11 years ago

Urls for contacts, news and vacancies were defined in multiple places:

This situation prevents changing/translating the default urls (i.e. contacts/ news/ etc). In this commit url patterns in urls.py are given names and then reverse is used to resolve urls where needed i.e. in Entity.get_related_info_page_url or in URLModelMixin.get_absolute_url.

Url patterns are named so that their name can be deduced from url_path and url_attribute when needed.

darbula commented 11 years ago

This pull is closed in favor of pull #71.