Dutch Django meeting: lightning talks

Tags: pun, django

Connecting Django to the Multisafepay payment provider - Jan Murre

They’re sometimes using multisafepay for adding online payment for sites. They’re quite happy with it. It is relatively simple. The payment, like with most such providers, takes place on the payment provider’s website. This is often perceived as trustworthy by customers.

They have an xml api. For that, they had a couple of api implementations. Not in python, though.

So he investigated it and a transaction is a pretty straightforward exchange of urls and xml messages.

He made a python api based on the xml structure and their own provided non-python api examples.

It is not on pypi yet, but Jan Murre might put it there if there’s interest.

Django-fanstatic - Jan-Jaap Driessen / Boaz Leskes

Jan-Jaap never uses Django, Boaz does :-) They got together to integrate fanstatic into the django world.

Jan-jaap presented fanstatic at the last python usergroup meeting. It makes javascript and css resources available in python. You can just import resources in python (import js.jquery). Those resources are included in python packages, which means they can have dependencies! Just specify something like jquery.need() in your view.

Fanstatic handles the injection of the css/javascript into your pages. Including serving the right version of the resources. Including combining them.

Django doesn’t really include wsgi support out of the box. It does everything itself. Don’t do that! Just use wsgi. And use all the existing wsgi goodies. Why use your own gzip compressor when there’s one in wsgi already? Learn from zope/grok and become more open!

Fanstatic uses wsgi middleware to actually inject the js/css into your rendered pages. Django requires apache settings as django itself is too slow to host it. Just let wsgi do it.

django-fanstatic uses four integration hooks:

  • Resources: you can also serve static resources like images with fanstatic. It is really something to serve all your static resources.

  • Template tags

  • Error pages

  • Development server: running django so that wsgi works. There’s wsgi inside django, but it is very well hidden away. They have the basic setup ready for django. It needs django 1.3 as that one makes it possible to hijack the django server.

7 May there’s a hackathon in Rotterdam.

Don’t Panic: PUNIC - Alex de Landgraaf

“A network of Python/Django professionals that have each others backs in case of ‘Bus failures’”.

(OK, I’m just re-reading a book about Roman history and I’ve just ended up at the part about the Punic wars. Well, it isn’t that kind of punic :-) )

When you’re a one-person company, the customer can get a bit squeamish when he thinks about your untimely demise or unplanned departure. What about his site, then?

That’s why the idea about a group of professional companies and developers willing to help each other in times of crises came up. The purpose is to provide a backup when the shit hits the fan. It is an answer to “what if” questions from clients or bosses.

When you join PUNIC, there are some requirements. For example always up-to-date documentation. On client, purpose, context, code, server setup. Some of the content might be confidential, so you have to give it to only one of the other PUNIC members.

If you’re interested: send an email. Directly to Alex; or to the PUN mailinglist.

(Jan Murre mentioned ZEA partners, a formerly zope-based European combination of companies with at least partially the same goal).

Custom Widgets” - Roald de Vries (Go2People)

Django forms are cool, but they’re not easily composable: you cannot take a couple of them and combine them into one form. A common example is to include a foreign key’s form into the form of the items that has the foreign key: doesn’t exist.

Sometimes you can get by with making a custom widget. He demoed an example widget to encourage us to build our own widgets when we need them.

A suggestion from the audience: look at http://code.google.com/p/django-uni-form/

Social media using addthis - Wim Feijen

http://www.addthis.com

It makes sharing easy: adding facebook/twitter/whatever links. There’s also a bit of monitoring so you can see how many people clicked on those links.

An unrelated suggestion: work for a day at another company. Just working on your own stuff, but at a different company’s office. You get to learn things and they get to learn things from you.

Remco Wendt - Djangocon EU Stats

djangocon.eu 2011

There are only a few tickets left!

The keynotes are booked already. And there are quite a lot of interesting talks already. Deadline for talk submission next Friday.

What’s still needed: a mobile app for the conference.

The audio-visual and wifi stuff is arranged already. And we’ve got a professional monitoring it, so it should be good.

The django meeting cat: always there.
 
vanrees.org logo

Reinout van Rees

My name is Reinout van Rees and I program in Python, I live in the Netherlands, I cycle recumbent bikes and I have a model railway.

Weblog feeds

Most of my website content is in my weblog. You can keep up to date by subscribing to the automatic feeds (for instance with Google reader):