Django News

Seleniumless Django applications: using the test client

submitted by gst
[link] [comment]

I finally completed my first web project using Django/Python.

Ever since the dot com boom I've wanted to create a website. I remember endless sheets of papers with "wonderful" ideas that would allow me to quit my job and enjoy my free time. My problem was that I was never able to take any of these ideas to completion. There was always a new idea in the horizon, or a distraction like work, family, school, etc.

I'm a mechanical engineer by training, so I knew enough programming to be dangerous. I first learned PHP, then with the web 2.0 craze I tried ROR and failed miserably. Finally last year, I thought I would give it another try. This time I did some research, and found Django and Python. I worked through the tutorial and I was sold. Slowly but surly, I started programming, and learning. I bought the "Practical Django Projects" book which was a great resource and just kept at it when I could. It was like building a very complicated lego set, where I would build a section, come back to it, and keep building. Fast forward to a year later, and I have finally launched my first website from scratch. It's just ...

Django deployment 1: Install mod_wsgi on Media Templ

submitted by flexterra
[link] [1 comment]

Django Signals enable Aspect-Oriented programming

submitted by gst
[link] [comment]

Simon Willison: Hookbox

Hookbox (via). For most web projects, I believe implementing any real-time comet features on a separate stack from the rest of the application makes sense—keep using Rails, Django or PHP for the bulk of the application logic, and offload any WebSocket or Comet requests to a separate stack built on top of something like Node.js, Twisted, EventMachine or Jetty. Hookbox is the best example of that philosophy I’ve yet seen—it’s a Comet server that makes WebHook requests back to your regular application stack to check if a user has permission to publish or subscribe to a given channel. “The key insight is that all application development with hookbox happens either in JavaScript or in the native language of the web application itself”.

Use both NTLM and Anonymous authentication with IIS

Point '^accounts/login/$' or whatever your custom login path is to the 'negotiate_ntlm' view.

This allows you to keep anonymous authentication enabled on IIS and easily lock down just the parts of the site you need to (e.g. admin).

Use custom authentication backend with admin

Forces admin site to use your custom login.

Very useful when using RemoteUserBackend.

See here for a use case.

Announcing djangoembed, rich media consuming and providing with Django

submitted by coleifer
[link] [1 comment]

Interactive Profiling Middleware

Based on Extended Profiling Middleware, this version allows interactive sorting of functions and inspection of SQL queries.

What's the best source to start learning django? Any video lessons please?

submitted by heapzero
[link] [9 comments]