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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.

Reply via email to