![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
|Build status|
Django app to manage and display editos
1.5
<= 1.4.1
Using PyPI
.. code-block:: text
pip install django-editos
From source
.. code-block:: text
python setup.py install
Preparing test env
.. code-block:: text
virtualenv ./virtualenv
source virtualenv/bin/activate
pip install django>=1.8
Runing unit tests
.. code-block:: text
python setup.py test
Add geelweb.django.editos
to INSTALLED_APPS
in your settings.
Create the db with python manage.py migrate editos
Load the editos tags in your templates with {% load editos %}
Fields ^^^^^^
editos.models.Edito
object have the following fields
title
Required. 100 characters or fewer.
link
Required. Url to redirect
button_label
Optional. 20 characters or fewer.
image
Required. Uploaded image.
text_content
Required. 400 characters or fewer.
display_from
Required. A date field to represent the date from which the item is active.
display_until
Required. A date field to represent the date by which the item is active.
active
Optional. Default to True. Define if the item is active.
text_theme
Required. A theme to apply to the item in the template rendering. Can be "light" or "dark". text_theme field use EDITOS_THEMES_ and EDITOS_DEFAULT_THEME_ settings.
editos
Render the editos. Example
.. code-block:: text
{% editos path/to/a/template.html %}
The first argument is the path to a template to use to render the editos. If
omited the default editos/carousel.html
template is used.
editos/carousel.html
The default template. Render a Bootstrap 3 Carousel <http://getbootstrap.com/javascript/#carousel>
_
The editos will be assign to the template in the editos
variable. Example
.. code-block:: text
{% for edito in editos %}
{{ edito.title }}
{% endfor %}
.. _EDITOS_THEMES:
EDITOS_THEMES
Default
.. code-block:: text
(
('light', 'Light'),
('dark', 'Dark'),
)
A tuple of (value, label) choices
.. _EDITOS_DEFAULT_THEME:
EDITOS_DEFAULT_THEME
Default: "light"
The default theme to use
EDITOS_HELP_TEXTS
Default: {}
This sets the mapping of help text to model field. Example
.. code-block:: text
EDITOS_HELP_TEXTS = {
'image': '150 x 300px',
}
django-editos is released under MIT License. See LICENSE.txt file for details.
.. |Build status| image:: https://travis-ci.org/geelweb/django-editos.svg?branch=master
FAQs
Django app to manage and display editos
We found that django-editos demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.