Forums

Error in my app for use paginator.py in my index

Hello i have this problem "TypeError at / int() argument must be a string or a number, not 'NoneType' this is the Exception Location: /usr/local/lib/python2.7/dist-packages/django/core/paginator.py in validate_number, line 23

extraerNoticia=Noticias.objects.all().order_by("-id") paginator = Paginator(extraerNoticia, 1) page = request.GET.get('page') try: noticias = paginator.page(page)

django mark error in the line: noticias = paginator.page(page) but in my localhost the app work correctly please help me :(

I use the django version 1.6.5 but in the hosting i have the 1.3.7 version i cant update this ?

hi davichu1, have you seen our wiki page and in particular this link?