Skip to main content

A language server for the Django web framework

Project description

django-language-server

PyPI PyPI - Python Version Django Version

A language server for the Django web framework.

[!CAUTION] This project is in early stages. All Most features are incomplete and missing.

Features

  • Completions - Template tag autocompletion with snippets Completions

  • Diagnostics - Real-time error checking and validation Diagnostics

  • Go to definition - Jump to template, block, or variable definitions

  • Find references - See where templates and blocks are used

  • Hover - View documentation and type info on hover

  • Rename - Refactor names across files

  • Formatting - Auto-format templates

  • Code actions - Quick fixes and refactorings

  • Document symbols - Outline view of template structure

  • Workspace symbols - Search across all project templates

  • Signature help - Parameter hints while typing

Getting Started

Set up your editor's LSP client to run the server:

  • VS Code - Install the extension from the marketplace
  • Neovim - Configure with vim.lsp.config()
  • Sublime Text - Set up with LSP package
  • Zed - Install the extension

See all client configurations.

Most editors can use uvx --from django-language-server djls serve to run the server on-demand without installing it. Alternatively, install it globally first:

uv tool install django-language-server
# or: pipx install django-language-server

See the Installation guide for more options including pip, standalone binaries, and building from source.

Once configured, open any Django template file in your project to get:

  • Template tag completions with snippets
  • Real-time syntax validation and diagnostics
  • Navigation to template definitions and references

Documentation

Visit djls.joshthomas.dev for full documentation including installation guides, configuration options, and editor setup instructions.

License

django-language-server is licensed under the Apache License, Version 2.0. See the LICENSE file for more information.


django-language-server is not associated with the Django Software Foundation.

Django is a registered trademark of the Django Software Foundation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_language_server-6.0.2.tar.gz (309.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

django_language_server-6.0.2-py3-none-win_amd64.whl (4.9 MB view details)

Uploaded Python 3Windows x86-64

django_language_server-6.0.2-py3-none-musllinux_1_2_x86_64.whl (5.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

django_language_server-6.0.2-py3-none-musllinux_1_2_aarch64.whl (4.7 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

django_language_server-6.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

django_language_server-6.0.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

django_language_server-6.0.2-py3-none-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

django_language_server-6.0.2-py3-none-macosx_10_12_x86_64.whl (4.8 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file django_language_server-6.0.2.tar.gz.

File metadata

File hashes

Hashes for django_language_server-6.0.2.tar.gz
Algorithm Hash digest
SHA256 fba1ce79bd7d5f945eb8d89fc0acecf4675fb2e6b7754005680781fc32beef7f
MD5 432c719d3b7a1210e377756757d3793a
BLAKE2b-256 31ee97c729bd23e3b4cf94dd87aebbc9f0eb7dde53850ce1b26a4220d16e3060

See more details on using hashes here.

File details

Details for the file django_language_server-6.0.2-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for django_language_server-6.0.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6c4722f90a0f25dc9a97b86507480e3ceeac9027b4a7bce12f88438028623bb5
MD5 c16edd34b5abb10e30c8330c1a6184a6
BLAKE2b-256 440e68b2f8e28473db5abde9a9baa33c0398aa61c5186ee275f5d991e7ab6db9

See more details on using hashes here.

File details

Details for the file django_language_server-6.0.2-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for django_language_server-6.0.2-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b08907d7d73cfaaef15783c34b139ae176354c3fc1a15c631f4314fb97f87871
MD5 316b05d428b5bc37c37695ee5927e1d3
BLAKE2b-256 87c912f34d3a527660a6080237ccfe72bc9b03c60551f386a7f1d11290ff7925

See more details on using hashes here.

File details

Details for the file django_language_server-6.0.2-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for django_language_server-6.0.2-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 20013bc370d8757ea00d902e670cbec277a6cc31ec901464350ba4a881f50538
MD5 a184dbc4f95072c731d664f3b773acf8
BLAKE2b-256 efcafe9d1e459c45443346e24c3f7dc0747c6dd602532dca43903dcf5dfd0393

See more details on using hashes here.

File details

Details for the file django_language_server-6.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for django_language_server-6.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a38568dbb65a7ecc180738446dfa8739a36ff724ecfe366f1b42917e70513916
MD5 bd8f519838ddf8c2177657aa9fd45cac
BLAKE2b-256 b9a7e01381fee596d3df3d4c2383baa18da946942f49137bdecad54ec43c76e3

See more details on using hashes here.

File details

Details for the file django_language_server-6.0.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for django_language_server-6.0.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8372781c88170c56f06b96bfa55706ee8f4c045c01aa23f0c2ba6faff578d891
MD5 42d57805f3db9fcae47dc28d09ddfaa9
BLAKE2b-256 c966372e5799537e1feb1e885d7fca79ad9c18435c8bfa7118a52efd9938c343

See more details on using hashes here.

File details

Details for the file django_language_server-6.0.2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for django_language_server-6.0.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1e56e69c880e6064b6d2b3b70e62c9306aa8f8e0cb4d839028f3f2c99d3de07
MD5 8aa25ee823e8710a742851363f72191e
BLAKE2b-256 51a543b839ccfd042ab98b7cc8d2238cf8d1b8ef7b00629c4dc3e89092bdb60d

See more details on using hashes here.

File details

Details for the file django_language_server-6.0.2-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for django_language_server-6.0.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fae8fe49a7d2056881e1d248bc7ef5f80883c78761582249adca9d262ae23c99
MD5 896006a758609a76ecd8d2ff21a1994e
BLAKE2b-256 81dd2ee79e32a434db77903cf1429f9754827dcc10ee70d536a1880b5a6c49f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page