Skip to main content

Zen-Lightweight Django CMS

Project description

Overview
----------

This is simple-lightweight-zen Django CMS without magic.


Install
-------------

1. Install django-zen
```shell
pip install django-zen
```

2. Add to INSTALLED_APPS
```python
INSTALLED_APPS = (
...
'django_zen',
'mptt',
'feincms',
'redactor',
...
)
```

3. Add TinyMCE config
```python
REDACTOR_OPTIONS = {'lang': 'en'}
REDACTOR_UPLOAD = 'uploads/'
```

4. Add Django Zen urls
```python
url(r'', include('django_zen.urls')),
```

Menus
---------

1. Go to Django admin, add menu items. Add Menu ID for root-level menu, e.g. 'main'

2. In templates render menu
```html
{% load menu_tags %}

<ul>
{% menu main %}
<li class="{% active request menu_item.url %}">
<a href="{{ menu_item.url }}">{{ menu_item.name }}</a>
{% if not menu_item.is_leaf_node %}
<ul>
<div>
{{ children }}
</div>
</ul>
{% endif %}
</li>
{% endmenu %}
</ul>
```

Pages
----------

1. In templates directory create 'pages' direcotry for templates.

2. In Django admin add pages (You may add page to menu or create menu item for page).

3. Go to page url.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-zen-0.1.14.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file django-zen-0.1.14.tar.gz.

File metadata

  • Download URL: django-zen-0.1.14.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-zen-0.1.14.tar.gz
Algorithm Hash digest
SHA256 676e54b490a01af152647ee2656f81f051d57a881c3492f97a136a2f1e3423fd
MD5 c573a13359d3770c1b7cf9e2bfc36bf8
BLAKE2b-256 1549ed731a05138321d4deff5b5a8c8fbdcfd1d7f8bfb50022088b9f4dcd34d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page