Login

Tag "Python"

Snippet List

Active Directory Authentication With Groups

This is a authentication backend for Django, to authenticate via Active Directory. This pulls all group information out of Active Directory and allows for multiple group memberships.

  • Django
  • Python
  • Active-Directory
  • Authentication
  • Groups
Read More

Comma Seprated Character Field to store Geographic Coordinates

in models, import GeoCoordinateField: class Place(models.Model): geocoordn = GeoCoordinateField(verbose_name="geocordfield", null=True, blank = True) >>>place = Place.objects.geocoordn #gives you a Geocoordinate object >>>place.geocoordn.latitude, place.geocoordn.longitude #gives latitude and longitude of place

  • Django
  • Python
Read More

2 snippets posted so far.