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',
]
Metadata
Release files for django-bethany-ds 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-bethany_ds-0.1.2.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_bethany_ds-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / django-bethany_ds-0.1.2.tar.gz
| Download URL | django-bethany_ds-0.1.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
886a4abcae5851af7de4e5466165f9932c43ed786f05a7e51c215601b2c51d0a
|
|
BLAKE2b-256 checksum How to use checksums |
39bc5b38134d14a38bfc9f60bb33d9fa1c4de6885c44aa4a664d3cf2ac3e13bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / django_bethany_ds-0.1.2-py3-none-any.whl
| Download URL | django_bethany_ds-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dc0bbd6fab7ed1b93aadba745a86f92a3a5887d6198387f38f5d81bde9c2209
|
|
BLAKE2b-256 checksum How to use checksums |
fc4fbae76be28d774342b64d86d1773fed6381366e6f640eda8746deac16b214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|