django - Exception Type: TemplateDoesNotExist -


  पर्यावरण: अनुरोध विधि: जेगोनो संस्करण प्राप्त करें: 1.5 पायथन संस्करण: 2.7.3 इंस्टॉल किए गए अनुप्रयोग :( 'डीजेंगो Contrib.auth ',' django.contrib.contenttypes ',' django.contrib.sessions ',' django.contrib.sites ',' django.contrib.messages ',' django.contrib.staticfiles ',' allauth ',' Allauth.account ',' allauth.socialaccount ',' allauth.socialaccount.providers.facebook ',' allauth.socialaccount.providers.google ',' allauth.socialaccount.providers.linkedin ',' django.contrib.admin ') खाका लोडर त्रुटि: Django इस क्रम में इन टेम्पलेट लोड करने का प्रयास किया: लोडर django.template.loaders.filesystem.Loader का उपयोग: /var/www/testapp/templates/account/login.html (फ़ाइल मौजूद नहीं है) लोडर का उपयोग कर django.template .loaders.app_directories.Loader: /usr/local/lib/python2.7/dist-packages/django/contrib/auth/templates/account/login.html (फ़ाइल मौजूद नहीं है) / var / www / testapp / allauth / टेम्पलेट्स / अकाउंट / लॉन्जओमा (फ़ाइल मौजूद नहीं है) / var / www / testapp / allaut ज / सोशल अकाउंट / प्रदाता / फेसबुक / टेम्पलेट / अकाउंट / लॉगिन.html (फ़ाइल मौजूद नहीं है) /usr/local/lib/python2.7/dist-packages/django/contrib/admin/templates/account/login.html ( फ़ाइल मौजूद नहीं है) ट्रैसबैक: फ़ाइल "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" get_response 140 में। प्रतिसाद = प्रतिसाद .render () फ़ाइल "/ usr / स्थानीय / lib / python2.7 / dist-packages / django / template / response.py "सौंपनेवाला 105. self.content = self.rendered_content फ़ाइल" /usr/local/lib/python2.7/dist-packages/django/ टेम्पलेट / feedback.py "rendered_content 80. टेम्पलेट = self.resolve_template (self.template_name) फ़ाइल" /usr/local/lib/python2.7/dist-packages/django/template/response.py "resolve_template 56. वापसी Loader.select_template (टेम्पलेट) फ़ाइल "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" में select_template 194. TemplateDoesNotExist बढ़ाएं (','। (Not_found)) अपवाद प्रकार: TemplateDoesNotExist at / accounts / login / exception मान: account / login.html   

कोई भी मेरी मदद कर सकता है ..

अपने फ़ोल्डर के भीतर बनाएं / var / Www / testapp / एक टेम्पलेट नामक एक निर्देशिका है। इस निर्देशिका के भीतर खाता नामक अन्य निर्देशिका बनाएं और फ़िलिला login.html नामक एक फ़ाइल बनाएं।

तो यह पथ मौजूद है: / var / Www / testapp / templates / account / login.html

आप कर चुके हैं अब आप एक {{form}} डाल सकते हैं या कुछ और भी आपका अनुरोध उस टेम्पलेट पर जा रहा है।

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -