Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8470909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:38:57+00:00 2026-06-10T16:38:57+00:00

Let me break this down for you. Im working with Django 1.4 (so, obviously

  • 0

Let me break this down for you. Im working with Django 1.4 (so, obviously with Python too, which would be v2.7.1). In SoundClouds Developer docs, its says you can embed the player with the following code – given that you’ve registered your app & downloaded the SDK (which I’ve done):

import soundcloud

# create a client object with your app credentials
client = soundcloud.Client(client_id='YOUR_CLIENT_ID')

# get a tracks oembed data
track_url = 'http://soundcloud.com/forss/flickermood'
embed_info = client.get('/oembed', url=track_url)

# render the html for the player widget
return render_template('player.html', widget=embed_info['html'])

So my question is where this render_template coming from? I get an error in Django saying render_template is not defined. Is that the same as the render_to_response in django? I’m not sure what’s what here. Thanks.

[EDIT] The SoundClouds developers documentation: http://developers.soundcloud.com/docs#playing

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:38:59+00:00Added an answer on June 10, 2026 at 4:38 pm

    After thinking it through, I assume render_template is just a placeholder call to whatever your favorite rendering tool is.

    I assume embed_info[‘html’] contains the full HTML code to embed the widget in your page, so try printing it and see if it looks right. Then pick whatever templating language you want, and pass this variable to it as a widget to embed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Functions with closures seem to break when used with eval . (eval {:fn (let
In Perl regex, how can I break from /ge loop..? Let's say the code
Let's say I have a method in java, which looks up a user in
I'm working on a website, and I've encountered a problem for which I cannot
I have trouble understanding this chunk of code: let sieve (p:xs) = p :
When do Enumerations break down? To support a new feature in an existing system,
I've oversimplified this a bit, because I'm looking for a general-purpose answer. Let's say
This is my second time working with Windows Presentation Foundation . Here is what
To keep my code cleaner I often try to break down parts of my
I have this password regex for an application that is being built its purpose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.