mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-21 13:19:16 +01:00
No description
|
|
||
|---|---|---|
| EditorialModel | ||
| leobject | ||
| Lodel | ||
| .gitignore | ||
| Doxyfile | ||
| lint | ||
| makemigrations_interactive_rename.patch | ||
| README.md | ||
| requirements.txt | ||
| runtest | ||
First test installation :
- use python 3.4
** install dependencies pip install -r requirements.txt
** create local config in Lodel/settings/locale.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'lodel2', 'USER': 'lodel', 'PASSWORD': 'lodel', 'HOST': 'localhost', } }
** create DATABASES mysql
CREATE DATABASE
lodel2CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL ONlodel2.* TO "lodel"@"localhost";
** Apply patch(es) for django …
- makemigrations_interactive_rename.patch => fix makemigrations interactive parameter cd path/to/django/ patch -p2 < /path/to/lodel2/makemigrations_interactive_rename.patch
** create tables for django
if not clean : mysql
DROP DATABASE
lodel2; recreate database rm -rf LodelTestInstance/migrations/
./manage.py makemigrations --empty LodelTestInstance ./manage.py migrate