Skip to main content

django_bocor_dental

demiansoft bocor 템플릿

설치

  1. pip를 이용해서 앱 설치
    pip install django_bocor_ds
    
  2. 프로젝트 settings.py에 앱 등록
    import os
    
    INSTALLED_APPS = [
    "jazzmin", # 관리자 페이지 UI
    'django.contrib.admin',
    ...,
    'django.contrib.sitemaps',
    'shared_lib',
    'markdownx', # 블로그 마크다운에디터
    'hitcount', # 블로그 히트카운터
    'taggit', # 블로그 태그관리
    ...,
    'bocor',
    ]
    
    # 추가 설정 사항들
    import os
    
    X_FRAME_OPTIONS = 'DENY' # 클릭재킹공격 방지 보안설정
    
    STATICFILES_DIRS = [
        os.path.join(BASE_DIR, '_static/'),
    ]
    
    MEDIA_URL = '/media/'
    MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
    
    STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
    
    from _data import shared_lib
    JAZZMIN_SETTINGS = shared_lib.JAZZMIN_SETTINGS
    MARKDOWNX_MARKDOWN_EXTENSIONS = shared_lib.MARKDOWNX_MARKDOWN_EXTENSIONS
    MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = shared_lib.MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS
    MARKDOWNX_UPLOAD_MAX_SIZE = shared_lib.MARKDOWNX_UPLOAD_MAX_SIZE
    MARKDOWNX_UPLOAD_CONTENT_TYPES = shared_lib.MARKDOWNX_UPLOAD_CONTENT_TYPES
    MARKDOWNX_IMAGE_MAX_SIZE = shared_lib.MARKDOWNX_IMAGE_MAX_SIZE
    
  3. 프로젝트 urls.py에 다음을 추가한다.
    from django.urls import path, include
    from shared_lib import utils
    
    urlpatterns = [
     # robots.txt는 반드시 가장 먼저
     path('robots.txt', utils.robots),
     path('admin/', admin.site.urls),
     path('', include('bocor.urls', namespace='bocor')),
     path('shared_lib/', include('shared_lib.urls', namespace='shared_lib')),
     path('markdownx/', include('markdownx.urls')),
    ]
    
    # 개발 환경에서 미디어 파일 서빙
    from django.conf import settings
    from django.conf.urls.static import static
    
    if settings.DEBUG:
     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    
  4. 프로젝트에 media/폴더를 생성하고 default_modal.bg.webp를 넣어 모달 기본배경으로 사용한다.
  5. 모델 마이그레이션 생성(모달, 캘린더, 포트폴리오, 블로그 모델 설치)
    python manage.py makemigrations
    
  6. 마이그레이션 적용
    python manage.py migrate
    
  7. _data/shared_lib.py 와 _data/bocor.py에 데이터 준비

Metadata

Release files for django_bocor_ds 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django_bocor_ds 5.1.0
File Size Uploaded
django_bocor_ds-5.1.0.tar.gz 3.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for django_bocor_ds 5.1.0
File Interpreter ABI Platform
django_bocor_ds-5.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 MB

Release files / django_bocor_ds-5.1.0.tar.gz

Download URL django_bocor_ds-5.1.0.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
bc69bdb17123dc844e342fb77f830e9b08373977dc5c5b6f2abff3493c9545bc
BLAKE2b-256 checksum
How to use checksums
eda93c530bd5dab21c157016485a1a23d200341ed91d1420903136b60762dafc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / django_bocor_ds-5.1.0-py3-none-any.whl

Download URL django_bocor_ds-5.1.0-py3-none-any.whl
Size 3.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d2f4825f1f92c5e3c2a9de422343e0d5ac54939560e17b32571272c11cdbae40
BLAKE2b-256 checksum
How to use checksums
fd4b3e2139f3ccaf74e31534c819f58c65fd4ac72276b52dc9e57b3988ade69c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release history Release notifications | RSS feed

This release

5.1.0 This release

2 release files

5.0.6

2 release files

5.0.5

2 release files

5.0.4

2 release files

5.0.3

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

3.0.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release 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