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

The Archive Base Latest Questions

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

UPDATE: See self-answer. I failed to restart apache when i made the changes. When

  • 0

UPDATE: See self-answer. I failed to restart apache when i made the changes.

When I try to run my django app in a production server, I’m getting the following error with regards to finding the template. I believe it’s something to do with the location of where the template is stored; I’ve changed the directory in my settings file but I’m thinking I might have missed another place.

I’m trying to find where I have “C:/django/booking/reserve” referenced since this is the path given but I can’t seem to figure out where. Any advice?

Exception Type: TemplateDoesNotExist
Exception Value:    reserve/templates/index.html
Exception Location: /home/sharataka/webapps/django/lib/python2.7/django/template/loader.py in find_template, line 138
Python Path:    ['/home/sharataka/webapps/django',
 '/home/sharataka/webapps/django/booking',
 '/home/sharataka/webapps/django/reserve',
 '/home/sharataka/webapps/django/lib/python2.7',
 '/home/sharataka/lib/python2.7/South-0.7.5-py2.7.egg',
 '/home/sharataka/lib/python2.7/pip-1.1-py2.7.egg',
 '/home/sharataka/lib/python2.7/django_debug_toolbar-0.9.4-py2.7.egg',
 '/home/sharataka/lib/python2.7',
 '/usr/local/lib/python27.zip',
 '/usr/local/lib/python2.7',
 '/usr/local/lib/python2.7/plat-linux2',
 '/usr/local/lib/python2.7/lib-tk',
 '/usr/local/lib/python2.7/lib-old',
 '/usr/local/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/site-packages',
 '/usr/local/lib/python2.7/site-packages/PIL']

Django tried loading these templates, in this order:
•   Using loader django.template.loaders.filesystem.Loader:
o   /home/sharataka/C:/django/booking/reserve/templates/index.html (File does not exist

settings.py

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
#     'django.template.loaders.eggs.Loader',
)


STATIC_ROOT = '/webapps/django/'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    "/webapps/django",
)
  • 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-10T04:35:52+00:00Added an answer on June 10, 2026 at 4:35 am

    I failed to restart apache when i made the changes… I’m a django rookie 🙂

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

Sidebar

Related Questions

OK, I thought I would try one last update and see if it gets
UPDATE: See my answer to this question first. This appears to be a bug.
UPDATE see below I am not sure how to populate a list or vector
Update: See the bottom of this question for a C# workaround. Hi there, Consider
(Please see update at bottom) I've looked at dozens of questions and haven't been
Update: OK I see it's a bubble sort, but is it less efficient because
Update Solution Found See Bottom of post if interested Seems simple enough and for
see the update at the end of the intail posting well i am a
Update: After some more reading I see that this problem is totally general, you
UPDATE (spoiler): This question is answered (see David Carlisle answere below) and it looks

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.