python - ProgrammingError at / relation "xxx" does not exist / Error during template rendering -


i'm building django on heroku , i'm getting "error during template rendering" error on heroku. when running locally works fine. in addition, i'm printing field i'm trying render before rendering page , see exists , valid. template simple:

this urls.py

from django.conf.urls import patterns, include, url django.contrib import admin perfil import views   urlpatterns = patterns('',       url(r'^admin/', include(admin.site.urls)),     url(r'^$', views.lista_dato), ) 

this models.py

from django.db import models django.utils import timezone  # create models here.  class dato(models.model):     #author = models.foreignkey('auth.user')     nombre = models.charfield(max_length=50)     nacimiento = models.datefield(blank=true, null=true)      cedula = models.integerfield(max_length=50)     tarjeta_profesional = models.charfield(max_length=50)     celular = models.charfield(max_length=100)     email = models.emailfield(max_length=100)     descripcion = models.textfield()     estudio = models.textfield()     experiencia_laboral = models.textfield()     fecha_publicar = models.datetimefield(blank=true, null=true)      def publicar(self):         self.fecha_publicar = timezone.now()         self.save()      def _str_(self):         return self.nombre 

this lista_dato.html

{% extends 'perfil/base.html' %} {% block content %}  {% dato in datos %} <div class="page-header"> <h1><center><a href="https://www.facebook.com/john.e.barbosa">{{ dato.nombre }}</a></center></h1> </div>  <div> <p><h2>cedula de ciudadania:</h2> {{ dato.cedula }}</p> <p><h2>tarjeta profesional:</h2> {{ dato.tarjeta_profesional }}</p> <p><h2>celular:</h2> {{ dato.celular }}</p> <p><h2>email:</h2> {{ dato.email }}</p> </div>  <div class="post"> <div class="date">ultima actualizacion {{ dato.fecha_publicar }} </div> <h1>descripciÓn</h1> <p>{{ dato.descripcion }}</p> <h1>formaciÓn</h1> <p>{{ dato.estudio}}</p> <h1>experiencia laboral</h1> <p>{{ dato.experiencia_laboral}}</p> </div> {% endfor %} {% endblock content %} 

this base.html

{% load staticfiles %}  <html>         <head>             <title>perfil</title>             <link href='https://fonts.googleapis.com/css?family=sigmar+one' rel='stylesheet' type='text/css'>             <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">             <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">             <link rel="stylesheet" href="{% static 'css/miperfil.css' %}">         </head>         <body>             <div class="content container">                  {% block content %}                {% endblock %}             </div>            </body>     </html> 

and views.py

from django.shortcuts import render django.utils import timezone .models import dato # create views here.  def lista_dato(request):     datos = dato.objects.filter(fecha_publicar__lte=timezone.now()).order_by('fecha_publicar')     return render(request, 'perfil/lista_dato.html', {'datos': datos}) 

error in heroku error in heroku 2

this single mistake appears in heroku in local environment not.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -