-
Notifications
You must be signed in to change notification settings - Fork 1
How to Uninstall DjangoCMS Blog i.e. News
Legend
-
Step to perform:
input
output
☑ Note
☑ The
djangocms-blog
package and all its dependencies are installed in Core CMS by default.⁰
-
Confirm
djangocms_blog
app is installed and active.- Open CMS Pages admin UI. Blog/News page has 🧩. icon?﹡
- Open Blog/News page while logged in. Admin toolbar has "Blog" link?
- Open CMS Administation UI. Section "DJANGO CMS BLOG" exists?
﹡ In same column where Home page has 🏠. icon.
-
(Optional) Confirm "apphooks" are in place:
python3 manage.py cms list apphooks
BlogApp[instance: Blog] (draft/published)
-
Uninstall relevant "apphooks":
python3 manage.py cms uninstall apphooks BlogApp --noinput
2 'BlogApp' apphooks uninstalled
⚠ If settings has
BLOG_AUTO_SETUP = True
, then do not… list apphooks
again or else "apphooks" will be recreated. -
(Optional) Confirm "apphooks" are missing.
python3 manage.py cms uninstall apphooks BlogApp --noinput
no 'BlogApp' apphooks found
- Open CMS Pages admin UI. Blog/News page has no 🧩. icon.﹡
- Open Blog/News page while logged in. Admin toolbar has no "Blog" link.
﹡ In same column where Home page has 🏠. icon.
-
Reverse migrations for
djangocms_blog
app.¹python3 manage.py cms uninstall apphooks BlogApp --noinput
no 'BlogApp' apphooks found
-
Remove "NEWS / BLOG" settings. (Restart server.)﹡
﹡ Just editting a
settings_custom.py
might be adequate to restart server.²⚠ If settings has
BLOG_AUTO_SETUP = True
, then do not do anything to restart server or else "apphooks" will be recreated. -
Confirm
djangocms_blog
app is not installed nor active.- Open CMS Pages admin UI. Blog/News page has no 🧩. icon.﹡
- Open Blog/News page while logged in. Admin toolbar has no "Blog" link.
- Open CMS Administation UI. Section "DJANGO CMS BLOG" absent.
⁰ After FP-1487, the package djangocms_blog
might not be installed by default.
¹ Reverse migrations before removing djangocms_blog
from INSTALLED_APPS
(which should happen as a result of removing "NEWS / BLOG" settings) or else migrations can not be reversed (because djangocms_blog
will not exist in the project to provide the migrations to be reversed).
² Remote servers deployed with a build system can be restarted by re-deploying. Remote servers deployed manually can be restarted by commands specific to the machine. Local servers can be restarted by making noop change to settings.py
(ex: save file in editor or touch taccsite_cms/settings.py
).
TACC ACI WMA Core-CMS Project Documentation