bethany_ds templates for demiansoft
Project description
django-bethany_ds
django-bethany_ds는 bethany_ds 템플릿의 기본형이다.
Quick start
- 본 템플릿은 다음의 필수 앱들이 필요하다. 프로젝트의 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',
]
- static 파일을 저장하기 위해 settings.py에 다음을 추가한다.
STATICFILES_DIRS = [
os.path.join(BASE_DIR, '_static/'),
]
- 프로젝트의 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)
-
BASE_DIR에 _data폴더를 생성하고 context.py를 생성한다.
-
BASE_DIR에 _static폴더를 생성하고 이미지를 저장한다.
-
데이터베이스 구성
python manage.py makemigrations popup portfolio
python manage.py migrate
- 프레임으로 창을 띄울때 거부하는 문제 해결위해 settings.py에 다음을 주석처리함.
MIDDLEWARE = [
...
# 프레임으로 창을 띄울때 접속을 거부하는 문제 해결
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
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-bethany_ds-0.0.2.tar.gz
(11.9 kB
view details)
Built Distribution
File details
Details for the file django-bethany_ds-0.0.2.tar.gz
.
File metadata
- Download URL: django-bethany_ds-0.0.2.tar.gz
- Upload date:
- Size: 11.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f0c2c66686a45d1d45990e1ca09710be1d0bf192de4f6e85db52253d4c26079 |
|
MD5 | 1214ff51f154804ab220a6c67d385f3c |
|
BLAKE2b-256 | 188d222b6a5e5bb2cc2152910828f8a78f066db047d11218d0afb2d1567b811c |
File details
Details for the file django_bethany_ds-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_bethany_ds-0.0.2-py3-none-any.whl
- Upload date:
- Size: 13.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec985a50cc694b1cbb0c93865d7678f0f02a64d2285bc534d98716ecfeeb710f |
|
MD5 | 398a3449681ca4e9a5e160b29ca3e3b9 |
|
BLAKE2b-256 | aa78a6852e9fff5f62a7f4256fc7515336b73c392bbca1731fbf2cadbb8743ab |