Skip to main content

modal-hj3415

모달창을 띄우는 모듈.

  1. 프로젝트의 settings.py 에 추가한다.
INSTALLED_APPS = [
    'modal_hj3415',
]
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / 'media'
  1. makemigration, migrate 실행

  2. 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)
  1. 사용 위치의 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 %}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modal_hj3415-0.4.2.tar.gz (63.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modal_hj3415-0.4.2-py2.py3-none-any.whl (67.4 kB view details)

Uploaded Python 2Python 3

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.1

2 files

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