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 *
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 *
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
o2w_settings-0.0.1.tar.gz
(4.8 kB
view details)
File details
Details for the file o2w_settings-0.0.1.tar.gz
.
File metadata
- Download URL: o2w_settings-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6289f342a1a9763b731e1e0d2ed09bc0633a027ae7324f2759606692b4fcb799 |
|
MD5 | 9f37ada43c33aa6d338600705e1f322d |
|
BLAKE2b-256 | 627540b92b8215ede2f71c6ffa87b26eb2f2df9ac7fb1c9fa489ddc0c4cf92b4 |