Yann Weber 06bd3b141d Model construct enhancement with backend and MH inheritance | 9 gadus atpakaļ | |
---|---|---|
Database | 9 gadus atpakaļ | |
EditorialModel | 9 gadus atpakaļ | |
Lodel | 9 gadus atpakaļ | |
LodelTestInstance | 9 gadus atpakaļ | |
.gitignore | 9 gadus atpakaļ | |
Doxyfile | 9 gadus atpakaļ | |
README.md | 9 gadus atpakaļ | |
lint | 9 gadus atpakaļ | |
makemigrations_interactive_rename.patch | 9 gadus atpakaļ | |
manage.py | 9 gadus atpakaļ | |
requirements.txt | 9 gadus atpakaļ | |
runtest | 9 gadus atpakaļ |
First test installation :
** 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
lodel2
CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL ONlodel2
.* TO “lodel”@“localhost”;
** Apply patch(es) for django …
** 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