From 1ca9da5841168ee1f3ef3d45ccdcdf46357c5e21 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Thu, 4 Apr 2013 16:45:15 +0000 Subject: set settings.STATIC_ROOT from rpki.autoconf.datarootdir instead of substituting it at build time svn path=/trunk/; revision=5274 --- rpkid/portal-gui/default_settings.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rpkid/portal-gui/default_settings.py') diff --git a/rpkid/portal-gui/default_settings.py b/rpkid/portal-gui/default_settings.py index ad89b6cf..3d3e3f51 100644 --- a/rpkid/portal-gui/default_settings.py +++ b/rpkid/portal-gui/default_settings.py @@ -4,6 +4,12 @@ This module contains static configuration settings for the web portal. __version__ = '$Id$' +import os +from rpki import autoconf + +# where to put static files +STATIC_ROOT = autoconf.datarootdir + '/rpki/media' + # must end with a slash! STATIC_URL = '/media/' -- cgit v1.2.3