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

  • Home
  • SEARCH
  • 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 6649589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:47:31+00:00 2026-05-26T00:47:31+00:00

I am adding a variable to a dictionary like this: rr_context[start_date] = c.start_date And

  • 0

I am adding a variable to a dictionary like this:

rr_context["start_date"] = c.start_date

And then I pass the dictionary to render_to_response:

return render_to_response(
        rr_template,
        rr_context,
        context_instance=RequestContext(request))

Then in template I try to format it this way:

{{ start_date|date:"F" }}

But it returns nothing. I found the problem is for some reason Django passes a variable looking like this: (datetime.date(2011, 10, 7),). I don’t know why it happens this way.
I read the docs and I think I did it right way. What can be the issue?

  • 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-05-26T00:47:32+00:00Added an answer on May 26, 2026 at 12:47 am

    It seems that your start_date is a tuple and not a single date value. That’s why the date filter doesn’t work.

    You should check that c.start_date is a date, because it looks like it’s a tuple.

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

Sidebar

Related Questions

This is the same question as this: https://stackoverflow.com/questions/2890620/jquery-running-a-function-in-a-context-and-adding-to-a-variable But that question was poorly posed.
I have a huge dictionary of blank values in a variable called current like
I'm having trouble adding a variable amount of labels to a panel. My problem
I have an ASP.NET web form which I am adding a variable number User
I am thinking of adding a DataContext as a member variable to my aspx.cs
I'm having some trouble adding a javascript variable onto the end of my link
I have a variable inside my php file, which I want to pass to
I'm using Python 2.5 and trying to make a variable called total and adding
This is for adding images, categories and comments from an email to a photo
I have a array which contains values like this See below for script sample

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.