Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Basics of form creation in Django

Posted on 2014-11-15
1
Medium Priority
?
158 Views
Last Modified: 2014-11-23
Hello,

I'm trying to learn Django, and I'm trying to create a basic web form that can create a form based on data from a database and the form should be able to communicate with a Django view... but I'm getting this error:

Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
Using loader django.template.loaders.app_directories.Loader:
/Library/Python/2.7/site-packages/django/contrib/admin/templates/quizzes/quizzes.html (File does not exist)
/Library/Python/2.7/site-packages/django/contrib/auth/templates/quizzes/quizzes.html (File does not exist)

Open in new window


Appreciate any help understanding this error, and any good tutorials that walk me through this step by step.

Thanks in advance!
0
Comment
Question by:Errang Genevre
1 Comment
 
LVL 25

Accepted Solution

by:
clockwatcher earned 2000 total points
ID: 40460189
I'm not a huge Django user but it looks like you're referencing a template called quizzes.html but you haven't specified the location to your templates with the TEMPLATE_DIRS variable setting  https://docs.djangoproject.com/en/dev/topics/settings/.   The filesystem Loader tries to find it but can't (likely because of a missing TEMPLATE_DIRS setting).  The app_directories loader then starts up and it can't find it either.  

As far as tutorials go, the Django documentation is really pretty good.  IMO the documentation is one of the primary reasons it's such a popular framework.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question