On Feb 20, 3:01 pm, Brandon Taylor <btaylordes...@gmail.com> wrote: > Actually I was referring to my action in views.py to get the Category > objects: > > from activity_codes.models import * (this is the auto-generated > models.py) > > def home(request): > categories = Categories.objects.all() > return render_to_response('test.html', {'categories' : > categories})
Have you restarted the web server since fixing the models? Is there any caching going on in between your browser and the server? Those are the only reasons I can think of why it would work in a manage.py shell, but not in a view. Also, this may seem obvious, but are you using the same settings and models modules in both places? Ian --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---