Changeset wblankonin,7 in infrastruktur


Ignore:
Timestamp:
09/14/2010 03:01:47 PM (7 years ago)
Author:
Fajran Iman Rusadi <fajran@…>
branch-nick:
wblankonin
revision id:
fajran@gmail.com-20100914080147-j13stpk0oc7ctc1l
Message:

Pakai HttpResponsePermanentRedirect? untuk melempar pengunjuk ke alamat
yang sebenarnya.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wblankonin/wblankonin/views.py

    r3 r7  
    11from django.shortcuts import render_to_response 
    2 from django.http import HttpResponseRedirect 
     2from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect 
    33from ittybitty.utils import * 
    44from ittybitty.models import * 
     
    4444    except Exception as e: 
    4545        return HttpResponseRedirect("/") 
    46     return HttpResponseRedirect(ittybitty.url) 
     46    return HttpResponsePermanentRedirect(ittybitty.url) 
Note: See TracChangeset for help on using the changeset viewer.