Django Tilda
Warning! Before start you have to register in tilda.cc and have “Tilda Business” account for use Tilda API.
Synchronization available only for published in Project pages.
Supported versions
Django >= 2.0 (old version supported >= 1.10)
Python 2.7, >=3.5
Screenshots
Screenshot
Quick-Start Guide
Install Django Tilda:
pip install django-tilda
Add to your INSTALLED_APPS:
'django_object_actions', 'tilda',
Add in settings.py params:
TILDA_PUBLIC_KEY and TILDA_SECRET_KEY generated in Business account Tilda.cc — https://tilda.cc/identity/apikeys/
TILDA_PROJECTID — you need to have exist project in Tilda.cc (look at your location bar when you work with project in Tilda panel)
TILDA_MEDIA_IMAGES_URL — your url path for folder in TILDA_MEDIA_IMAGES
TILDA_PUBLIC_KEY = '' TILDA_SECRET_KEY = '' TILDA_PROJECTID = '' TILDA_MEDIA_IMAGES_URL = '/media/tilda/images' TILDA_MEDIA_IMAGES = os.path.join(BASE_DIR, 'media/tilda/images') TILDA_MEDIA_JS = os.path.join(BASE_DIR, 'media/tilda/js') TILDA_MEDIA_CSS = os.path.join(BASE_DIR, 'media/tilda/css')
TILDA_MEDIA_IMAGES, TILDA_MEDIA_JS, TILDA_MEDIA_CSS — create this folders manually
Migrate python manage.py migrate
Done!
Usage
Simple example:
models.py
from django.db import models
from tilda import TildaPageField
class Page(models.Model):
title = models.CharField(
u'Title',
max_length=100
)
tilda_content = TildaPageField(
verbose_name=u'Tilda Page'
)
created = models.DateTimeField(
u'Created',
auto_now_add=True
)
template (object — instance of Page class)
<head>
...
{% for css in object.tilda_content.get_css_list %}
<link rel="stylesheet" href="{{ css }}">
{% endfor %}
...
</head>
<body>
...
{{ object.tilda_content.html|safe }}
...
{% for js in object.tilda_content.get_js_list %}
<script src="{{ js }}"></script>
{% endfor %}
</body>
Localizations
English
Русский
Metadata
Release files for django-tilda 1.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-tilda-1.0.14.tar.gz | 10.1 kB | Without provenance | Details for django-tilda-1.0.14.tar.gz |
Release files / django-tilda-1.0.14.tar.gz
| Download URL | django-tilda-1.0.14.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
929e5d009c863d7950dd79cb48cfa621cd6e9e2e955d3d6ee88adf7956845367
|
|
BLAKE2b-256 checksum How to use checksums |
c88d5187bbb0f8a08b5098bb25d33300eb191e47eb6ea386805e2d690fc70718
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for django-tilda 1.0.14
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.