Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Internet > HTTP (WWW)

    django-awesome-templates 1.0

    Download button

    No screenshots available
    Downloads: 364  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jonas Obrist | More programs
    Other/Proprietary Li... / FREE
    April 3rd, 2011, 18:59 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-awesome-templates description

    Awesome templates for Django, to do web programming the right way

    django-awesome-templates is a Django app that contains awesome templates for Django, to do web programming the right way.

    Finally a sane way to use templates in Django, no need for silly views or templatetags, code your logic where it belongs: In the templates.

    For example, the index view from the Django tutorial done the right way:

    {% load awesome_templates %}

    {% awesome %}
    from polls.models import Poll
    latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
    context['latest_poll_list'] = latest_poll_list
    {% endawesome %}

    {% if latest_poll_list %}
     < ul >
     {% for poll in latest_poll_list %}
     < li >< a href="/polls/{{ poll.id }}/" >{{ poll.question }}< /a >< /li >
     {% endfor %}
     < /ul >
    {% else %}
     < p >No polls are available.< /p >
    {% endif %}


    Now we can have a way easier view:

    from django.shortcuts import render_to_response

    def index(request):
     return render_to_response('polls/index.html')


    Because we don't have to import the models in our view and don't have to instantiate a dictionary for the context, this approach is also a lot faster. And of course it's fully webscale and enterprise ready!

    Because this app is so awesome, it does not even require proper documentation or tests.

    Enjoy finally being able to use Django the way you should be able to use it!


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Django templates | awesome templates | Django | awesome | templates



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM