Fixed urls.py error and switched into debug mode