benjohnson / atom-django-templates

Atom support for Django templates.
23 stars 10 forks source link

django-templates not working #38

Open pnitin10 opened 5 years ago

pnitin10 commented 5 years ago

I installed django-templates in my atom , but after installing , it is not working. I tried many times but still it doesn't effect. Please tell me what should i do to fix the issue.

I-Abdullah-I commented 4 years ago

It said something about adding part of the path to this: image didn't work out for me tho, but thought it might help

jcquarto commented 4 years ago

I changed it to 'templates' and it kicked in for all .html files in any 'templates' folder (which is good enough that it picks it up for me for django projects (versus Rails projects)

However , I still can't get HTML tag autocompletions to work. The django-templates atom package refers to Emmet, but after installing the atom package for Emmet, it doesn't ever seem to create a emmet.cson file anywhere. I'm kinda just living with having to autocomplete my html tags for now

ateeq26 commented 4 years ago

I installed django-templates in my atom , but after installing , it is not working. I tried many times but still it doesn't effect. Please tell me what should i do to fix the issue.

In the Settings of django-templates, add "templates/" in the Default to Django Templates For File Paths Containing

It worked for me.

ateeq26 commented 4 years ago

It said something about adding part of the path to this: image didn't work out for me tho, but thought it might help

Add a forward slash(/) after whatever directory you are providing

sheikgit commented 2 years ago

Still not working... I added "templates" and "templates/" to the setting (I have all templates like "/path/to/templates/some_templaate.html"), bit all it does is to completely lose all sintax highlighting (templates AND html) so all the text just looks grey. No snippet not autocompletion is working....

sheikgit commented 2 years ago

Good news!!! Made it work!!! Just added boh forwardslashes. My template folder name is "templates" si in the settings I set the value to "/templates/". Leaving only the "templates" value or the "templates/" value didn't work