mysql_config missed

Error:

Collecting mysqlclient==1.3.9 (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/db/f5/c8e1657985c31dda16e434edf5257c31572fa5faacd7e48b1618390e4b18/mysqlclient-
1.3.9.tar.gz
    Complete output from command python setup.py egg_info:
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-eis8fsc3/mysqlclient/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "/tmp/pip-build-eis8fsc3/mysqlclient/setup_posix.py", line 44, in get_config
        libs = mysql_config("libs_r")
      File "/tmp/pip-build-eis8fsc3/mysqlclient/setup_posix.py", line 26, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    OSError: mysql_config not found
Read More

Datepicker in Drupal 7

  • Add code in php.tpl.
    drupal_add_library('system', 'ui.datepicker');
    drupal_add_js("(function ($) { $('.datepicker').datepicker();  $('.datepicker').datepicker('option', 'dateFormat', 'M d, yy'); })(jQuery);", array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
    
Read More