summaryrefslogtreecommitdiff
path: root/urls.py
AgeCommit message (Collapse)Author
2019-02-09Fix check on debug toolbarJelle van der Waa
2019-02-05Add debug_toolbar supportJelle van der Waa
Add support to use the Django debug toolbar with an easy setting in local_settings.py. Closes: #174
2019-01-21urls: Update to Django 2.xJelle van der Waa
2018-11-22urls: add no cover pragma for unused show_urlsJelle van der Waa
2018-06-08feeds: Add package removal / deletion feedJelle van der Waa
Add new feeds for newly added packages and packages which where removed from the repository's.
2018-04-08urls: Give / the name indexJohannes Löthberg
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08Change urls.py from patterns to list of url()Johannes Löthberg
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-07-11urls.py: make pylint happyJelle van der Waa
2017-07-11urls.py: remove unused importsJelle van der Waa
2017-06-12urls.py: remove legacy urlsJelle van der Waa
The legacy urls where introduced in 2011 get rid of them since it's 2017.
2017-05-28Make print statements Python 3 compatibleJelle van der Waa
2017-05-02sitemap: port jinja templates to djangoJelle van der Waa
Port the .jinja templates to pure django templates
2015-01-13Slight tweaks to login and logout pagesDan McGee
Turns out has_errors hasn't worked since Django pre-1.0, wow. Remove that old code and clean up some other small things while we're in there. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Add a todolists sitemapDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Add a news-specific sitemapDan McGee
This follows the spec at https://support.google.com/news/publisher/answer/74288?hl=en#tagdefinitions Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Convert sitemap.xml template to Jinja2Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Override default sitemap.xml templateDan McGee
The Django one uses the spaceless tag, which isn't all that useful when we are gzipping the response anyway. Remove it to make generation a tad faster. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-02Add new StaffGroup objectrelease_2014-11-02Dan McGee
This will allow us to be a bit more dynamic in showing the people listings on the website. We'll be adding a Support Staff category to recognize those that do things around here but aren't technically developers. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Use varied prime numbers for caching lengthsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01More changes for move to Django 1.7Dan McGee
The removal of the root `__init__.py` file is so the testing framework does consistent imports of our models now that the loading strategy has changed. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01update URLs to Arch wikiJakub Klinkovský
Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-11Remove public todolists viewDan McGee
Replace this with a redirect to the developer todolist index page. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-09Remove /jsi18n/ view mappingDan McGee
We removed the last non-admin usage of this in commit e65c78055474, so it can be removed. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-08Add a releases model sitemapDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-21Slight reorganization of urls.pyDan McGee
Move some of the not-so-frequently used resources further down in the list of URLs, which will ever so slightly speed up the resolver. Sitemaps don't need to be checked near as often, for instance. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19Initial cut of a Releases RSS feedDan McGee
This is our first use of enclosures on the site as well. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-13Move JSON keys view to public/ appDan McGee
This seems like a more appropriate place, and now the visualization is done here anyway so we should move the data backing it. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-02Add a few more redirects for old linksDan McGee
This covers more .php pages noticed in Google webmaster tools, as well as some links to former documentation. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-30Add caching of sitemapsDan McGee
Upstream Django bug #2713 was fixed in https://github.com/django/django/commit/123f567093, so we can now enable caching of sitemaps. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-31feeds: add all arches for repo feedDan McGee
If you wanted to see all updates regardless of architecture for [testing] before, there wasn't really a way to do so. Add one. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24Remove use of deprecated redirect_to function-based generic viewDan McGee
We can use the class-based replacement instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24Remove no-longer needed handler importsDan McGee
This was finally fixed upstream in https://code.djangoproject.com/ticket/5350. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-21Add packages.php URL redirectDan McGee
This was seen in Google webmaster tools. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-01Opensearch enhancementsDan McGee
* Add a 64x64 icon as indicated in the Opensearch specification. * Add suggestions capability and a new view providing suggestions based on package name starting with the typed value. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-26Remove media/ staticfiles URL locationDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Change Django urls.py importDan McGee
Until Django 1.3, the functions include(), patterns() and url() plus handler404, handler500 were located in a django.conf.urls.defaults module. In Django 1.4, they live in django.conf.urls. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18Add a retro site view and link it to a URLDan McGee
This is from our friends at web.archive.org, who's earliest capture of the Arch Linux website was on March 28, 2002. Seems like something nice to do around the 10th anniversary of the website being up and the distro being around, and not hotlinking their servers also seems like a good idea. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-03Add a few cache headers and minor feed caching back inDan McGee
Now that we aren't using the middleware, add cache headers on our primary pages so we can prevent some repeat traffic, and cache all feeds for five minutes. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-30Add master key overview pageDan McGee
And a bunch of text that may suck, but is better than nothing. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-11Add a split packages sitemaprelease_2011-11-11Dan McGee
With very low priority, but this should at least give a few more cross-linking pages to any crawlers using sitemaps. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-27Add some legacy URL redirectsDan McGee
Amazing that we still see hits on these URLs... Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-11Pylint suggested and other cleanupsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-07Cache static /jsi18n/ resource for one weekDan McGee
Rather than the default middleware page cache length of only minutes. This will save clients a lot of requests when browsing packages. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-05Add package visualizations pageDan McGee
Why the hell not? Have fun clicking all the pretty buttons. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15Add a base pages sitemapDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28Rename isotests to relengDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28isotests: modelines, imports, url and passTom Willemsen
* Added vim modelines to files. * Rearranged import statements. * Moved the arch releng isos url to settings.py. * Fixed some issues that arose from forgetting to import the isotests urls package. * removed redundant str() calls. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07Convert generic views in urls.py to class-basedDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-04Remove multiple account login/logout URLsDan McGee
And slightly spruce up the logout template with a header. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-27Slight refactor of user list viewsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>