Skip to main content

Demiansoft template(medilab)

Project description

django_medilab_dental

demiansoft medilab 템플릿 다른 템플릿과 차이는 진료비 페이지가 있다는것

설치

  1. pip를 이용해서 앱 설치
    pip install django_medilab_dental
    
  2. 프로젝트 settings.py에 앱 등록
    import os
    
    INSTALLED_APPS = [
    "jazzmin", # 관리자 페이지 UI
    'django.contrib.admin',
    ...,
    'shared_lib',
    'markdownx', # 블로그 마크다운에디터
    'hitcount', # 블로그 히트카운터
    'taggit', # 블로그 태그관리
    ...,
    'medilab',
    ]
    
    # 모델에서 이미지 저장을 위해
    MEDIA_URL = '/media/'
    MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
    
    STATIC_URL = '/static/'
    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('', include('medilab.urls', namespace='medilab')),
     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/medilab.py에 데이터 준비

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

django_medilab_dental-5.0.2.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

django_medilab_dental-5.0.2-py3-none-any.whl (6.9 MB view details)

Uploaded Python 3

File details

Details for the file django_medilab_dental-5.0.2.tar.gz.

File metadata

File hashes

Hashes for django_medilab_dental-5.0.2.tar.gz
Algorithm Hash digest
SHA256 45b3aeb22831db673e32135efe2a13f87fe32de9d066642e3c68550cfbfd4a47
MD5 c6a4a9dcebce01eba6e300f556b9e4ea
BLAKE2b-256 9a0c466be070db9a3f426e993e10293dcd3068243702f31e9927545c86f9127c

See more details on using hashes here.

File details

Details for the file django_medilab_dental-5.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_medilab_dental-5.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1a1430fb1c511a05ac5d04bfb4de1e1361b65637d9b30d3063c2819bb196455
MD5 c19b6a79c6cf3c2831a2173c90e07c4f
BLAKE2b-256 05cbc4e72350c50e792fa7cbffd9afc887760cf097e5b2a20e800e9b0d332170

See more details on using hashes here.

Supported by

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