Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/85 manage secure admin panel for django app #86

Merged

Conversation

ShotaTanemura
Copy link
Owner

Close #85 .

  • 直接DBのレコードを編集する作業に手間がかかっていたため、Djangoの管理者画面を設定
  • 以下の手順で管理者画面へアクセスする
    1. .env-sampleを参考にADMIN_PANEL_URL(管理者画面へのパス) , DJANGO_SUPERUSER_USERNAME, DJANGO_SUPERUSER_PASSWORD, DJANGO_SUPERUSER_EMAIL, NGINX_ORIGIN (わからなければhttp://localhost:8000としておく) を設定する
    2. Devcontainerを起動し、localhost:8000へアクセス後、DJANGO_SUPERUSER_EMAILDJANGO_SUPERUSER_PASSWORDでログイン
    3. ログイン後、ADMIN_PANEL_URLへアクセスし、DJANGO_SUPERUSER_USERNAMEDJANGO_SUPERUSER_PASSWORDでパスワード認証を実施
    4. 認証が成功すれば、管理者画面へアクセス可能
    5. 管理者画面の使い方は以下など参考 ( https://python.keicode.com/django/admin-site-enabling.php )

@massahito massahito requested review from soooku and massahito and removed request for soooku July 24, 2024 07:08
@ShotaTanemura ShotaTanemura force-pushed the feature/85-manage-secure-admin-panel-for-django-app branch from 56e9dc6 to 5e8af7d Compare July 24, 2024 11:20
@subarunrun0812 subarunrun0812 self-requested a review July 25, 2024 11:25
Copy link
Collaborator

@subarunrun0812 subarunrun0812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

管理者画面にアクセスし、ユーザーの情報を見ることができました。

Copy link
Collaborator

@massahito massahito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作確認できました。ありがとうございました。

Copy link
Collaborator

@libknt libknt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認しました.ありがとうございます!

develop into feature/85-manage-secure-admin-panel-for-django-app mergeして問題なければ、完璧でした.

@ShotaTanemura ShotaTanemura merged commit e73a5e2 into develop Jul 31, 2024
1 check passed
@ShotaTanemura ShotaTanemura deleted the feature/85-manage-secure-admin-panel-for-django-app branch July 31, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Djangoの管理者ページへアクセスしてDBを直接操作可能な状態を作る
4 participants