장고에서 '_'(underbar) 뜻
_ 가 뭔지 몰라서 runserver가 안되서 한참 찾았는뎀... "from django.utils.translation import ugettext_lazy as _" 가 빠진거였다고 한다 ㅂㄷㅂㄷ ugettext_lazy는 뭘까 "_ in Django is a convention that is used for localizing texts. It is an alias for ugettext_lazy. Read Lazy translation in the docs for more info about it." 아 뭔가 text localizing이랑 관련이 있는 듯??
Web/Django
2019. 7. 31. 19:29
[django] Heroku 배포 시 python manage.py collectstatic --noinput' 에러 수정하는법
한참을 고생했는데, https://stackoverflow.com/questions/41515999/python-manage-py-collectstatic-noinput-error-when-deploying-django-project-to python manage.py collectstatic --noinput error when deploying Django project to Heroku I've recently encountered a static files error when deploying my Django project again to Heroku. I've deployed the project to Heroku once already previously (without static file..
Web/Django
2019. 6. 3. 20:44