Tags » Django

How to unit test Django's Function Based Views

Let’s assume than the URL pattern to your Function Based View is defined like that:
urls.py

urlpatterns = patterns(
    ...,
    url(r'^$', views.index, name='index'),
    ...
)
… 98 more words
Testing

Jamie Foxx To Play Mike Tyson In Biopic

Mike Tyson has stated that Jamie Foxx (Django Unchained, Ray) will play him in a biopic.

Foxx is no stranger to biopics, he won an academy award in 2005 for his portrayal of Ray Charles in the biopic ‘Ray’. 95 more words

Python and QRCodes

Recently, I wanted to generate QR codes for a Django project I’ve been working on for a while.  As I always say, in Django, there’s a plugin for almost everything.   364 more words

Django

[Django] render view codeing style MTV

render view using view.py in django is easy cute. on your app create view.py file then define variable from request urls.py file.
in this example : 88 more words

Django

16 Custom CSRF

Tạo thư mục blog/custom tạo file blog/custom/__init__.py, tạo thư mục blog/custom/csrf  tạo file blog/custom/csrf /__init__.py  tạo file blog/custom/csrf /views.py  

from django.shortcuts import render_to_response

def csrf_rejected(request, reason=””): 89 more words

Django

Quentin Tarantino Has An Idea For A Sci-Fi Movie

More late news out of the Comic Con panel with Quentin Tarantino talking about something other than what was the purpose of his panel. He was supposed to be talking about his upcoming Django/Zorro comic book crossover but he ended up confirming the start of filming  236 more words

Grog's Posts

Fabric – A Handy Library to Automate Local & Remote Tasks

With an increasing number of Django projects in active deployment, the many repetitive steps of carrying code-changes to their online-destinations became more and more tedious, so eventually the time has come to take a closer look on ways to help during this process. 440 more words

Python