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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:11:35+00:00 2026-06-10T12:11:35+00:00

I am using the current version of django and using django-registration I got everything

  • 0

I am using the current version of django and using django-registration

I got everything working on the server, and I got the templates done, with the help of this blog.

sometimes the page show’s the user logged in, other times the same base.html say’s that the user is not logged in. I think I have to pass the user to the template but I have no idea what to lookup, the docs on this stop after it’s set up. How can I get this Base.html to work, It say’s that I’m not logged in. then I go to the loggin page and it then say’s on that page that I am logged in.

It seems to be url specific. It will say that I am logged in, move to a different page, and it offers me to get logged in. Why can’t I have it site wide, what am I missing

django-registration is a package so I don’t know what I can do, Change the view Function?
the following is my base.html

 {% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <link rel="stylesheet" href="/style.css" />
    <title>{% block title %}User test{% endblock %}</title>


</head>

<body>
    <div id="header">
        {% block header %}
    {% if user.is_authenticated %}
    {% trans "Logged in" %}: {{ user.username }} 
    (<a href="{% url auth_logout %}">{% trans "Log out" %}</a> | 
    <a href="{% url auth_password_change %}">{% trans "Change password" %}</a>)
    {% else %}
    <a href="{% url auth_login %}">{% trans "Log in" %}</a>
    {% endif %}
    <hr />
        {% endblock %}
    </div>


    <div id="content">
        {% block content %}{% endblock %}
    </div>

    <div id="footer">
        {% block footer %}
        <hr />
        {% endblock %}
    </div>
</body>

</html>
  • 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-10T12:11:37+00:00Added an answer on June 10, 2026 at 12:11 pm

    You didn’t post the view code but I suspect that your issue relates to the fact that you didnt pass a RequestContext on all of your views functions.

    The User variable in the templete is added by a context processor.

    just do :

    ctx = RequestContext(request)
    

    in your view function and pass it to the templete processor by :

    context_instance=ctx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to identify the current version of IIS / using NSIS
I need to find some strings that the current version of Windows is using.
Suppose I am building an app using current mysql database tables. I have this
I'm using the current version of ODP.NET and trying to connect to an Oracle
I am using this guide to use Django 'out-of-box' with Google App Engine using
I'm on Ubuntu 11.10 using ghc version 7.0.3.20110330, running current-version updates of nvidia display
I am using the current version of SpringSource Tool Suite with the Groovy/Grails plugin
I've been working with Django for a while now (currently on version 1.2), but
I'm using the current version of ASP.net MVC to display a form. Validation is
Using Eclipse 3.6.2, current version of CDT, current Cygwin tools and C++ (GCC) compiler.

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.