X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fplanetstack%2Fsettings.py;h=63af805ec5fb427cf6786852ccbaf9ee49296e07;hb=3bcf71ec77be4d44007e02837c0ee79701fbb91a;hp=c8da725d7f605c5bbe557287cad317701b78015f;hpb=32fd368d804ce306160ffbea6ceb586ca60802a1;p=plstackapi.git diff --git a/planetstack/planetstack/settings.py b/planetstack/planetstack/settings.py index c8da725..63af805 100644 --- a/planetstack/planetstack/settings.py +++ b/planetstack/planetstack/settings.py @@ -4,6 +4,8 @@ from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP from config import Config config = Config() +GEOIP_PATH = "/usr/share/GeoIP" + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -59,12 +61,12 @@ USE_TZ = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/var/www/example.com/media/" -MEDIA_ROOT = '' +MEDIA_ROOT = '/var/www/html/files/' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://example.com/media/", "http://media.example.com/" -MEDIA_URL = '' +MEDIA_URL = '/files/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files @@ -141,6 +143,9 @@ INSTALLED_APPS = ( 'core', 'hpc', 'requestrouter', + 'cassandra', + 'kairos', + 'nagios', 'syndicate', 'geoposition', ) @@ -195,9 +200,13 @@ SUIT_CONFIG = { {'label': 'Sites', 'icon':'icon-site', 'url': '/admin/core/site/'}, {'label': 'Slices', 'icon':'icon-slice', 'url': '/admin/core/slice/'}, {'label': 'Users', 'icon':'icon-user', 'url': '/admin/core/user/'}, - {'label': 'Request Routing', 'icon':'icon-cog', 'app': 'requestrouter'}, + {'label': 'RequestRouter', 'icon':'icon-cog', 'app': 'requestrouter'}, {'label': 'HyperCache', 'icon':'icon-cog', 'app': 'hpc'}, {'label': 'Syndicate', 'icon':'icon-cog', 'app': 'syndicate'}, + {'label': 'Cassandra', 'icon':'icon-cog', 'app': 'cassandra'}, +# {'label': 'KairosDB', 'icon':'icon-cog', 'app': 'kairos'}, +# {'label': 'Nagios', 'icon':'icon-cog', 'app': 'nagios'}, + #{'label': 'Configured Services', 'icon':'icon-cog', 'models': [{'label': 'Content Delivery Network', 'app':'hpc'}]}, # 'sites', # {'app': 'auth', 'icon':'icon-lock', 'models': ('user', 'group')}, @@ -238,3 +247,5 @@ LOGGING = { }, } } + +BIGQUERY_TABLE = getattr(config, "bigquery_table", "demoevents")