Login

All snippets written in Python

Title Author Tags Publication date Rating
Geoip middleware to restrict users to a set of allowed countries pakal middleware ip country geoip restriction blocker June 26, 2019, 7:19 a.m. +0
Django management command to update local Maxmind Geoip databases pakal maxmind management databases geoip python3 June 26, 2019, 7:14 a.m. +0
CBV to mix FormView and DetailView functionalities pakal view form cbv detail June 21, 2019, 6:07 a.m. +0
Strict Boolean Form Field powderflask form_field June 20, 2019, 12:59 p.m. +0
Dry basic-auth middleware using Django's AUTHENTICATION_BACKENDS and "basicauth" lib pakal middleware basic authentication auth http-authorization June 13, 2019, 3:46 a.m. +0
updated django-mptt enabled FilteredSelectMultiple m2m widget, Django 1.11 compatible RobertoMaurizzi widget mptt May 16, 2019, 2:15 a.m. +1
fghjk kazukiyoshiharasan sdf May 8, 2019, 2:54 a.m. +0
StringField: CharField with no max_length for Postgres cdcarter orm postgres charfield May 5, 2019, 10:59 a.m. +0
a shardauni1 a April 30, 2019, 12:12 a.m. -1
Calculating Maintainability Index for a whole project MrtnBckr django command git maintainability April 18, 2019, 8:43 a.m. +1
Django nginx sendfile example sim1234 django media sendfile nginx April 17, 2019, 6:53 a.m. +0
LoginRequiredMiddleware aasmpro middleware authentication login_required April 6, 2019, 8:16 a.m. +0
ChoiceField's choices from model cansarigol django forms choicefield March 28, 2019, 8:46 a.m. +0
spaceless_json dkoldyaev django templatetag json spaceless formatting application/id+json March 4, 2019, 6:53 a.m. +1
Tweet embed template tag z3ke1r django templatetag json embed twitter parse requests tweet Feb. 14, 2019, 2:22 p.m. +0
Adding Object name in Success Message Pr0digal success_message Feb. 5, 2019, 1:02 a.m. +0
Different Response Data/Serializer for DRF Views/Viewsets shivanshs9 django mixin response django-rest-framework drf Dec. 12, 2018, 9:19 a.m. +0
Hand over model instance relations to another instance of the same model karolyi foreignkey many2many relations handover Oct. 12, 2018, 11:13 a.m. +0
create custom permissions agusmakmun django commands Sept. 10, 2018, 10:55 p.m. +0
generic 12factor manage.py for containers jpic manage July 9, 2018, 5:43 p.m. +0

   Next 20 >

2909 snippets posted so far.