From 229942bc7e276765c24010e554b6361179ecc683 Mon Sep 17 00:00:00 2001 From: Geert Kapteijns <ghkapteijns@gmail.com> Date: Tue, 28 Feb 2017 16:25:37 +0100 Subject: [PATCH] Add local settings --- README.md | 4 ++-- SciPost_v1/settings/local_geert.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 SciPost_v1/settings/local_geert.py diff --git a/README.md b/README.md index 4964856aa..840f8eb6c 100644 --- a/README.md +++ b/README.md @@ -89,13 +89,13 @@ All modules are configured in the `.bootstraprc` file. Most modules are disabled In order to collect static files from all `INSTALLED_APPS`, i.e. the assets managed by Webpack, run: ```shell -(scipostenv) $ ./manage collectstatic +(scipostenv) $ ./manage.py collectstatic ``` This will put all static files in the `STATIC_ROOT` folder defined in your settings file. It's a good idea to use the clear option in order to remove stale static files: ```shell -(scipostenv) $ ./manage collectstatic --clear +(scipostenv) $ ./manage.py collectstatic --clear ``` ### Create and run migrations diff --git a/SciPost_v1/settings/local_geert.py b/SciPost_v1/settings/local_geert.py new file mode 100644 index 000000000..4a4066579 --- /dev/null +++ b/SciPost_v1/settings/local_geert.py @@ -0,0 +1,11 @@ +from .base import * +import os + +# THE MAIN THING HERE +DEBUG = True + +# Static and media +STATIC_ROOT = os.path.join(BASE_DIR, 'local_files', 'static') +MEDIA_ROOT = os.path.join(BASE_DIR, 'local_files', 'media') +WEBPACK_LOADER['DEFAULT']['BUNDLE_DIR_NAME'] =\ + os.path.join(BASE_DIR, 'static', 'bundles') -- GitLab