# python manage.py shell
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.contrib.auth.models import User
>>> User.objects.filter(is_superuser=True)
[<User: admin>]
>>>
>>>
>>> usr = User.objects.get(username='admin')
>>> usr.set_password('1234!@#')
>>> usr.save()
>>>
from django.contrib import admin
admin.site.site_header = 'My project' # default: "Django Administration"
admin.site.index_title = 'Features area' # default: "Site administration"
admin.site.site_title = 'HTML title from adminsitration' # default: "Django site admin"
'Python' 카테고리의 다른 글
django SECRET_KEY 따로 관리하기 (0) | 2019.12.20 |
---|---|
django logging 설정 (0) | 2019.12.16 |
(python) shotgun 참고 (0) | 2019.12.05 |
django 로컬 테스트시(DEBUG = False) static 적용안될때 (0) | 2019.12.02 |
django log파일 만들기 (.txt), JSON 파일 만들기, 읽기 (0) | 2019.11.29 |