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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:15:11+00:00 2026-06-12T05:15:11+00:00

i have a base.html which includes some user profile data which are e-mail ,

  • 0

i have a base.html which includes some user profile data which are e-mail , web-site etc.

i need to extend this base.html to my index.html. i can show those data in index.html. because in index page’s view i have username paramater [ also in url’s ].

how can i handle this ? here is my objects.get code in index view :

def user_index(username,request):
    user = Profile.objects.filter(owner__username=username)
    .....

and my related url part :

url(r'^blog/(?P<username>[-\w]+)/$',view='user_index', name='user_index'),
  • 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-12T05:15:13+00:00Added an answer on June 12, 2026 at 5:15 am

    You can do

    index.html

    {% extends 'base.html' %}
    
    {% block content %}
    
    {% endblock content %}
    

    and in

    base.html

    <doctype ...>
    ...
    
    {% block content %}
    {% endblock content %}
    
    ...
    

    Here, the index.html would extend (inherit) from base.html, and render the contents in {% block content %}

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

Sidebar

Related Questions

I have a base.html which has a login section at the top of every
i have template base.html and some children templates. I don't know how to set
I have a html page that calls a php object to get some data
I have a template, base.html , which is used in several other templates for
I have a base.html template that contains a list of links. Example: <div id=sidebar1>
Ok I have a base.html and I try to use that for my header
I have a file called header.html and it is included by base.html . In
I have a ListView. If I want to base the html markup on a
In my html I have <head> <base href=http://mydomain.com/dev/> </head> But my links all go
in my zf application i have base model class Application_Model, which connects to db

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.