View Design Design with Django

I'm relatively new to Django, and I'm developing a website that needs usability in the first place, talking about CSS, HTML5 optimization, and UI stuff.

It is very convenient to use Django for data / model modeling. Just create a couple of Python classes and ./manage.py syncdb- there is your Model. But I am dealing with a significant number of problems related to View. (Different classes of users, different tasks, different design tasks). The official Django tutorial lovingly goes through the "Template".

Is there any design-oriented guide for Django or a set of ready-made and usable templates? I do not want to start from scratch using JS, HTML5, Ajax and all that. From the point of view of the model layer, Django is very fast and provides a working base system. I wonder if there is something similar for Views.

+3
source share
2 answers

, django-blocks (http://code.google.com/p/django-blocks/) ! , , 3rdparty html/css + js/aja , ! , templatetags, html, !

+1

- - Django ?

Django , , . , , 50 . , .

.

  • :

    {% extends base.html %}
    
  • :

    {% for location in locations %}
        {% include "_location_item.html" %}
    {% endfor %}
    

, JS, HTML5, Ajax .

, - .

, . , (, typo3 , , ), , ,

+1

Source: https://habr.com/ru/post/1748721/


All Articles