restauth-manage

restauth-manage is the Django manage.py script that usually ships with Django projects. Please see the official Django documentation for more information.

Name of restauth-manage

If you installed from source or with pip, the script is installed as restauth-manage.py. If you installed RestAuth via your distributions package management system, the script is usually called restauth-manage.

Interesting restauth-manage commands

Several commands for restauth-manage are worth noting:

syncdb

syncdb [--noinput]

The standard syncdb command. This command creates all database tables that don’t yet exist in the database you configured in 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, not a user added with restauth-user.

migrate

migrate
Used to bring the database schema to the newest state.

dbshell

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

shell

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.

Table Of Contents

Previous topic

restauth-group

Next topic

Settings reference

This Page