
We would like to share our impressions of the third Moscow meeting of Django-developers, it’s Moscow Django Meetup. Thanks to the organizers from GreenfieldProject and Seven Quark, this time we managed to find an excellent place to meet: one of the spacious
MOD Design halls. Very cozy, close to the center, and most importantly, everyone had enough space and was comfortable. A huge projection screen, clicker for the speaker, delicious coffee during the break, what else is needed for a good meeting.
The program included 5 reports: 3 full 20 minutes each and two shortened 10 each, separated by one coffee break. It is difficult to say how many people came from almost a hundred registered people, 50-60 people, probably, someone did not have time
recover after the holidays. In the photo hall for 10-15 minutes before the start, then the people still pulled up.
Reports
Alexander Emelin from Mail.ru Group has told about
Class-based generic views . For those who still do not use views on the classes, we recommend paying attention to them, sometimes they save a lot of boilerplate-code. For those who actively apply them, a good reference based on the recommendation of Alexander:
Classy CBV is the replacement of the official confusing and inconvenient documentation for types on classes. Delivered discussion CBV vs functional views, when it is appropriate to use one or another option and why.
')
Vladimir Filonov from WebCanFly told about
extensible applications . Using the example of a small part of an online store, we considered various options for implementing an API for connecting plug-ins to django-applications. In detail, a lot of code, but everything is clear and logical built. A good report, we think, when developing complex systems with weak component bonding, everyone will have to face something like this.
Mikhail Yumatov about statics in Django.
The report could be called
django-gears , since it was mainly about this ambitious library, which is being developed by the guys from Trilan. It is designed to replace django-compressor and webassets, has most of their functionality, and also stores dependencies directly in css / js (by analogy with
sprockets ). While the application is not yet in production, but this is no less interesting.
Ivan Virabyan about
performance in Django .
For the most part, it was about ORM. Ivan explained why “db_index = True does not work wonders”, showed how sometimes the SQL generator can be unpredictable, explained how to use “Defer ()”, and also described the main approaches to cache invalidation and optimization of the processor context in Django. The most advanced performance is clearly not for beginners, it’s a pity that by just 10 minutes, this topic is worthy of a long time frame. Be sure to look at the slides, a very useful and most applied report.
Alexander Shlemin about
Django on Android .
The speaker clearly showed that Django is not only about the Web and that it can also be run on mobile devices. Alexander showed us this on the example of a mobile phone based on Android. The report caused, probably, the most violent reaction of the audience with laughter and applause.
For those who want to try their hand and put Django on Android, Alexander advises running the
manage.py runserver
with the key
--noreload
- this will increase the lifetime of your battery :)
Using the power of root access to the phone and several batteries (to Django), we get access to the list of contacts or databases of other applications. A standard Django admin panel will show all this data in an acceptable design.
Interaction with the phone's API occurs through the Python driver, so we can vibrate with the phone, write SMS, receive GPS data and even make calls!
In general, for fans of "extreme" programming!
Conclusion
Thanks again to the organizers, the guys obviously tried to accommodate all the wishes and made the meeting better than the
previous one . And of course, the speakers, not dull speeches and topics were relevant.
There are plans to hold a Django-Sprint or Django-dash, in general, to look together this summer. Activists and others are invited to the
group on Facebook , there is now an active discussion going on.
PS We are waiting for the next mitap in a month. There, one of us will try his hand again behind the microphone at the projector with a report.
SlideShare PresentationsMoscow Django Facebook GroupEvents on the timepadIlya Baryshev
Vitaly OlevinskyFuture colors