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.

Source Distribution

gipsy-pages-0.4.5.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file gipsy-pages-0.4.5.tar.gz.

File metadata

  • Download URL: gipsy-pages-0.4.5.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gipsy-pages-0.4.5.tar.gz
Algorithm Hash digest
SHA256 db7fe51082b203cf37e2301853733340a51cf6896be5a7de1fc7beeab501cd0c
MD5 63627278fe3e2d828c25a399666c7415
BLAKE2b-256 096090c0ddc3ccc953b781689a098910ad7ce377ea3318e40856c62bd7fec420

See more details on using hashes here.

Supported by

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