Implementing a SOA in Django using celery

A message queue (such as rabbitmq brokered by celery) is a perfectly fine way to handle communication between SOA components. Additionally, if you need real-time communication without sharing databases between services, REST is basically made for this. There are several options for implementing REST services on top of Django, with Tastypie and Django-Rest-Framework being popular … Read more

Django: no such table: django_session

It could be that the server uses a different working directory than the manage.py command. Since you provide a relative path to the sqlite database, it is created in the working directory. Try it with an absolute path, e.g.: Remember that you have to either run ./manage.py syncdb again or copy your current database with the existing tables to /tmp. … Read more

Django TemplateDoesNotExist?

First solution: These settings mean that Django will look at the templates from templates/ directory under your project. Assuming your Django project is located at /usr/lib/python2.5/site-packages/projectname/ then with your settings django will look for the templates under /usr/lib/python2.5/site-packages/projectname/templates/ So in that case we want to move our templates to be structured like this: Second solution: If that still doesn’t work … Read more