prepare

You must create a manage.sh for developing purposes.

info

PyLucid needs some initial database data. We used a serialized fixture files, stored in JSON format.

The file create_initialdata.py [1] is a script to create the django fixtures file "pylucid.json" [2]. It's implement a django managment command.

used apps/models

In create_initialdata.py is a list of all apps/models that would be stored into the fixtures file.
You can get a list of all installed apps/models, for easy change this list:

--list_all_models List all installed models.
--list_apps2 List all apps for creating the fixture files.

create initial data file

Creating a new "pylucid.json" fixtures file is very easy. Just call the command:

1
/var/www/YourSite$ ./manage.py create_initialdata

command options

The help page list all options:

1
/var/www/YourSite$ ./manage.py create_initialdata --help

Links

  1. pylucid_project/apps/pylucid_admin/management/commands/create_initialdata.py
  2. pylucid_project/apps/pylucid_admin/fixtures/pylucid.json