
Django DRF – Create multiple Token per user
In this post I will show you how to create multiple token for users connecting to your django backend. Django Rest Framework (DRF) Token authentication uses a simple token-based HTTP […]
In this post I will show you how to create multiple token for users connecting to your django backend. Django Rest Framework (DRF) Token authentication uses a simple token-based HTTP […]
Sometimes you do not want to depend on a CDN to deliver your web application dependencies. Locally storing your application dependencies ensures that required dependencies are always available whether or […]
Angular 4 provides an easy and straight forward way of interacting with file system. Here is an example of how you can fire an event, whenever a file is selected […]
Simple example on how to open a url directly from your Ionic2/Cordova application using Ionic Native InAppBrowser plugin. 1. Enter below code in your component: 2. Add ‘InAppBrowser’ as a […]
To uninstall an appache module run these commands from your terminal: if the module was previously enabled, remove the .conf and .load files from ‘/etc/apache2/mod-available/’. e.g Then restart apache:
If gmaps.js is failing to load google map in your application and you are getting any of below errors: Uncaught TypeError: Cannot read property ‘prototype’ of undefined gmaps.js TypeError: undefined […]
Django does not serve static contents, such as CSS, by itself. it delegates the task to the webserver. This sometimes creates problems for developers when trying to deploy their Django […]
To create a unique email field in your Django User model, so that only one user can be associated with an email address, add below to your model:
By default, when objects containing file fields such as FileField or ImageField are deleted, Django does not delete the attached files, leaving you with a lot of orphaned files on […]
This is for situations you want to display only a filename without the entire path in your template. This solution is portable, allowing you to apply it to several apps […]
Copyright © 2021 | WordPress Theme by MH Themes