U
    ě]j"                     @   s  d Z ddlmZ ddlmZ ddlmZ ddlZee	
 jjZdd Zdd	 Zeed
  edZdZdZdedfdedfgZddgZddddddddddg
Zdddd d!d"d#d$d%g	Zd&Zd'g d(d)d*d+d,d-gid.gZd/Zd0d1ejd2d3ejd4d5ed6ejd7d8ejd9d:d;iZd<d=id<d>id<d?id<d@igZdAZd(Zd(ZdBZ ej!"edCZ#edD gZ$dEZ%ej!"edFZ&dGZ'dHZ(dIZ)d0dJdKdLdMdNdOdPdLdQgdRdSdTdUdVdWdXdLdYdZgdRd[d\d]dLd^gdRd_d`dadbdcdddedfdgdhg	dRdidjdkdldmdndodpdLdqgdRdrdsdtdLdudvdLdwdxdLdydzd{d|dLd}d~dgdRddddgdRddddddddddg	dRdidddddgdRdddgdRdddgdRddgdRddgdRdiddOdgdRgddJddJdgdgdddd(ddd"ddddddddddSddddddgd
iZ*dS )a(  
Django settings for BMC project.

Generated by 'django-admin startproject' using Django 4.0.1.

For more information on this file, see
https://docs.djangoproject.com/en/4.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
    )Path)gettext_lazy)ImproperlyConfiguredNc                 C   sx   |   sd S | jdd D ]V}| }|r|dsd|kr@q|d\}}}tj| | dd qd S )Nzutf-8)encoding#="')	exists	read_text
splitlinesstrip
startswith	partitionosenviron
setdefault)pathrawlinekeyZ_sepval r   4/var/www/BmcWebsite/BMC-WEBSITE-DONE/BMC/settings.py_load_dotenv   s    r   c                 C   s$   t j| }|s td| d|S )ud   Đọc biến bắt buộc; thiếu thì báo lỗi rõ ràng thay vì chạy với giá trị rác.u   Thiếu biến môi trường uk   . Tạo file .env ở gốc dự án (tham khảo .env.example) hoặc đặt biến này trên máy chủ.)r   r   getr   )namer   r   r   r   _require_env&   s    
r   z.env
SECRET_KEYFvienEnglish
Vietnamesezbmcgroup.com.vnzwww.bmcgroup.com.vnzdjango.contrib.adminzdjango.contrib.authzdjango.contrib.contenttypeszdjango.contrib.sessionszdjango.contrib.messageszdjango.contrib.staticfilesZBmcBaseZlegalZckeditorZckeditor_uploaderz-django.middleware.security.SecurityMiddlewarez4django.contrib.sessions.middleware.SessionMiddlewarez)django.middleware.common.CommonMiddlewarez-BmcBase.middleware.MacDinhTiengVietMiddlewarez)django.middleware.locale.LocaleMiddlewarez)django.middleware.csrf.CsrfViewMiddlewarez7django.contrib.auth.middleware.AuthenticationMiddlewarez4django.contrib.messages.middleware.MessageMiddlewarez6django.middleware.clickjacking.XFrameOptionsMiddlewarezBMC.urlsz/django.template.backends.django.DjangoTemplatesTZcontext_processorsz(django.template.context_processors.debugz*django.template.context_processors.requestz+django.contrib.auth.context_processors.authz3django.contrib.messages.context_processors.messages)BACKENDZDIRSAPP_DIRSOPTIONSzBMC.wsgi.applicationdefaultzdjango.db.backends.postgresqlZDB_NAMEZbmcZDB_USERadminZDB_PASSWORDZDB_HOST	localhostZDB_PORTZ5432)ENGINENAMEUSERPASSWORDHOSTPORTr*   zHdjango.contrib.auth.password_validation.UserAttributeSimilarityValidatorz>django.contrib.auth.password_validation.MinimumLengthValidatorz?django.contrib.auth.password_validation.CommonPasswordValidatorz@django.contrib.auth.password_validation.NumericPasswordValidatorZUTCz/static/staticfileszlocale/z/media/Zmediazdjango.db.models.BigAutoFieldz/static/ckeditor/ckeditor/zuploads/ZdocumentZSource-ZSaveZNewPageZPreviewZPrintZ	Templates)r   itemsZ	clipboardZCutZCopyZPasteZ	PasteTextZPasteFromWordZUndoZRedoZeditingZFindZReplaceZ	SelectAllZformsZFormZCheckboxZRadioZ	TextFieldZTextareaZSelectZButtonZImageButtonZHiddenField/ZbasicstylesZBoldZItalicZ	UnderlineZStrikeZ	SubscriptZSuperscriptZRemoveFormatZ	paragraphZNumberedListZBulletedListZOutdentZIndentZ
BlockquoteZ	CreateDivZJustifyLeftZJustifyCenterZJustifyRightZJustifyBlockZBidiLtrZBidiRtlZLanguageZlinksZLinkZUnlinkZAnchorinsertZImageZYoutubeZFlashZTableZHorizontalRuleZSmileyZSpecialCharZ	PageBreakZIframestylesZStylesFormatZFontZFontSizecolorsZ	TextColorZBGColorZtoolsZMaximizeZ
ShowBlocksZaboutZCodeSnippetZAboutZyourcustomtoolsZCustommodeZdoctools)r   groupsi  i  i  zC//cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML   ,ZuploadimageZdivZautolinkZ	autoembedZembedsemanticZautogrowZdevtoolsZwidgetZ	lineutilsZdialogZdialoguiZelementspathZcodesnippetZyoutubeZimage2)
Ztoolbar_CustomZtoolbarZtoolbarGroupsZheightZfilebrowserWindowHeightZfilebrowserWindowWidthZtoolbarCanCollapseZ
mathJaxLibZ	tabSpacesZextraPlugins)+__doc__pathlibr   django.utils.translationr   _django.core.exceptionsr   r   __file__resolveparentZBASE_DIRr   r   r   DEBUGLANGUAGE_CODE	LANGUAGESALLOWED_HOSTSINSTALLED_APPS
MIDDLEWAREROOT_URLCONF	TEMPLATESWSGI_APPLICATIONr   r   	DATABASESAUTH_PASSWORD_VALIDATORS	TIME_ZONEUSE_I18NUSE_TZ
STATIC_URLr   joinSTATIC_ROOTLOCALE_PATHS	MEDIA_URL
MEDIA_ROOTDEFAULT_AUTO_FIELDZCKEDITOR_BASEPATHZCKEDITOR_UPLOAD_PATHZCKEDITOR_CONFIGSr   r   r   r   <module>   s6  	


           

