Elements tagged with: django

skip over the calendar

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
Page created at
setting user passwords in admin Dec. 9, 2005, 12:56 p.m.
A rather ugly - but still useful - monkeypatch: # monkey-patch for auth.users from django.models.auth import User def user_pre_save(self): if not self.password.startswith('sha1$'): self.set_password(self.password) User._pre_save = user_pre_save Put this into your model file (or somewhere else that ...
Django, Programmierung