modal-hj3415 is the program for opening the modal window
Project description
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 %}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modal_hj3415-0.3.0.tar.gz.
File metadata
- Download URL: modal_hj3415-0.3.0.tar.gz
- Upload date:
- Size: 62.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92b3f2fac02e15c3c280dbc5c066dba5f91863c611128b7d9750c8562429267e
|
|
| MD5 |
bf24ddabeea356d7b11fe5b7d647f24f
|
|
| BLAKE2b-256 |
aa726e80baec68b989443a5bce36a59a7413cefb37707acbe1b70af634e904d4
|
File details
Details for the file modal_hj3415-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: modal_hj3415-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 65.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0b60cd8416b436ae2ef2a6fdb0baea9ffef7ee72a586ec3e4beae10f9839032
|
|
| MD5 |
e9307a0a160e248a126ff0362bb4fc73
|
|
| BLAKE2b-256 |
973352e90105fffc4e4f34b122c6da5f68f1d5b764203e73b85db660ed8a6ebc
|