Comments (10)
Hey guys, I found a solution to this problem. It involves using a different package similar to this one and tweaking the settings.
Step 1:
Disable django-atom
and install 'django-templates
instead
Step 2:
Go to your config.cson file (which you can get to by clicking on the "Atom" tab in the top bar and selecting "Config") and add the lines:
"django-templates":
defaultToDjangoTemplatesForFilePathsContaining: [
"*.html"
]
Put that block at the end of the file and make sure it's one indent in. If in doubt just format it similarly to the other pacakge configurations that are probably already in that file.
from django-atom.
ty very much for the tip ! I actually discovered the "django-templates" package suits me better because of the way you can bind it to choosen projects, as I also need standard html templates simultaneously. You're the man !
from django-atom.
I have the same problem! Has anyone found a solution?
from django-atom.
Up ! I just installed django-atom and it doesn't recognize .html django template as well as specific django syntax in .py files. Anyone has a solution ?
from django-atom.
same Problem
from django-atom.
same problem
from django-atom.
Same issue here. Doesn't seem like the dev is following the issues on github though =(
from django-atom.
I have tried what you are saying but does not work, all of the Django packages appear to have been abandoned which makes me have to go back to using Sublime or VSCode when it comes to Django projects because manually changing the file type each time I open an html template.
from django-atom.
file extension needs to be html.django for this to work otherwise you will need to change the code to work properly. Under code remove the django from snippets and settings to force to work with just html extension, but some shortcuts may collide with html addons
from django-atom.
Step 1:
install'django-templates
This is all I did, then changed the file syntax to "html (Django)" and it worked! Thank you!
from django-atom.
Related Issues (9)
- Doesn't work on HTML templates HOT 2
- "Tab Length" setting from language-html ignored
- Syntax Highlighting and Autocomplete HOT 2
- Don't override python snippets
- Conflit with atom-script when run python script HOT 1
- Unexpected code modification when saving HOT 1
- snippet autocomplete not working HOT 7
- Snippet not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-atom.