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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:07:25+00:00 2026-06-18T11:07:25+00:00

I am following part 2 of the Django tutorial . I am trying to

  • 0

I am following part 2 of the Django tutorial. I am trying to override an admin template (base_site.html)

I copied the file from the django/contrib/admin/templates to mytemplates/admin/base_site.html

I also updated settings.py:

#Base Directory
BASE_DIR = os.path.dirname(os.path.abspath(__file__))

#Template directories
TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'mytemplates'),)

I tried putting the mytemplates folder in the root of the project folder as well as in the mysite folder with no luck. Any pointers would be great!

  • 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-18T11:07:26+00:00Added an answer on June 18, 2026 at 11:07 am

    EDITED PREVIOUS USER RESPONSE — THIS WORKS:

    I think your relative path to the templates directory is wrong.

    If you follow these steps it should work: (I tested it myself)

    1. Put the mytemplates dir side by side with the manage.py file

      project
      -app1
      -app2
      -mytemplates
          -admin
              -base_site.html
      -manage.py
      
    2. Change the TEMPLATE_DIRS to:

      TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'mytemplates'),)
      
    3. Make sure the order of the template loader is:

      TEMPLATE_LOADERS = (
      
          'django.template.loaders.filesystem.Loader',
          'django.template.loaders.app_directories.Loader',
      
      )
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm following the Django tutorial and got stuck with an error at part 4
So now I am still at the Django tutorial part 3: http://docs.djangoproject.com/en/1.1/intro/tutorial03/#intro-tutorial03 Trying to
I am on the Django tutorial (part 4) and trying to create a form
I am following the official Django tutorial. I'm stuck in Part 2 . I
I'm following a Django tutorial and suddenly when I try to access http://127.0.0.1:8000/admin/ it
The following in part of my view file def user_detail(request, username, template_name='auth/user_detail.html', extra_context=None): context
I am following this part of the 'django by example' tutorial. Now when I
I am following Django tutorial from django website. There I see a regular expression
I'm following the django tutorial at Django by example in http://www.lightbird.net/ . In the
I'm fairly new to python and following along with part 4 of the tutorial

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.