brianray/Chipy — pull request #27 by mnewsome (2012-10-23 16:46:11+00:00)
Title: added previously missing django-piston to requirements/base.txt

*NOTE*

I ran into the below issue caused by django-piston when running syncdb. It's resolved by adding an empty __init__.py file to .env/Lib/site-packages/piston. (Documented here - https://bitbucket.org/jespern/django-piston/issue/173/attributeerror-module-object-has-no)

Partial trace...

(venv)malcolm@ubuntu:~/projects/Chipy$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 31, in
execute_from_command_line()
...
File "/home/malcolm/projects/Chipy/venv/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 176, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/home/malcolm/projects/Chipy/venv/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 160, in _fetch
apppath = os.path.join(os.path.dirname(app.__file__), 'locale')
AttributeError: 'module' object has no attribute '__file__'