diff --git a/myvenv/bin/activate b/myvenv/bin/activate new file mode 100644 index 00000000..e38dcf8e --- /dev/null +++ b/myvenv/bin/activate @@ -0,0 +1,69 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then + PATH="${_OLD_VIRTUAL_PATH:-}" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then + PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # This should detect bash and zsh, which have a hash command that must + # be called to get it to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null + fi + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="/Users/ahyeonlim/Otr-Server/myvenv" +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME:-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1:-}" + PS1="(myvenv) ${PS1:-}" + export PS1 + VIRTUAL_ENV_PROMPT="(myvenv) " + export VIRTUAL_ENV_PROMPT +fi + +# This should detect bash and zsh, which have a hash command that must +# be called to get it to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null +fi diff --git a/myvenv/bin/pip3.10 b/myvenv/bin/pip3.10 new file mode 100755 index 00000000..bde8aded --- /dev/null +++ b/myvenv/bin/pip3.10 @@ -0,0 +1,8 @@ +#!/Users/ahyeonlim/Otr-Server/myvenv/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/myvenv/bin/sqlformat b/myvenv/bin/sqlformat new file mode 100755 index 00000000..67bd5f17 --- /dev/null +++ b/myvenv/bin/sqlformat @@ -0,0 +1,8 @@ +#!/Users/ahyeonlim/Otr-Server/myvenv/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from sqlparse.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/yuseo/yuseo/settings.py b/yuseo/yuseo/settings.py index 966da662..6a271719 100644 --- a/yuseo/yuseo/settings.py +++ b/yuseo/yuseo/settings.py @@ -138,6 +138,8 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' +MEDIA_ROOT = os.path.join(BASE_DIR, 'media') +MEDIA_URL = '/media/' NAVER_CLIENT_ID = 'rA0H6_4YbABuGWvVnnsF' NAVER_SECRET_KEY = '72o6kCBNpY' diff --git a/yuseo/yuseo/urls.py b/yuseo/yuseo/urls.py index 0b1b7a18..0e1c5db8 100644 --- a/yuseo/yuseo/urls.py +++ b/yuseo/yuseo/urls.py @@ -26,6 +26,7 @@ # config/urls.py urlpatterns = [ path('admin/', admin.site.urls), + path('', include('yuseoapp.urls')) path('accounts/', include('allauth.urls')), # 로깅 추가 path('users/', include('users.urls')), diff --git a/yuseo/yuseoapp/serializers.py b/yuseo/yuseoapp/serializers.py index fcd067ad..29032b5f 100644 --- a/yuseo/yuseoapp/serializers.py +++ b/yuseo/yuseoapp/serializers.py @@ -2,6 +2,9 @@ from dataclasses import field, fields from rest_framework import serializers from .models import Yuseo + + + class YuseoSerializer(serializers.ModelSerializer):