start new:
tmux
start new with session name:
tmux new -s myname
#!/Users/username/Documents/python/projectname/env/bin/python | |
# edit line 1 to match what YOU get when you are in YOUR virtualenv and type: which python | |
# NO SPACES in first 3 chars in line 1: #!/ | |
# make sure env is activated! | |
# make sure you have "started all" in XAMPP! | |
# code below works for a MySQL database in XAMPP on Mac OS | |
# pymysql can be installed with pip: pip install PyMySQL | |
import pymysql |