20 lines
343 B
Plaintext
20 lines
343 B
Plaintext
|
Setup:
|
||
|
|
||
|
$ virtualenv --system-site-packages .
|
||
|
$ . bin/activate
|
||
|
$ pip install -r requirements.txt
|
||
|
$ mysql -u root
|
||
|
mysql> create database ifa;
|
||
|
mysql> quit;
|
||
|
$ python manage.py syncdb
|
||
|
|
||
|
Import data:
|
||
|
|
||
|
$ python manage.py shell
|
||
|
>>> from ifa.films import imports
|
||
|
>>> imports.do(path="/path/to/FILMS.txt")
|
||
|
|
||
|
Run dev server:
|
||
|
|
||
|
$ python manage.py runserver
|