General Methods - Django Rest Framework utility

General Methods – Django Rest Framework utility

General Methods – An utility for Django Rest Framework, contains many utility functions that ease the development and improve the speed of development process. PIPY: https://pypi.org/project/general-methods/ GITHUB: https://pypi.org/project/general-methods/ Installation Install or add general-methods. Utils functions Import utils. Get Headers To get headers (Dictionary type) from request. Get Client IP Address Read more…

Django Form Rendering with Crispy Forms

Django Form Rendering with Crispy Forms

Using django-cryspy-forms we can build, customize and reuse forms using one of the following CSS frameworks. Uni-form, Bootstrap or Foundation. django-cryspy-forms provides full control without writing custom form templates. PIP Installation: Once installed add crispy_forms to your INSTALLED_APPS in settings.py You can set your default template pack for your project using the CRISPY_TEMPLATE_PACK Django settings variable. Read more…