Skip to main content

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


Download files

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

Files for gipsy-pages, version 0.4.5
Filename, size File type Python version Upload date Hashes
Filename, size gipsy-pages-0.4.5.tar.gz (9.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page