I did `export DJANGO_SETTINGS_MODULE=settings.py` and it worked fine.