mentor_ds templates for demiansoft
Project description
django-mentor_ds
django-mentor_ds는 mentor_ds 템플릿의 기본형이다.
Quick start
- 본 템플릿은 다음의 필수 앱들이 필요하다. 프로젝트의 settings.py에 다음을 추가한다.
INSTALLED_APPS = [
...
'django.contrib.humanize',
'mentor_ds',
# 필수 컴포넌트
'popup',
'base',
'hero',
# 선택 공통 컴포넌트
'counts',
'about',
'whyus',
'testimonials',
'team',
'faq',
'contact',
'appointment', # contact에서 내부적으로 사용함
# 선택 유니크 컴포넌트
'courses',
'features',
'events',
'pricing',
]
- 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('mentor_ds.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
-
BASE_DIR에 _data폴더를 생성하고 context.py를 생성한다.
-
BASE_DIR에 _static폴더를 생성하고 이미지를 저장한다.
- 프레임으로 창을 띄울때 거부하는 문제 해결위해 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-mentor_ds-0.2.6.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for django_mentor_ds-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5daf510764b71948fe7ff1ed4d5e67de3cbd7b3790333f19c507e1d1c438f89b |
|
MD5 | 1b765040989a4c5da2db0c0d497d587f |
|
BLAKE2b-256 | 146b5dba2b8f02b0c78a171a32499a6351543573168356c7f8e72f352b129435 |