This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
| #!/usr/bin/env python3 | |
| def swap(l, i, j): | |
| m = l[::] | |
| m[i], m[j] = l[j], l[i] | |
| return m | |
| class Puzzle: | |
| def __init__(self, initial_state=[0, 1, 3, 2, 4, 8, 5, 6, 7], goal_state=[1, 2, 3, 4, 5, 6, 7, 8, 0]): | |
| if len(initial_state) != len(goal_state): |
| #!/usr/bin/env bash | |
| mkdir vim | |
| curl https://s3.amazonaws.com/heroku-vim/vim-7.3.tar.gz --location --silent | tar xz -C vim | |
| export PATH=$PATH:/app/vim/bin |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Combination</title> | |
| </head> |
| set smoothscroll | |
| set ignorecase | |
| set smartcase | |
| set regexp | |
| set incsearch | |
| set showtabindices | |
| set noautofocus | |
| map H gT | |
| map L gt |