Skip to main content

modal-hj3415 is the program for opening the modal window

Project description

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 %}

Project details


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.1.2.tar.gz (2.7 MB 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.1.2-py2.py3-none-any.whl (2.7 MB view details)

Uploaded Python 2Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page