Skip to main content
Help us improve Python packaging – donate today!

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

Release history Release notifications

This version
History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2

History Node

0.1.5

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
gipsy-pages-0.4.5.tar.gz (9.2 kB) Copy SHA256 hash SHA256 Source None Dec 1, 2015

Supported by

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