суббота, 20 февраля 2016 г.

Study npm

Change npm global prefix
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH
Install package locally (to node_modules/). Add -g to install globally.
npm install package
Update local packages
npm update
List outdated packages
npm outdated

вторник, 16 февраля 2016 г.

Configure Django application

Configure application
  • To configure an application, subclass django.apps.AppConfig and put the dotted path to that subclass in INSTALLED_APPS.
  • When INSTALLED_APPS simply contains the dotted path to an application module, Django checks for a default_app_config variable in that module.
  • If it’s defined, it’s the dotted path to the AppConfig subclass for that application.
  • If there is no default_app_config, Django uses the base AppConfig class.