| Issue 3: | Allow configurable URLs | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Allow users to host the forums at any URL they choose. This patch requires FORUM_BASE to be set to something like '/forum' or ''.
Oct 11, 2007
url.py: forum_regex = '^' + settings.FORUM_BASE[1:] + '/' This line confused me because it includes a trailing slash. All other paths in my settings.py have a trailing slash so my settings.FORUM_BASE = '/forum/'. Maybe you should alter the regex or just specify a trailing slash is needed to maintain what seems to be a convention.
Oct 11, 2007
javinievas: You seem to have uploaded the wrong file.
Oct 11, 2007
I like the idea of having this configurable, however I don't think it needs a new
urls.py. As this is an application, your master urls.py would have something like:
(r'^my/path/to/forum/', include('djangoforum.urls')),
djangoforum.urls then only has to have relative URI's. We therefore only need to
update models.py to use settings.FORUM_BASE rather than assuming /forum/.
Status:
Accepted
Oct 11, 2007
Latest revision uses settings.FORUM_BASE in get_absolute_url(). Readme updated.
Status:
Fixed
|
2.7 KB View Download