Coder Social home page Coder Social logo

Comments (10)

lymanjohnson avatar lymanjohnson commented on July 29, 2024 4

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.

antnbr avatar antnbr commented on July 29, 2024 1

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.

diegolego avatar diegolego commented on July 29, 2024

I have the same problem! Has anyone found a solution?

from django-atom.

antnbr avatar antnbr commented on July 29, 2024

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.

musclemike avatar musclemike commented on July 29, 2024

same Problem

from django-atom.

sn-hebbar99 avatar sn-hebbar99 commented on July 29, 2024

same problem

from django-atom.

erichamers avatar erichamers commented on July 29, 2024

Same issue here. Doesn't seem like the dev is following the issues on github though =(

from django-atom.

amc123-glitch avatar amc123-glitch commented on July 29, 2024

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.

mclintockmark avatar mclintockmark commented on July 29, 2024

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.

snachman avatar snachman commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.