Skip to content

Instantly share code, notes, and snippets.

View Ngahu's full-sized avatar
🛠️
Making awesomeness ⌘

Ngahu Nj Ngahu

🛠️
Making awesomeness ⌘
View GitHub Profile
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
@Ngahu
Ngahu / cherryd.py
Created December 14, 2018 17:50 — forked from dbinit/cherryd.py
CherryPy Django server
import os
import socket
import urllib
import urlparse
import cherrypy
# Django settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings')
# Celery loader