From Core CMS Resources
from | to |
---|---|
Core CMS Resources | Core CMS Custom |
built into Core CMS image | built atop Core CMS image |
Follow steps in Create a New Project.
Reminders
-
Move Content From Core CMS Resources /taccsite_custom/custom_project_dir
.To /custom_project_dir/src/taccsite_custom/custom_project_dir
-
Copy Settings From TACC/Core-Portal-Deployments: /project_dir/camino/settings_custom.py
.To /custom_project_dir/src/taccsite_cms/settings_custom.py
.1 -
Use Not custom_project_dir
custom-project-dir
Important A valid Python application uses underscores.
Migrate Project to Core CMS v3.12
Follow Core CMS: Upgrade Project: from v3.N to v3.12.
Has a Core Portal
If the custom project has a Core Portal i.e. settings has PORTAL_FAVICON
and:
- either settings has
PORTAL_IS_TACC_CORE_PORTAL = True
- or settings does not have
PORTAL_IS_TACC_CORE_PORTAL
Then:
- You must edit Core Portal Deployments.
- Edit Portal settings for the appropriate server.
E.g.project_dir/camino/___.settings_custom.py
where___
isdev
,pprd
,prod
as appropriate (notcms
). - Update
_PORTAL_ICON_FILENAME
:if is_remote
isthen set value to False
/static/
+ theimg_file_src
ofPORTAL_FAVICON
True
the img_file_src
ofPORTAL_FAVICON
to Import Core Styles CSS
If the custom project directory expects CSS build step e.g. has
css/src/*.css
with@import
of a@tacc/core-styles/
path
Then:
- Contact https://github.com/wesleyboar.
Note Those
@import
s assume:
- Node
- NPM package
@tacc/core-styles
- a CSS build script
Whether to support those here, and how to port without support for those, has not been decided.
If the custom project directory expects CSS concatenation e.g. has
css/src/*.css
with@import
of a relative path
Then:
- Rename import paths appended with comment
Core-CMS:/taccsite_cms/…/
:- from
**/*.css
- to
/static/site_cms/css/build/*.css
- from
- Rename relative import paths (e.g.
./**/*.css
):- from
**/*.css
- to
/static/custom_project_dir/css/**/*.css
- from
- Add UI test steps to initial deploy of ported custom project.
If the custom project directory expects any CSS at all i.e. has
- a template with
<link rel="stylesheet" href="{% static
Then:
- Move CSS tree:
- from
.../custom_project_dir/static/css/src/
- to
.../custom_project_dir/static/css/
- from
- Rename
href
paths:- from
custom_project_dir/css/build/**/*.css
- to
custom_project_dir/css/**/*.css
- from
- Add UI test steps to initial deploy of ported custom project.
Footnotes
-
The
cms.settings_custom.py
is committed in Core Portal Deployments. Asettings_custom.py
in Core CMS Custom is.gitignore
'd. ↩