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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:48:20+00:00 2026-06-17T21:48:20+00:00

The code for my web app is currently on dropbox and I simply change

  • 0

The code for my web app is currently on dropbox and I simply change the TEMLPLATE_DIRS variables in the settings.py module when working on my work and home computers.

I have run into an issue this evening when firing up the app. I am getting a TemplateDoesNotExist error, here are the details:

Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
/Users/me/Dropbox/app/MyApp/Users/me/Dropbox/app/MyApp/templates/App/Page 1/pageone.html (File does not exist)

Basically the first /Users/me/Dropbox/app/MyApp shouldn’t be there.

settings.py

TEMPLATE_DIRS = (
    "Users/danielholmes/Dropbox/app/MyApp/templates/",
)

This is going to be something stupid i think – please let me know if more info is required.

Many thanks

  • 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-17T21:48:21+00:00Added an answer on June 17, 2026 at 9:48 pm

    Never hardocde the directory paths in settings files. Let Python generate the absolute path names for you. This makes your project portable across different environments. Below is a good approach to define paths (and may be solve your issue also):

    import os, sys
    
    abspath = lambda *p: os.path.abspath(os.path.join(*p))
    
    PROJECT_ROOT = abspath(os.path.dirname(__file__))
    sys.path.insert(0, PROJECT_ROOT)
    
    TEMPLATE_DIRS = (
        abspath(PROJECT_ROOT, 'templates'),
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

currently I have this client code in my PHP MVC web app: try {
So I'm currently working on a web app that I'm just going to use
I am working on a web app, hosting the source code on Github and
I am currently working on a web app for social networking site but it
i'm currently working in a web app and i'm using django-jquery, and when i
I currently work on a web app using Java EE/EclipseLink and postgreSQL. About my
I am currently working on a web app which requires a standard desktop application
I'm working on building a small web app connecting into the instagram API. Currently
I'm currently working on a Perl web app LAMP style and recently stumbled upon
Currently working on an ASP.NET web app and am starting to realise i'm writing

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.