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œd€d�d‚dƒgdRœd„d…d†d‡dˆd‰dŠd‹dŒd�g	dRœdidŽd�d�d‘d’gdRœd“d”d•gdRœd–d—d˜gdRœd™dšgdRœd™d›gdRœdidœdOd—gdRœgd�dJdždJdŸgd œgd¡d¢d£d(d¤d¥d¦ "d§d¨d©dªd«d¬d­d®d¯dSd°d±d²d³d´dµg¡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  	

þ
 ÿööüÿüÿúÿ ÿ ÿ ÿ ÿöÿÿÿÿ      þÿÿ

ýèïÖÿ