Posts

Showing posts from June, 2020

How to Add Django Choices Field in Models

SUPPORT_CHOICES=(     ("create","create"),     ("update","update"),     ("resolved", "resolved"),     ("unsolved","unsolved") ) class Support(models.Model):     support_type = models.CharField(max_length=10, choices=SUPPORT_CHOICES, default='create')     def __str__(self):         return self.support_type

How To Intergrate Vuejs To Vuetify - Step By Step Process

install Packages: npm install vuetify npm install sass sass-loader fibers deepmerge -D Index.html:     <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">   <link href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css" rel="stylesheet">   <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet"> Main.js  import Vuetify from 'vuetify' Vue.use(Vuetify); new Vue({     el: '#app',     ...     vuetify : new Vuetify(), ... ... }) vuetify.js : import 'material-design-icons-iconfont/dist/material-design-icons.css' // Ensure you are using css-loader import Vue from 'vue' import Vuetify from 'vuetify' import 'vuetify/dist/vuetify.min.css' import Vuetify from 'vuetify/lib'; import 'vuetify/src/stylus/app.styl'; ...

How to Add Export To Excel/CSV Further For VueJs Table Data

Here I will show how to export table data to excel sheet whit one button click. If we click on the button it will download into local machine, all the Table data. Here we getting data FROM API and showing on table, as well providing to download all the table data to excel formate... STEP_1: npm install --save vue-json-to-csv STEP_2: <template> <div>  <vue-json-to-csv                 :json-data="items"                 :csv-title="'nodesitems'">                 <button type="button" class="btn btn-primary" style="float:right">                       Export To Excel <i class="mdi mdi-export-variant" aria-hidden="true"></i>                 </button>             </vue-json-to-csv> ...

Git Important Commands - Version Control System Important Commands

how to undo last Committed files in git  git reset HEAD ~ How to Chnage HTTP to SSH Change:  https://github.com/WEMP/ repo .git to:  https://*username*@github.com/WEMP/ repo .git You can also do  git remote set-url origin git@github.com:user/repo.git How to remove local untracked files from the current Git branch git clean -f (removed all migrations fiels) git clean -fd (removed all directories)

Django template best links

https://docs.djangoproject.com/en/dev/ref/templates/builtins/#

How to Install Android Studio in Ubuntu OS

Download -  https://developer.android.com/studio Install Prerequisites Android Studio requires few prerequisites before it can be installed. Run the following linux command to fulfill this requirement: $ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 Move to Download File Location $ cd Downloads( android studio Download path) $ ls android-studio-ide-145.3537739-linux.zip Unzip $ unzip -qq android-studio-ide-145.3537739-linux.zip Install Android Studio $ sudo mv android-studio /opt/ $ sudo /opt/android-studio/bin/studio.sh Start Android Studio $ /opt/android-studio/bin/studio.sh