Tags » Django

Django, using ANY in a query

Basically i have to do this:

WHERE NOT (`video_video`.`id` = **ANY** (SELECT `userPreferences_history`.`video_id` FROM `userPreferences_history`))

but using:

.exclude(id=history_list)

i just get:

WHERE NOT (`video_video`.`id` = (SELECT `userPreferences_history`.`video_id` FROM `userPreferences_history`))
… 42 more words
Stackoverflow

The full user-authentication lifecycle in Django, with testing at every step — The step-by-step tutorial I wish I had (part three)

In parts one and two of this tutorial, we created the model and the first of our two views: The user’s profile page, which is only viewable to logged-in users. 1,766 more words

Technology

Tell browser when files are updated (per-file cache busting)

This post will explain a simple method to tell the browser to re-download a file when the file has changed.

The problem

A common approach to cache busting when files are updated is to automatically add a “build label” to the url – maybe using… 468 more words

Django

The full user-authentication lifecycle in Django, with testing at every step — The step-by-step tutorial I wish I had (part two)

In the previous post, we created the model for the "trivial website" in our authentication-and-testing tutorial. In this second part, we’ll create the first of our two views: The user’s profile page, which is only viewable to logged-in users. 1,612 more words

Technology

My testing strategy 2 - How to switch to test database for browser behavior testing when Django uses SQLAlchemy.

This blog is a follow up on my previous post here. As I mentioned my testing strategy at KuKy World, we use Lettuce for testing, and for each installed app, we will test for both back-end behavior and web browser behavior. 201 more words

Web Technology

Django, Modelforms and Long Dropdowns

Lets say you want to make a page to create or update a model that has a foreign key to 10k other records. If you are not careful, this can have detrimental consequences. 729 more words

Django

Customizing the Django Authentication for Email

Django Authentication is Awesome as we say but it has some limitations  as well.

I encountered this in one of my projects where I needed the user to Login via Email ID rather than Username. 675 more words

Authentication