Django Tutorial for Beginners – 15 – Render Template Shortcut

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

14 responses to “Django Tutorial for Beginners – 15 – Render Template Shortcut”

  1. Alex Yap Avatar

    i'm getting this error:
    no module named 'django.shortcuts'

    anyone any ideas?

  2. Nikhil Wagh Avatar

    Why he didn't use /music/index.html in the render function but instead used music/index.html . Why that slash is not there, he has been using it in the past few videos.

  3. Michael Mc Daid Avatar

    following along here .. great tutorial … learning alot .. thanks !!

  4. Mayank Yadav Avatar

    I can't even open my admin page..What's wrong

  5. enkhjargal uranbadam Avatar

    there are only 'you don't have any albums' in the website.why? what is wrong?

  6. Thames Khi Avatar

    Not sure if people are still stuck:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Music</title>
    </head>
    <body>

    <h3>My Albums</h3>
    {% if all_albums %}

    <ul>
    {% for album in all_albums %}
    <li><a href="/music/{{ album.id }}/">{{ album.album_title }}</a></li>
    {% endfor %}
    </ul>

    {% else %}
    <h1>No Albums</h1>
    {% endif %}

    </body>
    </html>

  7. Bobby Flips Avatar

    I am getting the same error as everyone else, bullet points on /music but no actual items displayed how do i fix this??

  8. P.C Abhishek Avatar

    no contents are being displayed on /music

  9. Rithwik Katuri Avatar

    why is context used??
    and how can i display a html page which doesn't require anything from a database??

  10. Aleena Notary Avatar

    These tutorials are so helpful! I'm having a problem though – For some reason linking the template to the database is not returning any labels. As in, I see two bullet points where my two "albums" should be but there is no text. I don't get any errors when I run the server

  11. Amara Kromah Avatar

    what theme/fonts are you using ?

  12. assilksiksi Avatar

    Bro… love your work!

    How are you so productive btw? Got any advice for a procrastinator like me?

Leave a Reply

Your email address will not be published. Required fields are marked *