Enter search terms or a module, class or function name.
Most of the available commands must be run from the main directory where the file manage.py is located.
This script accepts a command followed by mandatory and optional arguments.
Usage: ./manage.py subcommand [options] [args]
The following options are always available:
Verbosity level; 0=minimal output, 1=normal output, 2=all output
Print traceback on exception. Useful for debugging purpose.
The Python path to a settings module, e.g. “myproject.settings.main”. If this isn’t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.
A directory to add to the Python path, e.g. “/home/djangoprojects/myproject”.
show Django’s version number
show an help message and exit
The command ./manage.py syncdb creates the database tables for all apps in INSTALLED_APPS whose tables haven’t already been created, except those which use migrations.
Usage: ./manage.py syncdb [options]
Makes syncdb work on all apps, even migrated ones. Be careful! This option should only be set to initialize if no tables were created.
The command ./manage.py migrate runs migrations for all apps.
Use this commands after an upgrade of OpenPLM to synchronize the database. Always make a backup of your data (database and files) before running this command!
Usage: ./manage.py migrate [options] [appname] [migrationname|zero] [--all] [--list] [--skip] [--merge] [--no-initial-data] [--fake] [--db-dry-run] [--database=dbalias]
Run the specified migration for all apps.
List migrations noting those that have been applied
Will skip over out-of-order missing migrations
Will run out-of-order missing migrations as they are - no rollbacks.
Skips loading initial data if specified.
Pretends to do the migrations, but doesn’t actually execute them. Only set this option if your database schema is synchronised with OpenPLM source code.
Doesn’t execute the SQL generated by the db methods, and doesn’t store a record that the migration(s) occurred. Useful to test migrations before applying them.
Tells South to delete any ‘ghost’ migrations (ones in the database but not on disk).
Tells South to ignore any ‘ghost’ migrations (ones in the database but not on disk) and continue to apply new migrations.
See also
More documentation on this command is available here.
Note
Do not forget to set change the owner of the index directory to www-data (user who runs celery)
The command ./manage.py rebuild_index completely rebuilds the search index by removing the old data and then updating.
Usage: ./manage.py rebuild_index [options]
Number of hours back to consider objects new.
Number of items to index at once.
Remove objects from the index that are no longer present in the database.
Allows for the use multiple workers to parallelize indexing. Requires multiprocessing.
The command ./manage.py update_index freshens the index for the given app(s).
Usage: ./manage.py update_index [options] <appname appname ...>
Number of hours back to consider objects new.
Number of items to index at once.
Remove objects from the index that are no longer present in the database.
Allows for the use multiple workers to parallelize indexing. Requires multiprocessing.
See also
More documentation on these commands is available here.
The command ./manage.py changepassword changes the password of the given user.
Usage ./manage.py changepassword [options] username
The command ./manage.py createsuperuser creates a new super user (administrator who can manage data through the admin interface).
Usage ./manage.py createsuperuser [options]
The command ./manage.py createcompany creates the company user (special user who owns official and deprecated parts and documents).
Usage ./manage.py createcompany [options]
The command ./manage.py makemessages creates/updates a message file (extensions : .po) in the conf/locale (in the django tree) or locale (for project and application) directory.
Usage ./manage.py makemessages [options]
Verbosity level; 0=minimal output, 1=normal output, 2=all output
The Python path to a settings module, e.g. “myproject.settings.main”. If this isn’t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.
A directory to add to the Python path, e.g. “/home/djangoprojects/myproject”.
Print traceback on exception
Creates or updates the message files only for the given locale (e.g. pt_BR).
Reexamines all source code and templates for new translation strings and updates all message files for all available languages.
The file extension(s) to examine (default: ”.html”, separate multiple extensions with commas, or use -e multiple times)
Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.
See also
More documentation on these commands is available here.
Note
When you create/update message files for the main application use ./manage.py makemessages - -ignore=apps/* [options]
If you want to create/update message files for a given application, first change your current directory to the application directory.
The command ./manage.py compilemessages compiles message files (.po) to .mo files .
Usage ./manage.py compilemessages [options]
Verbosity level; 0=minimal output, 1=normal output, 2=all output
The Python path to a settings module, e.g. “myproject.settings.main”. If this isn’t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.
A directory to add to the Python path, e.g. “/home/djangoprojects/myproject”.
Print traceback on exception
The locale to process. Default is to process all.
See also
More documentation on these commands is available here.
Note
If you want to compile message files for a given application, first change your current directory to the application directory.