This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django-before - tools that are needed BEFORE any others in each django project.


make_subpather - tool to calculate relative paths from root directory.

# at the beginning of
from django_before import make_subpather

# e.g. I have project structure where this file is here: project_root/src/django_project/settings/
# so root of my project is 4 levels higher:
subroot = make_subpather(__file__, 4)

# know I can handy get paths relative to root of the project:
MEDIA_ROOT = subroot('static_content/media/')

DIR_SAMPLE_IMAGES = subroot('src/crm/res/sample_images')

json settings reader

make_json_settings_reader - tool to read settings from json file (e.g. secret settings).

# create settings reader
secrets = make_json_settings_reader(subroot('conf/secrets.json'))

# use it for reading settings
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'mydbname',
        'USER': 'mydbuser',
        'PASSWORD': secrets['DATABASE_PASSWORD'],


Data in json file must be represented as dict:

  "SECRET_KEY": "user123",
  "DATABASE_PASSWORD": "user123"
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_before-1.0.0-py3-none-any.whl (5.2 kB) Copy SHA256 Checksum SHA256 py3 Wheel May 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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