Solved

Basics of form creation in Django

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…

776 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