Skip to main content

bethany_ds templates for demiansoft

Project description

django-bethany_ds

django-bethany_ds는 bethany_ds 템플릿의 기본형이다.

Quick start

  1. 본 템플릿은 다음의 필수 앱들이 필요하다. 프로젝트의 settings.py에 다음을 추가한다.
INSTALLED_APPS = [
    ...
    
    'django.contrib.humanize',
    
    'bethany_ds',
    
    # 필수 컴포넌트
    'popup',
    'base',
    'hero',
    
    # 선택 공통 컴포넌트
    'about',
    'clients',
    'gallery',
    'cta',
    'services',
    'portfolio',
    'contact',
    'counts',
    'whyus',
    'faq',
    'team',
    'appointment',
    'testimonials',
]
  1. static 파일을 저장하기 위해 settings.py에 다음을 추가한다.
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, '_static/'),
]
  1. 프로젝트의 urls.py에 다음을 추가하여 home app과 템플릿에 연결한다.
from django.urls import path, include

from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    # ...
    path('', include('bethany_ds.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  1. BASE_DIR에 _data폴더를 생성하고 context.py를 생성한다.

  2. BASE_DIR에 _static폴더를 생성하고 이미지를 저장한다.

  3. 데이터베이스 구성

python manage.py makemigrations popup portfolio
python manage.py migrate
  • 프레임으로 창을 띄울때 거부하는 문제 해결위해 settings.py에 다음을 주석처리함.
MIDDLEWARE = [
    ...
    # 프레임으로 창을 띄울때 접속을 거부하는 문제 해결
    # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

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-bethany_ds-0.0.5.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

django_bethany_ds-0.0.5-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file django-bethany_ds-0.0.5.tar.gz.

File metadata

  • Download URL: django-bethany_ds-0.0.5.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for django-bethany_ds-0.0.5.tar.gz
Algorithm Hash digest
SHA256 51e1cdc15ed0cf4051893b04612e463c0562cd0bce7b9131795983cdd6ac5539
MD5 083c87981ae592161209ed76c0c62fb6
BLAKE2b-256 ebb949af937a6b362567b48a300e666b357d33ffe7555bf684aa4b29f0a65766

See more details on using hashes here.

File details

Details for the file django_bethany_ds-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: django_bethany_ds-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for django_bethany_ds-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c5136ac8ba18516b5596a2c4223278ef27c31364fa1ae656de765254e410a732
MD5 d5f8ee69f2455070a2630e9c912c379f
BLAKE2b-256 a667dba499a2fe518b3f41f2b3ad2b65d9dca12ce730915ee2f7ff6371821e10

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