2012-04-24 22:15:38 +04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import os
|
2012-05-01 17:46:18 +04:00
|
|
|
import math
|
2012-04-27 01:41:20 +04:00
|
|
|
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
STATIC_FILES_ROOT = os.path.join(ROOT_DIR, 'static')
|
|
|
|
|
|
|
|
#####################################################
|
|
|
|
# You can start editing settings after this comment #
|
|
|
|
#####################################################
|
2012-04-24 22:15:38 +04:00
|
|
|
|
2012-04-27 01:41:20 +04:00
|
|
|
# debug will get you error message and auto reload
|
|
|
|
# don't set this to True in production
|
2012-05-02 13:36:57 +04:00
|
|
|
DEBUG = False
|
2012-04-27 01:41:20 +04:00
|
|
|
|
|
|
|
# absolute path where the paste files should be store
|
|
|
|
# default in projectdirectory/static/content/
|
|
|
|
# use "/" even under Windows
|
2012-04-29 01:51:54 +04:00
|
|
|
PASTE_FILES_ROOT = os.path.join(STATIC_FILES_ROOT, 'content')
|
2012-05-01 16:21:21 +04:00
|
|
|
|
|
|
|
# Port and host the embeded python server should be using
|
|
|
|
HOST = "127.0.0.1"
|
|
|
|
PORT= "8000"
|
2012-04-29 01:51:54 +04:00
|
|
|
|
|
|
|
# User and group the server should run as. Set to None if it should be the
|
|
|
|
# current user
|
|
|
|
USER = None
|
2012-04-29 22:10:04 +04:00
|
|
|
GROUP = None
|
|
|
|
|
|
|
|
# limit size of pasted text in bytes. Be carefull allowing too much size can slow down user's
|
|
|
|
# browser
|
2012-05-01 17:39:31 +04:00
|
|
|
MAX_SIZE = 1024 * 500
|
2012-05-01 17:46:18 +04:00
|
|
|
MAX_SIZE_KB = int(math.ceil(MAX_SIZE / 1024.0))
|
2012-05-02 13:36:57 +04:00
|
|
|
|
|
|
|
# this import a file named settings_local.py if it exists
|
|
|
|
# you may want to create such a file to have different settings
|
|
|
|
# on each machine
|
|
|
|
try:
|
|
|
|
from settings_local import *
|
|
|
|
except ImportError:
|
|
|
|
pass
|