장고와 환경변수

정은경·2021년 2월 3일
0

우부툰에서 장고를 개발하고 있다!
장고 환경변수는 어디에다가 설정해야할까?

export DJANGO_SETTINGS_MODULE=config.settings.development

후보1. 사용자 디렉터리의 ".profile"

(ews1)  jek@DESKTOP-L78P7IM  ~  ls -al
total 44500
drwxr-xr-x 1 jek  jek       512 Feb  3 10:14 .
drwxr-xr-x 1 root root      512 Feb  2 10:22 ..
-rw------- 1 jek  jek      5016 Feb  2 18:14 .bash_history
-rw-r--r-- 1 jek  jek       220 Feb  2 10:22 .bash_logout
-rw-r--r-- 1 jek  jek      4238 Feb  2 12:46 .bashrc
drwxr-xr-x 1 jek  jek       512 Feb  2 15:26 .cache
drwxr-xr-x 1 jek  jek       512 Feb  2 12:07 .conda
drwxr-xr-x 1 jek  jek       512 Feb  2 10:22 .landscape
-rw-r--r-- 1 jek  jek         0 Feb  2 10:22 .motd_shown
drwxr-xr-x 1 jek  jek       512 Feb  2 15:17 .oh-my-zsh
-rw-r--r-- 1 jek  jek       807 Feb  2 10:22 .profile
-rw------- 1 jek  jek         7 Feb  2 12:39 .python_history
-rw-r--r-- 1 jek  jek        10 Feb  2 15:17 .shell.pre-oh-my-zsh
drwx------ 1 jek  jek       512 Feb  2 12:48 .ssh
-rw-r--r-- 1 jek  jek         0 Feb  2 10:56 .sudo_as_admin_successful
-rw------- 1 jek  jek     14090 Feb  3 10:11 .viminfo
-rw-r--r-- 1 jek  jek       316 Feb  2 15:30 .wget-hsts
-rw-r--r-- 1 jek  jek     49006 Feb  2 15:17 .zcompdump
-rw-r--r-- 1 jek  jek     50436 Feb  2 15:40 .zcompdump-DESKTOP-L78P7IM-5.8
-rw------- 1 jek  jek      5980 Feb  3 10:14 .zsh_history
-rw-r--r-- 1 jek  jek      4256 Feb  3 09:07 .zshrc
drwxr-xr-x 1 jek  jek       512 May 25  2018 D2Coding
-rw-r--r-- 1 jek  jek  21256997 Jun  1  2018 D2Coding-Ver1.3.2-20180524.zip
drwxr-xr-x 1 jek  jek       512 May 25  2018 D2CodingAll
drwxr-xr-x 1 jek  jek       512 May 25  2018 D2CodingLigature
drwxr-xr-x 1 jek  jek       512 Feb  2 11:33 Python-3.8.4
-rw-r--r-- 1 jek  jek  24151047 Jul 13  2020 Python-3.8.4.tgz
drwxr-xr-x 1 jek  jek       512 Feb  2 12:40 anaconda3
drwxr-xr-x 1 jek  jek       512 Feb  2 14:36 ews
(ews1)  jek@DESKTOP-L78P7IM  ~ 
(ews1)  jek@DESKTOP-L78P7IM  ~  pwd
/home/jek
(ews1)  jek@DESKTOP-L78P7IM  ~ 

후보2. 가상환경 설정파일?!

Reference

profile
#의식의흐름 #순간순간 #생각의스냅샷

0개의 댓글