I found that if I ran with Apache as my front end the command
git rev-parse --short HEAD
did not work, as it was not being executed in my projects home directory. To fix this, I added the following line to my projects settings.py:
SOURCE_REVISION_COMMANDS = [
'git --git-dir=%s/.git rev-parse --short HEAD' % BASE_DIR, # for git
]
Possibly a bit hokey, but I'm relatively new to both Python and Django. So all improvements are gladly accepted!
I found that if I ran with Apache as my front end the command
did not work, as it was not being executed in my projects home directory. To fix this, I added the following line to my projects
settings.py:Possibly a bit hokey, but I'm relatively new to both Python and Django. So all improvements are gladly accepted!