Useful Shell Commands

Running the server

make run is all you need. Starts the server and also

  • updates compiled translation files
  • buildouts Django if needed or re-buildouts when buildout.cfg was updated.
  • installs Sass if not present
  • runs syncdb on the first run

All this is possible thanks to GNU Make.

IPython Shell

make shell_plus

Runs the shell_plus (a shell from django-extensions that loads all the installed models), with IPython. Bin/django will be re-built if you have updated buildout.cfg.

Working with Translations

  • make make_trans to extract translation strings in locale folder.
  • compilemessages command is done implicitly when you run the server, but if necessary, use make locales

Checking Your Code

  • make check_pyflakes to use the static analyzer
  • make check_pep8 to check if your code follows the PEP-8 rules.

Of these two, pyflakes check should always be Ok.

WSGI for (Webfaction) Hosting

I have not tested this script on other hosters, so can't tell you if it works. But in Webfaction, you can do

make webfaction

and get the WSGI script that will run your project properly, through bin/django, without site-packages.

Updated

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.