summaryrefslogtreecommitdiffstats
path: root/urls.py
AgeCommit message (Collapse)AuthorFilesLines
2020-02-03Introduce planet functionality in archwebJelle van der Waa1-1/+4
This change introduces a replacment for planet.archlinux.org which uses a python 2 project to generate static html from multiple RSS feed sources. For archweb a set of 'static' feeds can be created in the django admin view for the Arch forums and other static feeds, archweb users can add their own blog rss feed in their profile which will create a Feed model. When running the update_planet command, all Feed models are iterated over and the rss feed is parsed. The latest FeedItem is queried matching the current Feed model and every newer entry in the RSS feed is added as new FeedItem. Since the body is also stored in the FeedItem there is a limit to the amount of FeedItems per Feed configured in settings.py of which the default is 25. When a user is marked as inactive his Feed model and items are removed automatically to avoid keeping stale data around. Closes: #261
2019-03-26retro: remove retro moduleJelle van der Waa1-6/+0
The retro pages have been moved to a seperate git repository with static content.
2019-02-18urls.py: use Django 2.0 simplified url routing syntaxJelle van der Waa1-1/+1
2019-02-09Fix check on debug toolbarJelle van der Waa1-1/+1
2019-02-05Add debug_toolbar supportJelle van der Waa1-1/+9
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 Waa1-3/+3
2018-11-22urls: add no cover pragma for unused show_urlsJelle van der Waa1-1/+2
2018-06-08feeds: Add package removal / deletion feedJelle van der Waa1-1/+5
Add new feeds for newly added packages and packages which where removed from the repository's.
2018-04-08urls: Give / the name indexJohannes Löthberg1-1/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08Change urls.py from patterns to list of url()Johannes Löthberg1-61/+63
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-07-11urls.py: make pylint happyJelle van der Waa1-1/+1
2017-07-11urls.py: remove unused importsJelle van der Waa1-2/+2
2017-06-12urls.py: remove legacy urlsJelle van der Waa1-26/+0
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 Waa1-1/+1
2017-05-02sitemap: port jinja templates to djangoJelle van der Waa1-2/+2
Port the .jinja templates to pure django templates
2015-01-13Slight tweaks to login and logout pagesDan McGee1-9/+5
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 McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Add a news-specific sitemapDan McGee1-1/+8
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 McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Override default sitemap.xml templateDan McGee1-1/+1
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 McGee1-5/+6
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 McGee1-9/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01More changes for move to Django 1.7Dan McGee1-1/+0
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ý1-1/+1
Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-11Remove public todolists viewDan McGee1-1/+1
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 McGee1-2/+0
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 McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-21Slight reorganization of urls.pyDan McGee1-34/+43
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 McGee1-1/+2
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 McGee1-0/+1
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 McGee1-0/+10
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 McGee1-7/+8
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 McGee1-0/+2
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 McGee1-8/+4
We can use the class-based replacement instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24Remove no-longer needed handler importsDan McGee1-2/+1
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 McGee1-0/+1
This was seen in Google webmaster tools. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-01Opensearch enhancementsDan McGee1-0/+2
* 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 McGee1-5/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Change Django urls.py importDan McGee1-1/+1
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 McGee1-0/+4
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 McGee1-4/+4
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 McGee1-0/+1
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 McGee1-0/+1
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 McGee1-0/+15
Amazing that we still see hits on these URLs... Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-11Pylint suggested and other cleanupsDan McGee1-7/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-07Cache static /jsi18n/ resource for one weekDan McGee1-1/+4
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 McGee1-0/+1
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 McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28Rename isotests to relengDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28isotests: modelines, imports, url and passTom Willemsen1-1/+2
* 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>