created () {
if (process.client) {
window.addEventListener('scroll', this.handleScroll);
}
},
methods: {
handleScroll () {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style scoped> | |
| .section{ | |
| max-height: 98vh; | |
| overflow:auto; | |
| width:100%; | |
| } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .slick-dots li.slick-active button:before { | |
| opacity: 0.75; | |
| color: #00aced; | |
| } | |
| .slick-dots li button:before { | |
| font-family: 'slick'; | |
| font-size: 6px; | |
| line-height: 20px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template > | |
| <div> | |
| <div class="w-full"> | |
| <VueSlickCarousel ref="carousel" v-if="bannerObj.length"> <div v-for="(i, id) in bannerObj" :key="id" > | |
| <img :src="'http://127.0.0.1:8000' + i.image" alt=""> | |
| </div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.db.models.signals import post_save,pre_save | |
| from django.dispatch import receiver | |
| @receiver(pre_save, sender=Product) | |
| def pre_save_user(sender, instance, **kwargs): | |
| if not instance._state.adding: | |
| print ('this is an update') | |
| else: | |
| print ('this is an insert') |
sudo su postgres
psqlupdate pg_database set datistemplate=false where datname='template1';
drop database Template1;
create database template1 with owner=postgres encoding='UTF-8' lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0;
update pg_database set datistemplate=true where datname='template1';r"^(https:\/\/www\.|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$",First have to install mbd in root project
npm i mdb-ui-kitThen, have to import mdb js and cs file in main.js file.
import "mdb-ui-kit/js/mdb.min.js";
import "mdb-ui-kit/css/mdb.min.css"Ok now ready to go........
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3 | |
| ENV PYTHONUNBUFFERED 1 | |
| WORKDIR /app | |
| ADD . /app | |
| COPY ./requirements.txt /app/requirements.txt |