Skip to content

Commit

Permalink
Added dafault admin user for local deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSuperDev committed May 9, 2022
1 parent d454689 commit b5d6ace
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
"titleBar.inactiveBackground": "#c4860199",
"titleBar.inactiveForeground": "#15202b99",
"editor.background": "#111116",
"terminal.background": "#06060a"
"terminal.background": "#06060a",
"editorGroup.border": "#f7a901",
"panel.border": "#f7a901",
"sideBar.border": "#f7a901",
"statusBar.border": "#c48601",
"tab.activeBorder": "#f7a901",
"titleBar.border": "#c48601"
},
"peacock.remoteColor": "#c48601",

Expand Down
5 changes: 5 additions & 0 deletions client.http
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@Host = "http://localhost:8000"
@apiUrl = "http://localhost:8000/api"
@authUrl = "users"

Expand All @@ -12,3 +13,7 @@ GET http://localhost:8000/api/users/
GET http://localhost:8000/api/videos/
Content-Type: application/json
Authorization: Token 4e95e5d2c9b43120fc7dbf7f46e1f1ef1f1776db

###

GET http://localhost:8000/accounts/
7 changes: 7 additions & 0 deletions compose/local/django/start
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ set -o nounset


python manage.py migrate
DJANGO_SUPERUSER_PASSWORD=Admin1 python manage.py createsuperuser \
--no-input \
--username=Admin1 \
[email protected] \
--database=default || true
echo "Created admin user with default password"

uvicorn config.asgi:application --host 0.0.0.0 --reload

0 comments on commit b5d6ace

Please sign in to comment.