Source

Pypaste / friendpaste / settings.py

The default branch has multiple heads

Full commit
# -*- coding: utf-8 -*-
# Copyright 2008 by Benoît Chesneau <benoitc@e-engura.com>
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os

DEBUG = True

SITE_URI='http://www.friendpaste.com'
ORBITED_HOST = 'orbited.friendpaste.com'
ORBITED_PORT = 80

if DEBUG:
    SITE_URI = 'http://localhost:5000'
    ORBITED_HOST = '192.168.1.2'
    ORBITED_PORT = 9000
 

# database
SERVER_URI='http://127.0.0.1:5984'
DATABASE_NAME='friendpaste'

# path 
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
STATIC_PATH = os.path.join(PROJECT_PATH, '../static')
TEMPLATES_PATH = os.path.join(PROJECT_PATH, '../templates')

SITE_ID=1
SECRET_KEY='*j4c=nhmvl@up^@)ftp0i8^2r8woplh^tlwen=z1vs=yod^bc%'

TOP_LEXERS=[] 
############
# SESSIONS #
############
SESSION_COOKIE_NAME = 'FRIENDPASTE_SID'
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_PATH = '/'
SESSION_COOKIE_SECURE = False