Working title for a generic publishing app to integrate with divio/djangocms-moderation
.
The goal is to provide generic publish functionality to Articles
as well as Pages
.
We need to install the djangocms
and then add this repository as a dependency:
-
Create and activate new virtual env, e.g.
mkvirtualenv testenv
-
Create a project folder, e.g.
mkdir ~/workspace/testproject/
-
cd ~/workspace/testproject
-
Install djangocms
pip install djangocms-installer
-
Setup djangocms, e.g.
djangocms -f -p . testsite
-
pip install djangocms_helper
-
Add the following email settings to settings.py
# This will ensure that emails will be printed to the console instead of real send
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
-
Fork
https://github.com/trojjer/djangocms-article-drafts
-
Clone yours
djangocms-article-drafts
app from github into separate folder, e.g.~/workspace/djangocms-article-drafts/
-
Go to the main project folder
cd ~/workspace/testproject
and install the package from your local folderpip install -e ~/workspace/djangocms-article-drafts/
-
Add
djangocms_article_drafts
andadminsortable2
to the INSTALLED_APPS in settings.py -
python manage.py migrate
-
python manage.py test djangocms_article_drafts
Now you can make changes to your local ~/workspace/djangocms-article-drafts/
repository and changes will be reflected in your testproject
.