Hello django-users, I’m having a bit of a problem making Trac and Django coexist on the same Apache instance.
I have django.example.org and trac.example.org, both with their own PythonInterpreter directive set to “django” in the former case and “trac” in the other. The problem is that if I load any page on the Trac site, one of the views in my Django site goes belly up and displays an AttributeError. The complete Traceback is at the bottom of this message. It looks like a template error, where the offending line reads: {{ post.created|date:"d/m/Y" }} Django complains with an “AttributeError at / 'str' object has no attribute 'day'”, but if I restart Apache and do not make any single request to the Trac site that view works just fine and that date gets formatted and displayed correctly. As soon as I load any page on the Trac site, the Django site homepage (containing that template snippet) goes into AttributeError for any subsequent request. Other views keep on working fine on the Django site. I’m running Django trunk HEAD, Apache 2.0.59 and mod_python 3.2.8 on a Windows 2000 server. Python 2.3.5, Trac 0.10.1, pysqlite-2.3.2. Sorry, I’m a but stumped at the moment, Cheers. -- Antonio [[[ Traceback (most recent call last): File "c:\program files\django\django\template\__init__.py" in render_node 706. result = node.render(context) File "c:\program files\django\django\template\__init__.py" in render 752. output = self.filter_expression.resolve(context) File "c:\program files\django\django\template\__init__.py" in resolve 565. obj = func(obj, *arg_vals) File "c:\program files\django\django\template\defaultfilters.py" in date 337. return format(value, arg) File "c:\program files\django\django\utils\dateformat.py" in format 252. return df.format(format_string) File "c:\program files\django\django\utils\dateformat.py" in format 27. pieces.append(str(getattr(self, piece)())) File "c:\program files\django\django\utils\dateformat.py" in d 115. return '%02d' % self.data.day AttributeError at / 'str' object has no attribute 'day' ]]] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---