restauth-manage.py

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

Interesting restauth-manage.py commands

Several commands for restauth-manage.py 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 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

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

dbshell

dbshell
Open a database shell to the database you configured in RestAuth/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.py

Next topic

Settings reference

This Page