Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
REST API initial documentation and base classes
- Loading branch information
Showing
27 changed files
with
1,190 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,20 @@ | ||
| #!/bin/bash | ||
|
|
||
| cd `dirname "$0"` | ||
| pushd `dirname "$0"` | ||
|
|
||
| if [ -d migrations ] | ||
| then | ||
| echo "Platform 'migrations' dir already exists (`pwd`/migrations)" | ||
| echo "If resetting the DB fails, migrations for pulp apps (including platform)" | ||
| echo "may need to be removed for the DB reset to succeed." | ||
| echo "" | ||
| echo "Continuing in 3 seconds." | ||
| sleep 3 | ||
| # weird indentation here because the heredoc EOF terminator can't be indented | ||
| cat <<EOF | ||
| Platform 'migrations' dir already exists (`pwd`/migrations) | ||
| If resetting the DB fails, migrations for pulp apps (including platform) | ||
| may need to be removed for the DB reset to succeed. | ||
| EOF | ||
| sleep 1 | ||
|
|
||
| fi | ||
|
|
||
| python manage.py reset_db --noinput | ||
| python manage.py makemigrations pulp --noinput | ||
| python manage.py migrate --noinput | ||
| popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.