Gipsy Pages
Project description
Installation
pip install gipsy-pages
or
git clone ssh://git@git.revsquare.com/seler/gipsy-pages
cd gipsy-pages
python setup.py install
or for development
git clone ssh://git@git.revsquare.com/seler/gipsy-pages
cd gipsy-pages
pip install -r requirements/dev.txt
python setup.py develop
Usage
Add to requirements gipsy-pages, gipsy-sections and other used libraries:
'filebrowser',
'gipsy.sections',
'gipsy.pages',
'mptt',
'django_extensions',
List templates for pages and sections:
GIPSY_PAGES_PAGE_TEMPLATE_NAME_ARTICLE = 'pages/article.html'
GIPSY_PAGES_PAGE_TEMPLATE_NAME_SIMPLE = 'pages/simple.html'
GIPSY_PAGES_PAGE_TEMPLATE_NAME_CHOICES = (
(GIPSY_PAGES_PAGE_TEMPLATE_NAME_ARTICLE, 'Article'),
(GIPSY_PAGES_PAGE_TEMPLATE_NAME_SIMPLE, 'Simple'),
)
GIPSY_SECTIONS_SECTION_TEMPLATE_NAME_TEXT = 'sections/text.html'
GIPSY_SECTIONS_SECTION_TEMPLATE_NAME_IMAGE = 'sections/image.html'
GIPSY_SECTIONS_SECTION_TEMPLATE_NAME_CHOICES = (
(GIPSY_SECTIONS_SECTION_TEMPLATE_NAME_TEXT, 'Text'),
(GIPSY_SECTIONS_SECTION_TEMPLATE_NAME_IMAGE, 'Image'),
)
add pages to urls:
url(r'^', include('gipsy.pages.urls', namespace='pages')),
# or
url(r'^pages/', include('gipsy.pages.urls', namespace='pages')),
and then run migrations:
django-admin migrate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gipsy-pages-0.4.5.tar.gz
(9.2 kB
view hashes)