Solved

Basics of form creation in Django

Posted on 2014-11-15
1
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

Accepted Solution

by:
clockwatcher earned 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

622 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