This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip3 install virtualenvwrapper | |
vim ~/.bashrc | |
And add the following lines: | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=$HOME/Devel | |
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 | |
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv | |
source ~/.local/bin/virtualenvwrapper.sh | |
source ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import socket | |
import urllib | |
import urlparse | |
import cherrypy | |
# Django settings | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') | |
# Celery loader |