Core CMS v3.11 to v3.12
Verify project name is compatible with Django 3.2.
-
If your project directory name has dashes, rename it to use underscores, i.e.
root from custom-project-dir
to custom_project_dir
taccsite_custom
from taccsite_custom/custom-project-dir
to taccsite_custom/custom_project_dir
taccsite_cms/static
from taccsite_cms/static/custom-project-dir
to taccsite_cms/static/custom_project_dir
Important A valid Python application uses underscores.
-
Rename all references to the previous directory names.
-
Identify, support and deprecate old CMS template paths.
Follow Port Project: Old CMS Template paths.
Important Failure to do this can crash an entire page.
-
In
taccsite_cms/custom_app_settings.py
, remove project fromSTATICFILES_DIRS
, i.e.change from STATICFILES_DIRS = ('taccsite_custom/custom_project_dir', ...)
to STATICFILES_DIRS = (...)
Note Core CMS already defines the
static
directory for each project.
Core CMS v4 Future Changes
Remove unnecessary settings.
-
In
taccsite_cms/custom_app_settings.py
, remove apps fromSTATICFILES_DIRS
, i.e.change from STATICFILES_DIRS = ('apps/custom_example', ...)
to STATICFILES_DIRS = (...)
Note Django automatically identifies the
static
directory for each app.
Simplify image paths.
-
Remove any subdirectories of your project's static
img
directory, i.e.root from taccsite_custom/static/custom_project_dir/img/*/...
to taccsite_custom/static/custom_project_dir/img/...
-
Rename all references to the previous image paths e.g.
/custom_project_dir/taccsite_cms/settings_custom.py
1- Core Portal Deployments:
/project_dir/camino/cms.settings_custom.py
1
Footnotes
-
The
cms.settings_custom.py
is committed in Core Portal Deployments. Asettings_custom.py
in Core CMS Custom is.gitignore
'd. ↩ ↩2