- Django 설치 실패시 가상환경 적용 후 설치 하는 법
$ pip install python-virtualenv
$ virtualenv django_env
$ source django_env/bin/activate
(django_env) $ pip install django
(django_env) $ cd $HOME
(django_env) $ mkdir projects
(django_env) $ cd projects
(django_env)/projects $ django-admin.py startproject foo
(django_env)/projects $ cd foo
(django_env)/projects/foo $ python manage.py runserver
When you are finished; type
deactivate
to exit the virtual environment:(django_env)/projects/foo $ deactivate
/projects/foo $
출처 (우분투에서 적용법)http://stackoverflow.com/questions/19629685/django-installation-cannot-use-pip-to-install-django-on-linuxubuntu
- Pycharm에서 Python 가상환경 적용
http://exponential.io/blog/2015/02/10/configure-pycharm-to-use-virtualenv/
- Pycharm CE에서 Django 설정
http://infitude.tistory.com/6
pip install djangorestframework
pip install django-rest-swagger
pip install bs4
댓글 없음:
댓글 쓰기