django data migrations
$ python manage.py makemigrations
$ python manage.py migrate
Just think about micro things
$ python manage.py makemigrations
$ python manage.py migrate
Rescan file and solve the problem
./occ -vvv files:scan
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
OS: Ubuntu 18.04 with xfce4 GUI
```shell
sudo apt update
sudo apt install build-essential
sudo apt update
sudo apt install xrdp xfce4 xfce4-terminal tango-icon-theme
Run the following command:
sudo apt install `check-language-support -l zh_CN`
I wanted to change mysql data folder to /home/mysqldata. I have an error “ [Warning] Can’t create test file /home/mysql/beta.lower-test”.
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));