mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Added local settings AppConfig Example.
This commit is contained in:
parent
048c6281a7
commit
14cfcd9226
3 changed files with 21 additions and 5 deletions
1
.env
Normal file
1
.env
Normal file
|
@ -0,0 +1 @@
|
|||
DJANGO_SETTINGS_MODULE=dpaste.settings.local
|
|
@ -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/
|
||||
|
||||
|
||||
|
|
|
@ -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',
|
||||
# )
|
||||
|
|
Loading…
Reference in a new issue