[extensions-web] settings: Put the uploaded-files and xapian.db dirs outside the code
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] settings: Put the uploaded-files and xapian.db dirs outside the code
- Date: Mon, 2 Apr 2012 16:20:48 +0000 (UTC)
commit c54f083c15f866fe4979c82d922bea800850da8a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 2 11:47:07 2012 -0400
settings: Put the uploaded-files and xapian.db dirs outside the code
sweettooth/settings.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index ecb8e7d..63319ae 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -49,7 +49,7 @@ USE_L10N = True
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
-MEDIA_ROOT = os.path.join(SITE_ROOT, 'uploaded-files')
+MEDIA_ROOT = os.path.join(SITE_ROOT, '..', 'uploaded-files')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
@@ -170,7 +170,7 @@ LOGGING = {
DEFAULT_FROM_EMAIL = "noreply gnome org"
-XAPIAN_DB_PATH = os.path.join(SITE_ROOT, "xapian.db")
+XAPIAN_DB_PATH = os.path.join(SITE_ROOT, '..', 'xapian.db')
try:
from local_settings import *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]