Added local settings AppConfig Example.

This commit is contained in:
Martin Mahner 2018-06-22 12:56:52 +02:00
parent 048c6281a7
commit 14cfcd9226
3 changed files with 21 additions and 5 deletions

1
.env Normal file
View file

@ -0,0 +1 @@
DJANGO_SETTINGS_MODULE=dpaste.settings.local

View file

@ -13,6 +13,8 @@ Local development is done with `pipenv`_ to maintain packages.
Installation::
$ cd dpaste/
$ npm install
$ pipenv install --dev
Copy the settings file and edit it, to meet your needs::
@ -38,7 +40,7 @@ suite locally with tox_::
$ cd dpaste/
$ pip install tox
$ tox --skip-missing-interpreters
$ tox
A more manual approach is installing it all by hand in a virtual environment.
This is also the preferred way to setup an environment for local development::
@ -49,8 +51,4 @@ This is also the preferred way to setup an environment for local development::
.. _Travis: https://travis-ci.org/bartTC/dpaste
.. _tox: http://tox.readthedocs.org/en/latest/
.. _pipenv: https://docs.pipenv.org/

View file

@ -20,3 +20,20 @@ INSTALLED_APPS += ('sslserver',)
if not 'runsslserver' in sys.argv:
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False
#
# Uncomment the block below to use a custom AppConfig.
#
# from dpaste.apps import dpasteAppConfig
#
# class MyBetterDpasteAppConfig(dpasteAppConfig):
# SLUG_LENGTH = 8
# LEXER_DEFAULT = 'js'
#
# INSTALLED_APPS = (
# 'staticinline',
# 'django.contrib.staticfiles',
# 'django.contrib.sessions',
# 'dpaste.settings.local.MyBetterDpasteAppConfig',
# )