modal-hj3415
모달창을 띄우는 모듈.
- 프로젝트의 settings.py 에 추가한다.
INSTALLED_APPS = [
'modal_hj3415',
]
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / 'media'
-
makemigration, migrate 실행
-
urls.py
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
...
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
- 사용 위치의 html에 작성한다.
{% load modal_tags %}
...
{% show_modal %}
또는
{% show_modals %} - 여러창을 띄우는 기능
사용법
최신 것만 타입별 1개씩: {% show_modals only_latest=True %}
우선순위 바꾸기: {% show_modals priority=("rotate_bg","link_video","single_bg","image_only") %}
자동 오픈 끄기(사용자 트리거로만 열고 싶을 때): {% show_modals auto_open=False %}
Metadata
Release files for modal-hj3415 0.4.2
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 |
|---|---|---|---|---|
| modal_hj3415-0.4.2.tar.gz | 63.1 kB | Without provenance | Details for modal_hj3415-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| modal_hj3415-0.4.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for modal_hj3415-0.4.2-py2.py3-none-any.whl |
Total release size: 130.5 kB
Release files / modal_hj3415-0.4.2.tar.gz
| Download URL | modal_hj3415-0.4.2.tar.gz |
|---|---|
| Size | 63.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40aaea3a571777b88b003bc5ba3e037af97fa8cc2bb438a9c9f59772e0fde168
|
|
BLAKE2b-256 checksum How to use checksums |
2de943bf59a983c986357c58d5f67c56e9a997237303205b51a8a9af4f430742
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.33.1
|
Release files / modal_hj3415-0.4.2-py2.py3-none-any.whl
| Download URL | modal_hj3415-0.4.2-py2.py3-none-any.whl |
|---|---|
| Size | 67.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9401ce152fa23589612897547eba8a1e46d3b3349bad458450ecee904c039dc7
|
|
BLAKE2b-256 checksum How to use checksums |
4dc6612ceaefc635623cf199e5751a7537af558ef2e2662dc818b0973d902090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.33.1
|
Security for modal-hj3415 0.4.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.