Demiansoft template(bocor)
Project description
django_bocor_dental
demiansoft bocor 템플릿
설치
- pip를 이용해서 앱 설치
pip install django_bocor_ds
- 프로젝트 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
- 프로젝트 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)
- 프로젝트에 media/폴더를 생성하고 default_modal.bg.webp를 넣어 모달 기본배경으로 사용한다.
- 모델 마이그레이션 생성(모달, 캘린더, 포트폴리오, 블로그 모델 설치)
python manage.py makemigrations
- 마이그레이션 적용
python manage.py migrate
- _data/shared_lib.py 와 _data/bocor.py에 데이터 준비
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
django_bocor_ds-5.0.5.tar.gz
(3.6 MB
view details)
Built Distribution
File details
Details for the file django_bocor_ds-5.0.5.tar.gz
.
File metadata
- Download URL: django_bocor_ds-5.0.5.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf2b32918e9ab17af0f4141c9f70ba01a9e36180cdf764f34cb755ea11671ab |
|
MD5 | ecb6316f418c4cc743a0805061cf5516 |
|
BLAKE2b-256 | 7f55f8753da46bf100abd2508e8c2f81e360695905d8fcd0a828b7d0ef21f8e2 |
File details
Details for the file django_bocor_ds-5.0.5-py3-none-any.whl
.
File metadata
- Download URL: django_bocor_ds-5.0.5-py3-none-any.whl
- Upload date:
- Size: 3.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77e4649fd30294a58deda53606c6fcfd32bade512ed298e1e6dc8c8f15ef63dc |
|
MD5 | 279e3e0beaa812dfa28f563012329481 |
|
BLAKE2b-256 | 3887561b4b9cf034f5cd9a170a3f8ebcbb02849d6503d6f7ae1eb3713715b138 |