Python Forum
Help finishing my Wikipedia page
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help finishing my Wikipedia page
#7
OK so the markdown is pretty easy to use. However, I still have issues. It's returning the information in HTML tags, but the HTML is not rendering on my site. Below is my code and a picture of the issue I'm having. Am I missing something?

Thanks!

def wiki(request, title):
    title = title
    entry = markdown2.markdown(util.get_entry(title))
    return render(request, "encyclopedia/wiki.html", {
        "entries": entry
    })
{% extends "encyclopedia/layout.html" %}

{% block title %}
    Encyclopedia
{% endblock %}

{% block body %}

   
            
            {{ entries }}
            
        
    
        <form
                    name="frmInfo1"
                    action="/edit"
                    method="post">{% csrf_token %}
                    <textarea name="content">{{ entries }}</textarea>
                    <input type="submit" name="edit" class="submit" value="Edit Entry">
                </form>
{% endblock %}
[Image: v.php?i=a863a0ca9e]
Reply


Messages In This Thread
Help finishing my Wikipedia page - by card51shor - Jul-06-2020, 07:45 AM
RE: Help finishing my Wikipedia page - by ndc85430 - Jul-06-2020, 08:43 AM
RE: Help finishing my Wikipedia page - by ndc85430 - Jul-07-2020, 04:39 AM
RE: Help finishing my Wikipedia page - by card51shor - Jul-07-2020, 07:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help in finishing my scripts mohank84 5 3,963 Oct-16-2019, 04:54 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020