Skip to content

Instantly share code, notes, and snippets.

View Omar-Gonzalez's full-sized avatar
💻
code & chill

Omar González Omar-Gonzalez

💻
code & chill
View GitHub Profile
"""
Django settings for tienda project.
Generated by 'django-admin startproject' using Django 1.11b1.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
'''
Avoid code duplication for functions
1) solve duplcation
2) Avoid mix function main logic porpuse
'''
import time
'''
Decorator function:
@Omar-Gonzalez
Omar-Gonzalez / webpack.config.js
Created November 9, 2018 14:34
react-django-webpack config
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry:[
'./app.jsx'
],
output:{
filename:'../pecsa.bundle.js'
},