Guessing from the stack trace you provided, either "reverse" or "str" are None (since those are the only two function calls on that line). Is there anywhere you are doing something like reverse = blah or str = blah? Also, you could add a couple of debug statements prior to that call to confirm which (if either) or these are ending up None.
_Nik On 6/14/2013 10:45 AM, sparky wrote: > Hi, I'm wondering if anyone can help me with the following issues it's > really confusing me /(and others who have tried to help)/ > > The question is here: > http://stackoverflow.com/questions/17113479/django-get-absolute-url-empty-in-production > > *But the summery is. * > > I'm using {{ item.get_absolute_url }} in a template. Within > development the rendered HTML looks like this: > > *http://127.0.0.1:8002/contacts/group/edit/36/* - correct! > > On live production it's empty: > > *http://domain.com/* - empty! > > Meaning I get a 'NoneType' error on ayhting that uses > self.get_absolute_url() function (only on production) the code is > 100% the same on both machines I promise. Both on Django 1.5.1 and it > 100% works in dev (runserver) but on on Apache. > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.