Skip to content

Commit

Permalink
added custom static file dir
Browse files Browse the repository at this point in the history
  • Loading branch information
EsGeh authored and EsGeh committed Nov 29, 2019
1 parent 26043d7 commit 8390498
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ That's all.
1. edit `res/custom_config/*`
2. $ ./scripts/init.py --skip-db

- You might want to add your organisations logo, favicon etc:

Copy them into `res/static/custom_static/`. Files in this directory overwrite default files with the same name.

TODO: list images that one typically wants to overwrite

#### REMARK

The templates expect some pages to exist in the CMS:
Expand Down
1 change: 0 additions & 1 deletion res/static

This file was deleted.

1 change: 1 addition & 0 deletions res/static/webdesign_platform
4 changes: 4 additions & 0 deletions scripts/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def copy_dir(src, dst):

def create_dirs( config ):

create_dir(
BASE_DIR / config['RES_DIR'] / "static/custom_static"
)

create_dir(
BASE_DIR / config['DATABASE_DATA_DIR']
)
Expand Down
3 changes: 2 additions & 1 deletion src/eoa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@
MEDIA_ROOT = RES_DIR / 'all_media_files'

STATICFILES_DIRS = [
RES_DIR / "static",
RES_DIR / "static" / "custom_static",
RES_DIR / "static" / "webdesign_platform",
]
SITE_ID = 1

Expand Down

0 comments on commit 8390498

Please sign in to comment.