The easiest way I have found to install PostgreSQL on Mac OSX is by using Postgres.app.
- Move the downloaded file to ~/Applications
- Double click
The easiest way I have found to install PostgreSQL on Mac OSX is by using Postgres.app.
| SECRET_KEY=13dfdasfaw3rarfdafjpj*(*&YO&D&FAFAHUH | |
| DEBUG=true | |
| ALLOWED_HOSTS=localhost 0.0.0.0 127.0.0.1 | |
| DATABASE_URL=postgres://user:password@localhost:5432/database |
| export PIP_REQUIRE_VIRTUALENV=true | |
| gpip(){ | |
| PIP_REQUIRE_VIRTUALENV="" pip "$@" | |
| } | |
| test -f /usr/local/bin/virtualenvwrapper.sh && source /usr/local/bin/virtualenvwrapper.sh | |
| if which pyenv > /dev/null ; then eval "$(pyenv init -)"; fi |
| var testsContext = require.context(".", true, /_test$/); | |
| testsContext.keys().forEach(testsContext); |
| import expect from 'expect'; | |
| describe('Something abstract', () => { | |
| it('works', () => { | |
| expect(1).toEqual(1); | |
| }); | |
| }); |
A Virtual Environment is a tool to keep the dependencies required by different projects in separate places, by creating virtual Python environments for them. It solves the “Project X depends on version 1.x but, Project Y needs 4.x” dilemma, and keeps your global site-packages directory clean and manageable.
For example, you can work on a project which requires Django 1.3 while also maintaining a project which requires Django 1.0.
I highly recommend using virtualenvwrapper, it makes your life so much easier!
| // Karma configuration | |
| var webpackConfig = require('./webpack.local.config.js'); | |
| webpackConfig.entry = {}; | |
| module.exports = function(config) { | |
| config.set({ | |
| // base path that will be used to resolve all patterns (eg. files, exclude) | |
| basePath: '', |
| var webpack = require('webpack') | |
| var WebpackDevServer = require('webpack-dev-server') | |
| var config = require('./webpack.local.config') | |
| new WebpackDevServer(webpack(config), { | |
| publicPath: config.output.publicPath, | |
| hot: true, | |
| inline: true, | |
| historyApiFallback: true | |
| }).listen(3000, '0.0.0.0', function (err, result) { |
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| var BundleTracker = require('webpack-bundle-tracker') | |
| module.exports = { | |
| context: __dirname, | |
| devtool: null, | |
| entry: '../static/js/index', | |
| output: {}, | |
| plugins: [], |
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true | |
| # Python settings |