Skip to content

Overwriting default repository static assets on deployment #1996

@alistairewj

Description

@alistairewj

Spurred on by #1989 and #1995 (potentially also spurned), we discussed how best to overwrite static content for custom deployments. Mainly impacts the background/favicon

We should rely on collectstatic and add in an appropriate STATICFILES_DIRS.

Currently it's set here in the base settings:

STATICFILES_DIRS = [os.path.join(BASE_DIR,'static')]

Seems like we could change this to something like:

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static'),
    os.path.join(BASE_DIR, 'static-overrides'),
]

Then we'd just have a .gitignore in static-overrides and let repos store non version controlled content there

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions