Simple plugins with django-time-wizard integration.
Install using pip:
pip install djangocms-time-wizard
Add to your INSTALLED_APPS:
'time_wizard', 'djangocms_time_wizard',
Include the time_wizard admin URLs in your project urls.py:
path('admin/', include('time_wizard.urls')),Run python manage.py migrate to create the time_wizard and djangocms_time_wizard models.
The TimeWizard(Inline)-Plugin has a wrapper for its child-plugins if they are not shown on published pages. You can also disable this in your settings.py:
DJANGOCMS_TIME_WIZARD_WRAPPER = False
The wrapper is a simple div with the class time-wizard and inline styling. You can customize its appearance to whatever you want. Note that child-plugins with inline styling may appear different because of the additional wrapper around.
If you want content managers to be able to show/hide inactive time-wizard content, you can do this by adding the following:
path("admin/", include("djangocms_time_wizard.urls")), # urls.py
Link to the settings view, for example in your toolbar:
self.my_menu.add_link_menu(
"Time Wizard Admin Settings",
url=reverse("djangocms-time-wizard-cookie-settings"),
)
- django-cms
- django-time-wizard
Setup your test environment with virtualenv and install the requirements with pip install .. Also install tox via pip and simply run tox.