-
[Python] Django superuser (admin) 계정 만들기Python/Django 2021. 12. 1. 10:02
=> python manage.py createsuperuser
# {myApp}/ {admin.py} from django.contrib import admin from {myApp}.models import {modelName} # Register your models here. admin.site.register({modelName})
'Python > Django' 카테고리의 다른 글
[Django] User model에 대한 settings, admin 설정하기 (0) 2021.12.03 [Python] Django html 상속 extends (0) 2021.12.01 [Python] Django urls.py, views.py 초기 세팅 (0) 2021.11.30 [Python] TypeError: __init__() missing 1 required positional argument: 'on_delete' (0) 2021.11.30 [Python] settings.py에 static folder 연결해서 html에서 사용하기 (0) 2021.11.20