- Groks nginx installed via MacPorts or Homebrew (
/opt/localor/usr/local) - Follows the Ubuntu sites-available/sites-enabled convention
- Expects top-level project folders to exist in ~/Sites
- Handles Project/project with a single arg (ie,
runserver project) - If naming conventions are different, specify both top-level and django project folder. (eg,
runserver MyProject myproject)
- Static resources will be served by nginx directly if they exist under
top-level/httpdocs - All requests for URLs that do not match a file under
top-level/httpdocsare passed to Django's runserver (http://127.0.0.1:8000) - All *.min.js files will cached forever (so don't serve things you change with that naming convention!)