SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 229942bc authored by Geert Kapteijns's avatar Geert Kapteijns
Browse files

Add local settings

parent 5d933c51
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment