request.user.message_set.create(message=msg)
if directory is None:
# The DIRECTORY does not exist, raise an error to prevent eternal redirecting.
- raise ImproperlyConfigured(_("Error finding upload directory. Maybe it does not exist?"))
+ raise ImproperlyConfigured(_("Error finding upload directory: %s. Maybe it does not exist?" % os.path.join(MEDIA_ROOT, DIRECTORY)))
redirect_url = reverse("fb_browse") + query_helper(query, "", "dir")
return HttpResponseRedirect(redirect_url)
abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, path)
from redakcja.settings import *
# Path to repository with managed documents
-WIKI_REPOSITORY_PATH = '/home/lrekucki/projekty/fundacja/books'
+WIKI_REPOSITORY_PATH = '/srv/redakcja/books'
-LOGGING_CONFIG_FILE = "/home/lrekucki/projekty/fundacja/redakcja/logging.cfg.dev"
+LOGGING_CONFIG_FILE = "/srv/redakcja/logging.cfg.dev"
-STATIC_ROOT = '/home/lrekucki/projekty/fundacja/redakcja/redakcja/static/'
-MEDIA_ROOT = '/home/lrekucki/projekty/fundacja/media/'
+STATIC_ROOT = '/srv/redakcja/static/'
+MEDIA_ROOT = '/srv/redakcja/media/'
-# Subdirectory of STATIC_ROOT containing images
+# Subdirectory of MEDIA_ROOT containing images
IMAGE_DIR = 'images'
CAS_SERVER_URL = 'http://logowanie.wolnelektury.pl/cas/'