- 한국 개발자들을 위한 뉴스/블로그/슬라이드/비디오 공유 사이트
Add this in your ~/.direnvrc
.
use_python() {
local python_root=$HOME/.pyenv/versions/$1
load_prefix "$python_root"
layout_python "$python_root/bin/python"
}
Add eval "$(direnv hook zsh)"
in your run commands.
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc # or .bashrc
Setup requirements like below:
# Setup and activate virtual environments with pyenv and direnv
pyenv install 3.7.2
direnv allow
# Install packages
pip install -r requirements.txt
# Deploy mysql for dev
docker run --name devnews-db -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=devnews-db -e MYSQL_USER=devnews-user -e MYSQL_PASSWORD=devnews-password -d mariadb
# Optional: Connect db shell
mysql -h0 -udevnews-user -pdevnews-password devnews-db
# Optional: Change default admin theme - uswds
./manage.py loaddata admin_interface_theme_uswds.json
# Run in local
./manage.py runserver 0:8000
Work in progress...
Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.