diff --git a/README.md b/README.md index 4964856aaf986dfcde25c82e5ea719ff786481bc..840f8eb6cf8a0ee49903a730e08ce4489d9b70dc 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 0000000000000000000000000000000000000000..4a4066579f22049ce0159958c327d3cf11c97124 --- /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')