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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:53:29+00:00 2026-06-15T12:53:29+00:00

I am using django-flatpages to allow admin to maintain / customize homepage of website

  • 0

I am using django-flatpages to allow admin to maintain / customize homepage of website from admin.

So he will able to add, edit & delete homepage div content through admin side.

But see output for following div.

Actual content added from admin side:

{%if user.is_authenticated %}
<h2>Welcome Back!</h2>
<div class="home-since-last">
    <div class="member-photo">
        <a href="/person/{{user.username}}"><img src="{{STATIC_URL}}{{user.get_profile.profile_image}}" alt="{{user.username}}" /></a>
    </div>
    <p><strong>Since your last visit:</strong></p>
    <ul>
    <li>+{{today_supporter_count}} supporter{{today_supporter_count|pluralize}}</li>
    <li>+{{today_comment_count}} comment{{today_comment_count|pluralize}}</li>
    <li>+{{today_adoption_count}} adoption{{today_adoption_count|pluralize}}</li>
    </ul>
    <p><a href="/you">Go to your profile &raquo;</a></p>
</div>
{% endif %)

Output :

Welcome Back!
{{user.username}}

Since your last visit:

    +{{today_supporter_count}} supporter{{today_supporter_count|pluralize}}
    +{{today_comment_count}} comment{{today_comment_count|pluralize}}
    +{{today_adoption_count}} adoption{{today_adoption_count|pluralize}}

Go to your profile »

Expected:

Welcome Back!
bhushan vaiude [Image of user]

Since your last visit:

    +12 supporters
    +4 comments
    +0 adoptions

Go to your profile »

As ref. to PHP, I want some thing like include('abc.php'); so abc.php file can access parameters of parent or container files.

  • 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-15T12:53:30+00:00Added an answer on June 15, 2026 at 12:53 pm

    Probably you should look at django-dbtemplates: write your own view and let the admin change the template from the admin.

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

Sidebar

Related Questions

Learning django from learning website development using django. In chapter 3, building a bookmark
Using Django 1.1, I am trying to select the maximum value from a varchar
Am using django social-auth authentication for my app.After login to facebook or twitter from
Using django-social-auth to grab user data from facebook, it is returning a list of
(Using django as an example; the ForeignKey is implicit in the example) >>> from
Using django, I'm trying to get a QuerySet of FK relationships from another QuerySet.
When using django.contrib.comments is there anyway to add the reverse relationship to a model
I'm using django-cms 2.2 and imagestore as gallery plugin. But I need to customize
Using django-contact-form , I have overridden the form class: from contact_form.forms import ContactForm from
Using Django Reddit Style Voting Tutorial , and getting this error. Building a Q&A

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.