PyLucid CMS Logo

serialized fixture database data for install PyLucid

↑ 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:

Bash
1
.../PyLucid_env$ ./manage.sh create_initialdata

↑ command options  #

The help page list all options:

Bash
1
.../PyLucid_env$ ./manage.sh create_initialdata --help
  1. pylucid_project/apps/pylucid_admin/management/commands/create_initialdata.py
  2. pylucid_project/apps/pylucid_admin/fixtures/pylucid.json
0 comments for 'initial data':
    there exist no comment for 'initial data'
Leave a comment

django-processinfo: 5.1 ms of 270.8 ms (1.9%)