old_contents: # -*- coding: utf-8 -*-
  
  # Copyright 2013 django-htmlmin authors. All rights reserved.
  # Use of this source code is governed by a BSD-style
  # license that can be found in the LICENSE file.
  
  '''
  File: pico_django.py
  Description: Code based on snippet available in the link below.
      https://github.com/readevalprint/mini-django/blob/master/pico_django.py
  '''
  
  from django.conf.urls import patterns
  from django.http import HttpResponse
  from htmlmin.decorators import minified_response, not_minified_response
  
  
  CONTENT = '''
  <html>
      <body>
          <p>Hello world! :D</p>
          <div>Copyright 3000</div>
      </body>
  </html>
      '''
  
  
  @minified_response
  def minified(request):
      return HttpResponse(CONTENT)
  
  
  @not_minified_response
  def not_minified(request):
      return HttpResponse(CONTENT)
  
  
  def raw(request):
      return HttpResponse(CONTENT)
  
  urlpatterns = patterns('',
                         (r'^min$', minified),
                         (r'^raw$', raw),
                         (r'^not_min$', not_minified))
  
new_contents: # -*- coding: utf-8 -*-
  
  # Copyright 2013 django-htmlmin authors. All rights reserved.
  # Use of this source code is governed by a BSD-style
  # license that can be found in the LICENSE file.
  
  '''
  File: pico_django.py
  Description: Code based on snippet available in the link below.
      https://github.com/readevalprint/mini-django/blob/master/pico_django.py
  '''
  
  from django.conf.urls import url
  from django.http import HttpResponse
  from htmlmin.decorators import minified_response, not_minified_response
  
  
  CONTENT = '''
  <html>
      <body>
          <p>Hello world! :D</p>
          <div>Copyright 3000</div>
      </body>
  </html>
      '''
  
  
  @minified_response
  def minified(request):
      return HttpResponse(CONTENT)
  
  
  @not_minified_response
  def not_minified(request):
      return HttpResponse(CONTENT)
  
  
  def raw(request):
      return HttpResponse(CONTENT)
  
  
  urlpatterns = [
      url(r'^min$', minified),
      url(r'^raw$', raw),
      url(r'^not_min$', not_minified)
  ]
  
subject: update urlpatterns to django 1.11