Thanks Kasper. It was the backslash. Thanks for saving me...
Yingi Kem > On 13 Jan 2018, at 2:52 PM, Kasper Laudrup <[email protected]> wrote: > > Hi Yingi, > >> On 2018-01-13 14:46, yingi keme wrote: >> I tried deploying my app to pythonanywhere hosting service and i am getting >> TemplateDoesNotExist Error >> Everything seems to work out well with my development server. But its not >> working fine when hosting >> Anyhelp please!! >> Here is my View >> def Home(request): >> template = 'Home\First.html' >> return render(request, template) > > Avoid using backslashes ('\') in paths. Use a normal slash ('/') instead. > > Not sure if that solves your problem, but it's a good idea anyway. > > Backslashes are used for escaping characters in Python (and most other > languages). > > Also, if you post the entire error message (not just the exception type) it > would be much easier to help you. > > Kind regards, > > Kasper Laudrup > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/2d02cda2-6678-607a-87c0-d8a862a35ecd%40stacktrace.dk. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/385DF731-B00F-4255-812C-27319239EF33%40gmail.com. For more options, visit https://groups.google.com/d/optout.

