Source

Pypaste / friendpaste / settings.py

The default branch has multiple heads

# -*- 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.