Browse Source

Move database setup instructions to usage section

pull/204/head
Clemens Wolff 5 years ago
parent
commit
402f9fe8e5
1 changed files with 14 additions and 33 deletions
  1. 47
      README.md

47
README.md

@ -108,39 +108,6 @@ npm run build
# npm start # for developers # npm start # for developers
``` ```
Next we need to make migration. Run the following command:
```bash
python manage.py migrate
```
Next we need to create a user who can login to the admin site. Run the following command:
```bash
python manage.py createsuperuser
```
Enter your desired username and press enter.
```bash
Username: admin
```
You will then be prompted for your desired email address:
```bash
Email address: admin@example.com
```
The final step is to enter your password. You will be asked to enter your password twice, the second time as a confirmation of the first.
```bash
Password: **********
Password (again): *********
Superuser created successfully.
```
## Usage ## Usage
### Start the development server ### Start the development server
@ -165,6 +132,20 @@ docker exec doccano tools/create-admin.sh "admin" "admin@example.com" "password"
**Option2: Running Django development server** **Option2: Running Django development server**
Before running, we need to make migration. Run the following command:
```bash
python manage.py migrate
```
Next we need to create a user who can login to the admin site. Run the following command:
```bash
python manage.py create_admin --noinput --username "admin" --email "admin@example.com" --password "password"
```
Finally, to start the server, run the following command:
```bash ```bash
python manage.py runserver python manage.py runserver
``` ```

Loading…
Cancel
Save