A
A
AlexWinner2014-02-06 22:17:25
Django
AlexWinner, 2014-02-06 22:17:25

Is there any way I can make PyCharm suggest/autocomplete model properties in Django templates?

Good afternoon!
Can you please tell me if there is a way to make PyCharm suggest/auto-complete model properties in Django templates?
For example, so that in the following code it complements thing.id and thing.name?

<div>
    <h2>Мои штуки</h2>
    <ul>
        {% for thing in things %}
        <li>
            <a href="{% url 'main.views.thing' id=thing.id %}">
                {{ thing.name }}
            </a>
        </li>
        {% endfor %}
    </ul>
</div>

In PHPStorm, this is easy to do, it is enough to write phpdoc from above. And how to be here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2014-02-06
@OnYourLips

In PHPStorm, this is easy to do, it is enough to write phpdoc from above. And how to be here?
phpdoc in twig (similar to django templates)? There is no such thing ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question