百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

django-language-server

> 编程语言
开源

Django 网络框架的语言服务器

197 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Django 网络框架的语言服务器

django-language-server

A language server for the Django web framework.

New to language servers, or unsure whether you need one? Start with Why a language server?

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

Features

  • Completions - Template tag and filter autocompletion with snippets

  • Diagnostics - Real-time error checking and validation

  • Command-line checks - Validate template files and directories with djls check

  • Go to definition - Jump to template, block, and registered Python definitions

    • Template navigation for {% extends %} and {% include %}
    • Template Library, Tag, Filter, and selective-load symbol navigation
    • Exact source highlighting in editors that support definition links
    • Block definitions across template inheritance
    • Variable definitions
  • Find references - See where templates and inherited blocks are used

    • Template references for {% extends %} and {% include %}
    • Block references across template inheritance
    • Variable references
  • Document links - Click through resolved template references and template libraries

    • Template names in {% extends %} and {% include %}
    • Template libraries in {% load %}
  • Folding ranges - Fold Django template regions

  • Hover - View documentation for Django template tags, filters, libraries, and template references

  • Code actions - Quick fixes for unloaded tags or filters and mismatched closing block names

  • Formatting - Opt-in LSP document formatting through djangofmt

  • Rename - Refactor names across files

  • Document symbols - Outline view of template structure

  • Workspace symbols - Search across all project templates

  • Signature help - Parameter hints while typing

Getting Started

Follow the getting started guide to go from nothing to a working setup: install the server, configure your editor, and open a template.

The short version:

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

Then 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

Any other editor with an LSP client works too; see Editor setup. The Installation reference covers Homebrew, pip, standalone binaries, and source builds. The djls CLI can check templates without an editor.

Documentation

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

Contributing

See the contributor guide for development setup, testing, snapshots, and code-quality workflows.

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言