Challenge hosting a django project on render

78 views
Skip to first unread message

ALINDA Fortunate

unread,
Apr 4, 2024, 3:43:02 PM4/4/24
to django...@googlegroups.com
Hello team I am finding challenges in hosting my project on render it shows the webservice is live and it brings this error any help

Error during template rendering

In template /opt/render/project/src/templates/home.html, error at line 9

relation "pages_landingpage" does not exist LINE 1: ...velopment", "pages_landingpage"."philosophy" FROM "pages_lan... ^

1<!-- templates/home.html-->
2{% extends "_base.html" %}
3{% load static %}
4
5{% block title %}Home{% endblock title %}
6
7{% block content %}
8<div class=".container">
9 {% for landingpage in homepage_list %}
10 <div>
11 <h1>{{landingpage.title}}</h1>
12 <div>
13
14 {% if user.is_authenticated %}
15 <p>Hi {{ user.email }}! Your most welcome.</p>
16 {% else %}
17 <p>You are not logged in</p>
18 <a href="{% url 'account_login' %}">Log In</a>
19 {% endif %}

But locally its running well

ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
Kagadi.

Luciano Martins (luxu)

unread,
Apr 5, 2024, 8:23:53 AM4/5/24
to Django users
Did you run the migrations?

Franky Bonanno

unread,
Apr 5, 2024, 12:58:36 PM4/5/24
to django...@googlegroups.com
Makemigrations then migrate

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e2f1866e-70c2-4cf3-a9cb-af9f2eb7ddc1n%40googlegroups.com.

ALINDA Fortunate

unread,
Apr 5, 2024, 3:02:18 PM4/5/24
to django...@googlegroups.com
Thanks so much everyone it was rectified indeed the issue was with migrations.

manohar chundru

unread,
Apr 7, 2024, 11:10:52 PM4/7/24
to django...@googlegroups.com
can 

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages