Solved

Basics of form creation in Django

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python 2.7 - French characters 6 59
python question 5 69
micro services vs rest web services 16 85
Ptyhon Dex.txt how to use this regex for this python script? 40 82
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

910 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

29 Experts available now in Live!

Get 1:1 Help Now