Wednesday, July 30, 2014

Re: Django 1.7 - What are you most excited about?

Thanks Marc and Russ for your replies, greatly appreciated.

Here are my favorites:

App Loading
  • Applications can run code at startup, before Django does anything else, with the ready() method of their configuration.
  • Apps now don't need a models.py to be a valid app.
  • Applications can be given a verbose_name for the admin.
  • autodiscover() no longer needed, Django calls this automatically.
System check framework
  • ./manage.py check. Many times, validate would pass but the app would crash once started. I've noticed this to be much more robust.
Admin
  • You can now implement site_header, site_title, and index_title attributes on a custom AdminSite in order to easily change the admin site's page title and header text. No more needing to override templates!
  • @register decorator to register a ModelAdmin.
  • ModelAdmin.list_display_links = None to disable links on the change list page grid.
Auth
  • django.contrib.auth.views.password_reset() takes an optional html_email_template_name parameter used to send a multipart HTML email for password resets.
Email
  • send_mail() now accepts an html_message parameter for sending a multipart text/plain and text/html email.
Managers
  • Better Managers by subleasing QuerySet and using query set.as_manager()
Templates
  • The new truncatechars_html filter truncates a string to be no longer than the specified number of characters, taking HTML into account. 
Requests and responses
  • The new JsonResponse subclass 

On Wednesday, July 30, 2014 at 9:41 AM, Ryan Blunden wrote:

Hi Carlos,

I've read all the release notes and already have my short list of what I think the best features are. But this will be heavily skewed towards the types of Django apps I create and how I use Django.

I wanted to know what the Django community thought were the best new features.

Speaking of which, which is your favorite new feature?

On Tuesday, July 29, 2014 at 7:08 PM, carlos wrote:

Hi maybe you need read the release note Django 1.7 about the new features

Cheers :)


On Tue, Jul 29, 2014 at 7:31 PM, Ryan Blunden <ryan.blunden@gmail.com> wrote:
Hi everyone,

I'm giving a lightening talk at the San Francisco Django meetup tomorrow night about some of the awesome new features in Django 1.7.

I wanted to highlight not just what I think are the best new features, but what members of the community are most excited about.

Would be great to hear from the Django core contributors too.

Thanks also Django Devs for getting RC 2 up in time for my talk, brilliant timing there!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/afb4376a-853d-46df-8db3-e37e5740d91b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO1np13wV_vnuWSCmqeA9oaksdD1MnZFnQz7K2qpNP0yyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/C2C73C405262432C95E18EEB21F10221%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment