Template not found
Hi I have added a app to askbot the way I have done is I have created my app inside askbot folder: So the structure looks like follows:
askbot
|__Templates
|__Views
|__ Utils
|__ upfiles
|__ ...
|__ experiments
|__ __init__.py
|__...
|__templates
|__experiments
|__ *.html
|__Include
|_experiment_enrollment.html
but the problem is I am getting template not found: The error is bit confusing to understand:
My exact error is as follows:
TemplateNotFound at /questions/
askbot/experiments/templates/experiments/include/experiment_enrollment.html
Request Method: GET
Request URL: http://localhost:8001/questions/
Django Version: 1.4.10
Exception Type: TemplateNotFound
Exception Value:
askbot/experiments/templates/experiments/include/experiment_enrollment.html
Exception Location: /Users/mac/code/vEnv/myanswers/askbot/templates/base.html in top-level template code, line 3
Python Executable: /Users/mac/code/vEnv/myanswers/bin/python
Python Version: 2.7.5
Python Path:
What might i be doing wrong here..?
Comments
How are you rendering the template in the views?
for an example `def experiment_details(request, experiment_name, template_name="experiments/experiment_details.html"):`
Try the `TEMPLATE_DIRS` setting to add the directory.
by default its commented so should I uncomment and add the dir of the new project to that..?
Look into the Django documentation for that info.