Ok, so something is happening to the name "reverse" in the global scope between the time you're importing it at the top of the file and when get_absolute_url is called. Search the file for instances of "reverse". Are you importing anything else by that name? Or anything like "import foo as reverse" or anywhere in the file is there anything like "reverse = foo"?
Failing that, are you using "from foo import *" anywhere? If so, check the modules you're doing an "import *" from and see if any of them are using the name "reverse" in anyway. _Nik On 6/14/2013 3:33 PM, sparky wrote: > Ok I have no idea whats happening, I took your advice and added the > code below. then on production get_absolute_url starting working. I > took it out and it stopped again. get_delete_url does not work either > until I add in your debugging again WTF! > > def get_absolute_url(self): > import logging > from django.core.urlresolvers import reverse > logging.debug(reverse) > logging.debug(str) > return reverse('contacts.views.group', args=[str(self.id)]) > > def get_delete_url(self): > return reverse('contacts.views.group_delete_confirm', > args=[str(self.id)]) > -- > 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.