Add pyc to gitignore.
Fix url pattern for detail view.
Remove pyc files from repo.