Need help

37 views
Skip to first unread message

Deborah

unread,
Jun 14, 2020, 2:38:43 PM6/14/20
to Django users
good evening 
the tags that I use in the html file, appear on browsers when I launch the server, what to do ???

Julio Cojom

unread,
Jun 14, 2020, 2:41:50 PM6/14/20
to django...@googlegroups.com
Show your file please

El dom., 14 de junio de 2020 12:38 p. m., Deborah <kusing...@gmail.com> escribió:
good evening 
the tags that I use in the html file, appear on browsers when I launch the server, what to do ???

--
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/fca60c53-040e-4f39-ab00-04bb61cc8444o%40googlegroups.com.

Deborah

unread,
Jun 14, 2020, 3:03:39 PM6/14/20
to Django users
dj.PNG
django.PNG

Ragnar Örn Ólafsson Ólafsson

unread,
Jun 14, 2020, 3:15:51 PM6/14/20
to django...@googlegroups.com
Category:{%category%} is being parsed as normal text inside of the HTML. 

--
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.

Julio Cojom

unread,
Jun 14, 2020, 3:27:45 PM6/14/20
to django...@googlegroups.com
Based on the url of the browser, seems like python isn't interpreting the HTML file. This url isn't friendly, django not shows ".html" when you browse inside your app. Are you running with py manage.py runserver?

Why the port is 63342? Usualy the port is 8000 unless you explicit changed it.

Try with the first steps in the django tutorial, that will be config template spaces, urls, views and models.




Yannick Kiki

unread,
Jun 14, 2020, 6:03:56 PM6/14/20
to django...@googlegroups.com
{% load static %} should be the first line in the template

RANGA BHARATH JINKA

unread,
Jun 15, 2020, 12:09:31 AM6/15/20
to django...@googlegroups.com
Hi,
    You should not load html file directly. You have to include html file inside a view, and call the url linked to that view in urls.py file. You have to use the url to access the view. All the best.



--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

Kumar Shantanu

unread,
Jun 15, 2020, 9:21:51 AM6/15/20
to django...@googlegroups.com
My best guess you are trying to open the HTML file from your storage and not trying to access it by putting the server on....
Try using :::      py manage.py runserver   to run the server and then try to access your page using your browser
cheers :)


Kelvin Sajere

unread,
Jun 15, 2020, 3:55:28 PM6/15/20
to django...@googlegroups.com
On Sun, Jun 14, 2020 at 19:38 Deborah <kusing...@gmail.com> wrote:
good evening 
the tags that I use in the html file, appear on browsers when I launch the server, what to do ???

--
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.
Here is the thing. In django, you should first make sure your HTML files are in their related app folders, and then load them via a view before using that view to construct a urlparttern as you’d like. Another thing I noticed is that the {% load static %} was after a line of code on your HTML file. This should always be the very first line here except you are extending a base HTML, then that comes first before you load static.
--
KeLLs
Reply all
Reply to author
Forward
0 new messages