Solved

Basics of form creation in Django

Posted on 2014-11-15
1
132 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 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now