Commit Graph

133 Commits

Author SHA1 Message Date
Jelle van der Waa
d240db37cd urls.py: use Django 2.0 simplified url routing syntax 2019-02-18 21:08:50 +01:00
Jelle van der Waa
4a2c87b0f6 Fix check on debug toolbar 2019-02-09 14:56:23 +01:00
Jelle van der Waa
2e5be1e78f Add debug_toolbar support
Add support to use the Django debug toolbar with an easy setting in
local_settings.py.

Closes: #174
2019-02-05 21:03:43 +01:00
Jelle van der Waa
b74466cf27 urls: Update to Django 2.x 2019-01-21 21:19:58 +01:00
Jelle van der Waa
a43ab2a992 urls: add no cover pragma for unused show_urls 2018-11-22 21:50:02 +01:00
Jelle van der Waa
2f55536485 feeds: Add package removal / deletion feed
Add new feeds for newly added packages and packages which where removed
from the repository's.
2018-06-08 19:52:45 +02:00
Johannes Löthberg
4ce9368cbf urls: Give / the name index
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08 12:51:19 +02:00
Johannes Löthberg
996ef6ec72 Change urls.py from patterns to list of url()
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08 12:51:19 +02:00
Jelle van der Waa
285d09ce01 urls.py: make pylint happy 2017-07-11 21:36:52 +02:00
Jelle van der Waa
3c59e8837c urls.py: remove unused imports 2017-07-11 21:36:21 +02:00
Jelle van der Waa
f2ada514b2 urls.py: remove legacy urls
The legacy urls where introduced in 2011 get rid of them since it's
2017.
2017-06-12 20:39:13 +02:00
Jelle van der Waa
3d1a8302ba Make print statements Python 3 compatible 2017-05-28 16:45:06 +02:00
Jelle van der Waa
5e56e7ff22 sitemap: port jinja templates to django
Port the .jinja templates to pure django templates
2017-05-02 21:13:56 +02:00
Dan McGee
5a31b86871 Slight tweaks to login and logout pages
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>
2015-01-13 18:24:56 -06:00
Dan McGee
b1aa075652 Add a todolists sitemap
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08 19:26:51 -06:00
Dan McGee
96a7614285 Add a news-specific sitemap
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-08 16:31:38 -06:00
Dan McGee
4c5b478543 Convert sitemap.xml template to Jinja2
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08 15:58:26 -06:00
Dan McGee
a3015ba842 Override default sitemap.xml template
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-08 15:54:56 -06:00
Dan McGee
5bfe138a86 Add new StaffGroup object
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-11-02 10:44:03 -06:00
Dan McGee
7c46d07f64 Use varied prime numbers for caching lengths
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19 18:12:58 -05:00
Dan McGee
28d486870d More changes for move to Django 1.7
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-01 18:26:05 -05:00
Jakub Klinkovský
35fc1b458c update URLs to Arch wiki
Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01 15:30:12 -05:00
Dan McGee
00b9084303 Remove public todolists view
Replace this with a redirect to the developer todolist index page.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-11 18:24:56 -05:00
Dan McGee
7bf9c6e065 Remove /jsi18n/ view mapping
We removed the last non-admin usage of this in commit e65c780554, so
it can be removed.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-09 12:54:44 -06:00
Dan McGee
445c242dac Add a releases model sitemap
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-08 21:12:46 -06:00
Dan McGee
a15d0850af Slight reorganization of urls.py
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-21 11:08:35 -06:00
Dan McGee
fbc153ed45 Initial cut of a Releases RSS feed
This is our first use of enclosures on the site as well.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19 10:33:03 -06:00
Dan McGee
45d81a9578 Move JSON keys view to public/ app
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-11-13 10:21:02 -06:00
Dan McGee
3e07659622 Add a few more redirects for old links
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-10-02 06:52:59 -05:00
Dan McGee
58ecb90c3f Add caching of sitemaps
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-09-30 13:30:21 -05:00
Dan McGee
c03b9c5f10 feeds: add all arches for repo feed
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-31 00:16:36 -05:00
Dan McGee
d68e00f195 Remove use of deprecated redirect_to function-based generic view
We can use the class-based replacement instead.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
590060d1b4 Remove no-longer needed handler imports
This was finally fixed upstream in
https://code.djangoproject.com/ticket/5350.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
d5a19db526 Add packages.php URL redirect
This was seen in Google webmaster tools.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-21 11:06:49 -05:00
Dan McGee
b59e79f387 Opensearch enhancements
* 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-05-01 17:13:33 -05:00
Dan McGee
23cb0d0956 Remove media/ staticfiles URL location
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-26 12:34:16 -05:00
Dan McGee
b8c20439c0 Change Django urls.py import
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-03-23 19:54:40 -05:00
Dan McGee
48f51dea41 Add a retro site view and link it to a URL
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-02-18 19:24:33 -06:00
Dan McGee
9ddbe26e4c Add a few cache headers and minor feed caching back in
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>
2012-01-03 15:00:49 -06:00
Dan McGee
6b8ef446bc Add master key overview page
And a bunch of text that may suck, but is better than nothing.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-30 13:55:36 -06:00
Dan McGee
a883b0af23 Add a split packages sitemap
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-11-11 11:57:04 -06:00
Dan McGee
2c8b7ad07b Add some legacy URL redirects
Amazing that we still see hits on these URLs...

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-27 00:26:03 -05:00
Dan McGee
71e57570c2 Pylint suggested and other cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-11 19:29:15 -05:00
Dan McGee
a01a11cfad Cache static /jsi18n/ resource for one week
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-07 11:31:55 -05:00
Dan McGee
d5063bd1d2 Add package visualizations page
Why the hell not? Have fun clicking all the pretty buttons.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-05 15:45:44 -05:00
Dan McGee
cda9c5bb34 Add a base pages sitemap
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15 16:55:03 -05:00
Dan McGee
bfe6afcd7a Rename isotests to releng
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:58:13 -05:00
Tom Willemsen
c5a28f8893 isotests: modelines, imports, url and pass
* 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-28 14:00:54 -05:00
Dan McGee
b2f7cd61e8 Convert generic views in urls.py to class-based
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:33 -05:00
Dan McGee
c722d8bf9e Remove multiple account login/logout URLs
And slightly spruce up the logout template with a header.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-04 09:36:18 -06:00