summaryrefslogtreecommitdiff
path: root/settings.py
AgeCommit message (Collapse)Author
2011-12-01Normalize the URI scheme used for inbound links. Don't use one when ↵Luke Shumaker
possible, else use https
2011-12-01I think this fixes all the broken links (that point to parabolagnulinux.org ↵Luke Shumaker
anyway)
2011-11-26Merged with archweb trunkJohannes Krampf
2011-11-15Move certain settings above local settings importrelease_2011-11-15Dan McGee
This ensures one can override them in local_settings.py if necesary. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-14Allow population of signoff specs with SVN commit messagesDan McGee
This pulls them from the latest SVN commit on trunk. We don't have a failproof method of getting the exact right commit, but this should be close if it is run on a regular basis via cron (aka hourly). Note that running locally, I needed the development version of South to get the migration included here to apply because of information_schema changes in the current version of MySQL. 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-08-16Settings refreshrelease_2011-08-16Dan McGee
Update a few things in settings.py, but more importantly, update local_settings.py.template to be more in line with modern Django settings. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-03Merge branch 'master' of git://projects.archlinux.org/archwebNicolás Reynolds
Conflicts: packages/urls.py templates/packages/details.html
2011-08-03Merge branch 'master' of git://projects.archlinux.org/archwebNicolás Reynolds
Conflicts: templates/base.html
2011-07-05Add a default datetime formatDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-02Add a PGP key field on the dev profileDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-05-21More rebranding!Nicolás Reynolds
2011-05-21Merge branch 'master' of git://projects.archlinux.org/archwebNicolás Reynolds
Conflicts: devel/views.py feeds.py templates/devel/index.html templates/packages/flag.html templates/public/index.html todolists/views.py urls.py
2011-05-12More rebrandingNicolás Reynolds
2011-04-28Rename isotests to relengDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28isotests: update some syntax and ways of doing thingsDan McGee
To be more Django-like, Pythonic, or to fit better in the existing archweb project. Also add some created fields to the models, as storing dates for anything is almost always a good idea. 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-28isotests: entry and listing of release engineering testsTom Willemsen
Add a new project for entry and listing of testing results for our release ISOs. This will assist the release engineering team with determining a good ISO to make into the real deal. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-14Remove duplicate TEMPLATE_LOADERS configDan McGee
Whoops. This has been there a while. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-10Make it very easy to use the Django debug toolbarDan McGee
Add a config option DEBUG_TOOLBAR that defaults to False. If set to True in local_settings, add the relevant application and middleware to the settings to enable it. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-06Settings file tweaksDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-06Remove default adminsDan McGee
Set them in local_settings instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-19Unify hyphenation of out-of-date textDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-18Move hardcoded email address to settings fileDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Make it possible to override settingsDan McGee
By importing local settings at the end, you can override settings specified in settings.py. Helpful for something like the Django debug toolbar. The template loader needs to come last, however, in order to respect the TEMPLATE_DEBUG setting. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-22Get secure/unsecure checking actually workingDan McGee
We need a bit more, like actually having something relevant in the RequestContext object, in order for this to all work. Instead of putting the full request in just populate a 'secure' key with a boolean value indicating whether the request is secure. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-14Ensure consistent date formatting everywhererelease_2010-09-14Dan McGee
Set up a default DATE_FORMAT in settings.py and use it everywhere we do the '|date' template filter rather than hardcoding the value in the template. This also fixes a regression with news date/time now that we changed the field to store both date and time. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-14Re-enable etagsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-14Reorder middleware to be more inline with Django defaultsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Implement package difference filteringDan McGee
This is done as client-side JS which makes the page nice and fast. Minor versions can be excluded, as can packages in [multilib]. In addition, architecture filtering is in place so you can limit the subset of shown packages to those in any, both, one or the other. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-09Enable the cached_db session engine by defaultDan McGee
This will work out well when using memcached in production, and should just fall back to using the DB when developing locally with no cache or any other sort of caching. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-09Clean up settings fileDan McGee
Unify to using single quotes everywhere. No functional changes. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10Turn off L10N and I18NDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06Format all news items using markdownDan McGee
Implements FS#13741. A preview function is also added so working with news items is easier to make sure you get the formatting right. This will result in some older news items looking a bit weird if they didn't put linebreaks in all the right places, we can fix a few of these as we notice them. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02Only use cached template loader in productionDan McGee
Otherwise it is really confusing when you make template changes during development and they don't show up immediately. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Use the cached template loaderDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Cache everything, not just anonymous onlyDan McGee
We should be well-protected by the "Vary: Cookie" header, and if we aren't then we need to fix those pages that matter. This is the final step in getting at least the heaviest hit part of our site to be served without any Vary headers at all- the feeds. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-20Update to the new messages frameworkDan McGee
This is also another step in making sure we don't unnecessarily access the Django session object and thus add a Vary cache control header we don't want. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-20Remove AutoUserMiddlewareDan McGee
This was having some serious effects on caching as we would always have to access the user in the session, marking every page with a "Vary: Cookie" header. This is the start of stamping that out. The way we get the user for news item creation is now more similar to that from the todo lists, but not quite. That should be adjusted to be more like the news item creation. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-05Updates for CSRF protection in Django 1.2.XDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redirect to root url after loginDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-04Add a hacked version of Django UpdateCacheMiddlewarerelease_2010-05-04Dan McGee
This is to address a rather large issue with caching of feed objects in Django. Because they are built up using an XML library that does multiple writes on a file-like object, a single feed object, even when pulled from memcached, generates 1582 writes to the open socket rather than the optimal one it could do. Some version of this fix will be making it upstream, but I need to figure out how to approach that before I do so and for now this will address one of our larger performance issues on the live site since the packages feed is hit as often as it is. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Add initial South migration for 'main' appDan McGee
Thanks to Evangelos Foutras for the inspiration. Recreated from scratch only to make sure everything is in sync. From this point on, you will need to have the 'south' Django/Python package installed to use archweb. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Make all app name inclusions relativeDan McGee
No need to slap 'archweb' in all of these in the settings file. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-15Remove default debug setting in main settingsIsmael Carnales
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-11-09added USE_ETAGS setting from archweb_pubIsmael Carnales
2009-11-09added chache middlewares and anonymous only cache settingIsmael Carnales
2009-11-09added mirrors app from archweb_pubIsmael Carnales
2009-11-09added sitemaps from archweb_pubIsmael Carnales
2009-11-09added public appIsmael Carnales