git clone https://github.com/bamjun/pythonanywhere-django-ninja-starter.git
bash starter.sh
uv sync --all-groups
git clone https://github.com/bamjun/pythonanywhere-django-ninja-starter.git
cd pythonanywhere-django-ninja-starter/
uv sync
bash starter.sh
- CHECK_DEV_MODE=False
- CHECK_LOCAL_MODE=False
- ALLOWED_HOSTS=
pythonanywere-URL
nano .env
- 현재 경로 복사해서 wsgi.py 파일 project_home에 붙여넣기
pwd
# This file contains the WSGI configuration required to serve up your
# web application at http://grater.pythonanywhere.com/
# It works by setting the variable 'application' to a WSGI handler of some
# description.
#
# The below has been auto-generated for your Django project
import os
import sys
# add your project directory to the sys.path
project_home = '/home/grater/pythonanywhere-django-ninja-starter'
if project_home not in sys.path:
sys.path.insert(0, project_home)
# set environment variable to tell django where your settings.py is
os.environ['DJANGO_SETTINGS_MODULE'] = '_core.settings'
# serve django via WSGI
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
uv run python manage.py runserver
bash linter.sh
uv run pytest
git pull
uv sync
웹 > 리로드클릭