Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Helper funcions

Project Description
===========
Default settings
===========

# In app/settings/common.py

#encoding:utf-8
import sys
from os.path import abspath, dirname, join, normpath
######### PATH CONFIGURATION
# Absolute filesystem path to this Django project directory.
DJANGO_ROOT = dirname(dirname(abspath(__file__)))

# Add all necessary filesystem paths to our system path so that we can use
# python import statements.
sys.path.append(dirname(DJANGO_ROOT))
sys.path.append(normpath(join(DJANGO_ROOT, '../apps')))
sys.path.append(normpath(join(DJANGO_ROOT, '../libs')))
sys.path.append(normpath(join(DJANGO_ROOT, "lib", "python2.7", "site-packages")))
########## END PATH CONFIGURATION

import o2w.settings
o2w.settings.DJANGO_ROOT = DJANGO_ROOT
from o2w.settings.common import *




# In app/settings/dev.py

from common import *
from o2w.settings.dev import *


# In app/settings/prod.py

from common import *
from o2w.settings.prod import *
Release History

Release History

This version
History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
o2w_settings-0.0.1.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source May 27, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting