|
@@ -11,13 +11,21 @@ The base Django project of a service web application to which other modules are
|
|
|
|
|
|
### Test Users
|
|
### Test Users
|
|
|
|
|
|
-During the installation/upgrade, you can pass the envvar: `TEST_USERS=true` or set
|
|
|
|
-`GENERATE_TEST_USERS = True` in core/settings_vars.py to automatically create test
|
|
|
|
-users. These users will be assigned to the **TEST** group. Additionally, if the `DEBUG`
|
|
|
|
-setting is enabled (`DEBUG=True` in *core/settings_vars.py*), these test
|
|
|
|
-users will be marked as active and can log in. If `DEBUG` is disabled
|
|
|
|
|
|
+During the installation/upgrade, you can pass the `GENERATE_TEST_USERS=1`
|
|
|
|
+is set in the `install.cfg` file to automatically create test users.
|
|
|
|
+These users will be assigned to the **TEST** group. Additionally, if the
|
|
|
|
+`DEBUG` setting is enabled (`DEBUG=True` in *core/settings_vars.py*), these
|
|
|
|
+test users will be marked as active and can log in. If `DEBUG` is disabled
|
|
(`DEBUG=False`), the users will be inactive and unable to log in.
|
|
(`DEBUG=False`), the users will be inactive and unable to log in.
|
|
|
|
|
|
|
|
+#### Alternative gen test user
|
|
|
|
+
|
|
|
|
+Use command:
|
|
|
|
+
|
|
|
|
+```bash
|
|
|
|
+python manage.py init_test_users
|
|
|
|
+```
|
|
|
|
+
|
|
#### Properties
|
|
#### Properties
|
|
|
|
|
|
- **Username:** `test-<group_name>-<ordinal_number_in_group>`.
|
|
- **Username:** `test-<group_name>-<ordinal_number_in_group>`.
|