restauth-manage man page

restauth-manage — advanced RestAuth management

Synopsis

restauth-manage.py [-h] command [option] ... [args] ...

Description

restauth-manage.py is the Django manage.py script that usually ships with Django projects. Please see:

https://docs.djangoproject.com/en/dev/ref/django-admin/

for more information.

Interesting Restauth-Manage.Py Commands

Several commands for restauth-manage.py are worth noting:

syncdb [--noinput]

The standard syncdb command. This command creates all database tables that don't yet exist in the database you configured in RestAuth/localsettings.py.

NOTE:

If you execute syncdb without the --noinput parameter, you will be asked if you want to create a user. This user is equivalent to service added with restauth-service.py, not a user added with restauth-user.py.

migrate

Used to bring the database schema to the newest state.

dbshell

Open a database shell to the database you configured in RestAuth/localsettings.py. Also see the official documentation.

shell

Open a python shell (using ipython if available) with your settings preconfigured. Also see the official documentation.

Influential Environment Variables

DJANGO_SETTINGS_MODULE
The path to the Django settings module. If not set, RestAuth.settings is used, which should be fine in most cases. For more information, please read the Django documentation.
PYTHONPATH
A semi-colon (';') seperated list of additional directories to search for python modules. The RestAuth installation must be in the module search path for any commands to work. For more information, please read the official python documentation.

See Also

restauth-service(1), restauth-user(1), restauth-group(1), restauth-import(1)

Author

Mathias Ertl

Info

February 05, 2016 0.6.3 RestAuth