Ebbene si ... sono ufficialmente un cittadino belga.. incluso di targa :)
sabato 11 dicembre 2010
giovedì 25 novembre 2010
giovedì 3 giugno 2010
Giusto per indicizzare
non riesco a capire perchè non mi indicizzano il sito!! Quindi proverò a buttarlo pure qui e vedere che succede :).
Scusate!!
http://florence.heroku.com/
Scusate!!
http://florence.heroku.com/
sabato 27 febbraio 2010
Django fast user change
Always the same problem, login with a user that you don't know the password.
The solution is quite simple on django you just need your session key and access to the shell.
The solution is quite simple on django you just need your session key and access to the shell.
def change_user(session_key, username):
from django.core.cache import cache
from django.contrib.auth.models import User
if cache.get(session_key):
session = cache.get(session_key)
session['_auth_user_id'] = User.objects.get(username=username).id
cache.set(session_key, session)
change_user("0a1a1ee4ed69a91fa40bac0ccfb302ae", 'Username')
lunedì 22 febbraio 2010
Vivere in belgio
Iscriviti a:
Post (Atom)

