Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove hardcoded version numbers from the download page.
- Loading branch information
Showing
3 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from __future__ import absolute_import, unicode_literals | ||
|
||
from django.conf.urls import patterns | ||
from django.conf.urls import patterns, url | ||
|
||
from .views import index, redirect | ||
|
||
urlpatterns = patterns('', | ||
(r'^$', index), | ||
(r'^([0-9a-z_.-]+)/(tarball|checksum|egg)/$', redirect), | ||
url(r'^$', index, name='download'), | ||
url(r'^([0-9a-z_.-]+)/(tarball|checksum|egg)/$', redirect, name='download-redirect'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters