Adding widgets to CharField/fields in Django Administrator
Bits
Control ViewSet Method in Django
Model ViewSets packs up the common functions to create, list, patch, put and delete an object in the package, which saves the day in many places but there are situations…
Uploading Image using fetch api and FormData
How to perform a image upload using Javascript Fetch API and FormData
Generate Variables from string in Javascript
Generate variables in JavaScript from strings using eval. It's a function which evaluates a string as though it were an expression.
Associating Many to Many Relation in DJango Rest Framework
Add an entry to a Many to Many field when an object is created using API with Django Rest Framework.
WordPress Requesting FTP Details
WordPress asks for your FTP credentials when it can't access the files directly. This happens when PHP running as the different user (mod_php or CGI) rather than the user that…
Clean multiple fields in DJango form
Django packs a ton of cleaning methods in the box which includes validating against field types, length of inputs, etc. It also lets you add custom validation rules for entier…
Disabled / Read-only field in django ModelForm
Create a disabled or read only field in django model form