summaryrefslogtreecommitdiffstats
path: root/settings.py
AgeCommit message (Collapse)AuthorFilesLines
2010-08-09Enable the cached_db session engine by defaultDan McGee1-1/+2
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 McGee1-5/+5
Unify to using single quotes everywhere. No functional changes. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10Turn off L10N and I18NDan McGee1-0/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-07Format all news items using markdownDan McGee1-0/+1
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-03Only use cached template loader in productionDan McGee1-5/+9
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 McGee1-0/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Cache everything, not just anonymous onlyDan McGee1-2/+0
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-21Update to the new messages frameworkDan McGee1-0/+4
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-21Remove AutoUserMiddlewareDan McGee1-1/+0
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 McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redirect to root url after loginDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-04Add a hacked version of Django UpdateCacheMiddlewareDan McGee1-1/+1
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 McGee1-0/+1
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 McGee1-9/+9
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 Carnales1-3/+0
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-11-10added USE_ETAGS setting from archweb_pubIsmael Carnales1-0/+2
2009-11-10added chache middlewares and anonymous only cache settingIsmael Carnales1-0/+4
2009-11-10added mirrors app from archweb_pubIsmael Carnales1-0/+1
2009-11-10added sitemaps from archweb_pubIsmael Carnales1-0/+1
2009-11-10added public appIsmael Carnales1-0/+1
2009-11-10removed RequireLoginMiddlewareIsmael Carnales1-1/+0
2009-11-10modified import paths from archweb_dev to archwebIsmael Carnales1-9/+9
2009-08-10Add a page to aid Aaron in user creation.Dusty Phillips1-1/+1
2008-11-28Remove caching crud from archweb_devDan McGee1-8/+0
We aren't going to enable this because it is a restricted-access site, so no need in keeping the crud around. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-10-11drop useless viewDusty Phillips1-3/+0
2008-10-11drop wiki appDusty Phillips1-1/+0
2008-10-06use an autouser middleware to set the creator of an objectDusty Phillips1-0/+1
2008-06-05Template fix. doh!eliott1-1/+1
2008-05-23Updates for deployment.eliott1-1/+1
- Fix for reporead when description is empty. - Fix for settings.py. Middleware wasn't found (changed import name) - Clarity change for dashboard.
2008-04-17Added default charset setting valueeliott1-0/+1
2008-04-12set some default values in the settings fileeliott1-0/+4
2008-04-10Removed login_required from the individual views.eliott1-0/+1
Not entire dev site requires login.
2008-03-08Moved models aroundeliott1-1/+2
2008-01-06Removed DATA_DIR setting vareliott1-1/+0
2008-01-06subtle changes to settings fileseliott1-7/+0
moved cache controls to local_settings
2008-01-06Changed a few var nameseliott1-2/+2
2007-12-30Removed public appeliott1-1/+0
2007-12-30Moved some things around.eliott1-1/+1
2007-12-30Massive retab fest.eliott1-0/+2
Also added vim command comment to the end of files.
2007-12-30Moved common to publiceliott1-2/+1
2007-12-29Moved admin media under media dir.eliott1-1/+1
It helps with both serving static files during a testing scenario, to easing deployment.
2007-12-26initial stab at an authentication middlewareeliott1-0/+3
2007-12-23removed need to specify deploypath manuallyeliott1-0/+2
2007-12-22renamed importseliott1-9/+9
2007-11-03Initial import for public release...eliott1-0/+89
Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!