Skip to main content

============================= django-stack-it

.. image:: https://api.codacy.com/project/badge/Grade/4c1f910320434a5fb2fb828ebfcbaf95 :alt: Codacy Badge :target: https://app.codacy.com/app/Jufik/django_stack_it?utm_source=github.com&utm_medium=referral&utm_content=VingtCinq/django_stack_it&utm_campaign=Badge_Grade_Dashboard

.. image:: https://badge.fury.io/py/django-stack-it.svg :target: https://badge.fury.io/py/django-stack-it

.. image:: https://api.codacy.com/project/badge/Coverage/a842b7f950cd465d91d6b06c7d56ce16
:target: https://www.codacy.com/app/Jufik/django_stack_it?utm_source=github.com&utm_medium=referral&utm_content=VingtCinq/django_stack_it&utm_campaign=Badge_Coverage

.. image:: https://travis-ci.org/VingtCinq/django_stack_it.svg?branch=master :target: https://travis-ci.org/VingtCinq/django_stack_it

Content management system under development

Quickstart

Install django-stack-it::

pip install django-stack-it

Django Stack It relies on several dependencies, you need to add to your INSTALLED_APPS

.. code-block:: python

INSTALLED_APPS = (
    ...
    'polymorphic_tree',
    'polymorphic',
    'mptt',
    'imagekit',
    'stack_it'
    ...
)

Add django-stack-it's URL patterns:

.. code-block:: python urlpatterns = [ ... path(r'^', include('stack_it.urls')), ... ]

To avoid migration messup, we strongly recomend you to deport Stack It migrations to your project. This will avoid any unexpected conflict between environements, due to language addition/deletion. In your settings:

.. code-block:: python MIGRATION_MODULES = { "stack_it":"tests.migrations" }

Basic Usage

As soon as you a model is linked to a URL, it should inherit from the Page model.

.. code-block:: python from stack_it.models import Page

class Article(Page):
    """
    Your model here
    """
    ....

Article is now considered to be a Page. It comes with several usefull fields like title, slug dans template_path.

Register your model to the admin the way you want, and you can see all your website organization within one unified admin doing:

.. code-block:: python from stack_it.admin import PageAdmin as BasePageAdmin from stack_it.models import Page from blog.models import Article

class PageAdmin(BasePageAdmin):
    base_model = Page
    child_models = (
        ...Your inherited model here,
        Article,
        ...
    )
 admin.site.register(Page, PageAdmin)

Article or any other model won't show up in the admin anymore. Each model and model instances will be managed from the "Page" admin, where all your pages are organized in a Drag n Drop interface to build up your site structure.

If you want your model's to be registered as usual, add show_in_index = True in your admin class to allow

Features

  • TODO

Running Tests

Does the code actually work?

::

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

  • Cookiecutter_
  • cookiecutter-djangopackage_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _cookiecutter-djangopackage: https://github.com/pydanny/cookiecutter-djangopackage

History

0.1.0 (2019-01-14) ++++++++++++++++++

  • First release on PyPI.

Metadata

Release files for django-stack-it-bak 0.1.13.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-stack-it-bak 0.1.13.2
File Size Uploaded Provenance Actions
django_stack_it_bak-0.1.13.2.tar.gz 70.9 kB Without provenance Details for django_stack_it_bak-0.1.13.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-stack-it-bak 0.1.13.2
File Interpreter ABI Platform Actions
django_stack_it_bak-0.1.13.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_stack_it_bak-0.1.13.2-py2.py3-none-any.whl

Total release size: 157.5 kB

Release files / django_stack_it_bak-0.1.13.2.tar.gz

Download URL django_stack_it_bak-0.1.13.2.tar.gz
Size 70.9 kB
Tags Source
SHA-256 checksum
How to use checksums
78a46e847453b02e49f3d73720ce22e3b3c765fd85337be230c5130b5670797e
BLAKE2b-256 checksum
How to use checksums
df07012eb6e1f2e56aa00e82fbf9626172fc554c3a6abbfa43d4d1756724389b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / django_stack_it_bak-0.1.13.2-py2.py3-none-any.whl

Download URL django_stack_it_bak-0.1.13.2-py2.py3-none-any.whl
Size 86.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e6c3862aa5d4068cb6377c6ebd30e7c270218b55f7f54e9e5f5e450b3d50c4bb
BLAKE2b-256 checksum
How to use checksums
86558e8b696caa197df5e6f15d4b300807e7c429ef86ec6307aab411019b5a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for django-stack-it-bak 0.1.13.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page