Я хочу, чтобы он был доступен с компьютера в той же сети 192.25.56.xxx.
что я настроил
1. settings.py
Код: Выделить всё
ALLOWED_HOSTS = ["127.0.0.1", "localhost", "TestPC-A" , "0.0.0.0", "192.25.56.120"]
#and this which I am not sure if this is necessary:
CSRF_TRUSTED_ORIGINS = [
"http://127.0.0.1",
"https://127.0.0.1",
"http://localhost",
"https://localhost",
"https://TestPC-A",
"http://TestPC-A",
]
Код: Выделить всё
@echo off
REM Activate virtual environment in the current terminal session and run server
cmd /k ".venv\Scripts\activate && python manage.py runserver_plus --cert-file cert.pem --key-file key.pem 0.0.0.0:8000"
Код: Выделить всё
192.25.56.120 TestPC-A
Что еще мне нужно настроить?
Подробнее здесь: https://stackoverflow.com/questions/780 ... ork-access