Django Loose CMS is a simple cms based on django framework.
- Hierarchical pages
- Template pages
- SEO friendly URLs
- Build bootstrap grid
- Edit stylesheet of the plugins (no fully functional)
- File manager with custom model field
Loose CMS requires:
- Django version 1.8
- Python 2.6 or 2.7
- django-admin-bootstrapped
- django-taggit
- django-ckeditor
You should install manually:
- unidecode: if your tags wan in non-latin format.
Make the project folder:
mkdir project_name cd project_name
Create the virtualenv of python:
virtualenv env source env/bin/activate
Install django package (version 1.8):
pip install django
Create the django project with custom template:
django-admin.py startproject <project_name> --template=https://github.com/lefterisnik/django-template/archive/master.zip cd <project_name>
Install the requirements:
pip install -r requirements.txt
Sync database:
python manage.py migrate
Create one superuser account:
python manage.py createsuperuser
Visit http://127.0.0.1:8000/ to start playing with the cms
Following this way you must edit settings.py file to provide some settings.
Make the project folder:
mkdir project_name cd project_name
Create the virtualenv of python:
virtualenv env source env/bin/activate
Installation via pip:
pip install https://github.com/lefterisnik/django-loose-cms/archive/master.zip
The above command will download and setup all the requirements including the django.
Create your django project:
django-admin startproject myproject cd myproject
Add "loosecms" to your INSTALLED_APPS setting at settings.py file like this:
INSTALLED_APPS = ( ... 'loosecms', )
Add "bootstrap_admin" to your INSTALLED_APPS setting like this before 'django.contrib.admin':
INSTALLED_APPS = ( 'bootstrap_admin', 'django.contrib.admin', )
Include the loosecms URLconf in your project urls.py like this:
url(r'^', include('loosecms.urls')),
Loose CMS handles all urls.
Run
python manage.py migrate
to create the loosecms models.Run
python manage.py createsuperuser
to create a superuser account.Run development server
python manage.py runserver
and visit http://127.0.0.1:8000/ to start playing with the cms.
Make the project folder:
mkdir project_name cd project_name
Installation via pip:
sudo pip install https://github.com/lefterisnik/django-loose-cms/archive/master.zip
The above command will download and setup all the requirements including the django.
Create your django project:
django-admin startproject myproject cd myproject
Add "loosecms" to your INSTALLED_APPS setting at settings.py file like this:
INSTALLED_APPS = ( ... 'loosecms', )
Add "bootstrap_admin" to your INSTALLED_APPS setting like this before 'django.contrib.admin':
INSTALLED_APPS = ( 'bootstrap_admin', 'django.contrib.admin', )
Include the loosecms URLconf in your project urls.py like this:
url(r'^', include('loosecms.urls')),
Loose CMS handles all urls.
Run
python manage.py migrate
to create the loosecms models.Run
python manage.py createsuperuser
to create a superuser account.Run development server
python manage.py runserver
and visit http://127.0.0.1:8000/ to start playing with the cms.
You can enable multi language processing adding in your root urlconf (urls.py) the following code:
... from loosecms.conf.urls.i18n import simple_i18n_patterns urlpatterns = [ url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^admin/', include(admin.site.urls)), ] urlpatterns += simple_i18n_patterns( url(r'^', include('loosecms.urls')), )
and adding the 'SimpleLocaleMiddleware' middleware:
MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'loosecms.middleware.locale.SimpleLocaleMiddleware', 'django.middleware.common.CommonMiddleware', ... )
Restart development server python manage.py runserver
and visit http://127.0.0.1:8000/ to start
playing with the cms.
Some plugins: