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 252893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:42:57+00:00 2026-05-11T21:42:57+00:00

I am writing small social application. One of the features is to write user

  • 0

I am writing small social application. One of the features is to write user name in the header of the site. So for example if I am logged in and my name is Oleg (username), then I should see:

Hello, Oleg | Click to edit profile

Otherwise I should see something like:

Hello Please sign-up or join

What I want is to show this on every page of my site. The obvious solution is to pass request.user object into every view of my site. But here http://www.willmer.com/kb/category/django/
I read that I can simply access request object from any template, just by enabling:

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.request',
)

Not sure why but it actually didn’t work 🙁

Maybe someone can help me and suggest a solution?

Thanks a lot,

Oleg

  • 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-11T21:42:58+00:00Added an answer on May 11, 2026 at 9:42 pm

    Also note that you should use django.core.context_processors.auth instead of django.core.context_processors.request if you don’t need the whole request context. Then you can simply type:

    Hello {{ user.get_full_name }}
    

    in your template.

    Don’t forget to pass context_instance=RequestContext(request) when you call render_to_response (or use direct_to_template).

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

Sidebar

Related Questions

I am writing a small application using Rails 3. In one part of it
Am writing one small application to parse from XML to JSON object for iphone.
I am writing small geolocation service: then user come to my site I should
I have an application where I am reading and writing small blocks of data
I'm writing a small Windows application in Visual C++ without MVC. Its really small,
I am writing a small e-shop application with Symfony 2 and I need some
I'm writing a small RMI based Chat application. The idea is: the Client registers
While writing a small paint-like application (for myself), I originally had the following code
I'm writing small web application on java with hibernate, and I see strange thing
While writing a small C# application for myself I realized that it would be

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.