Run your django website on tor using django_tor.It doesn’t interfere with other tor processes on your computer, so you can use the Tor Browser or the system tor on their own.
Use it only for educational purpose.
- No need root permission
- Multiple instances
Python 3.6+ is required.
pip install django-tor
add this lines in manage.py in your django project.
from django_tor import run_with_tor
from django.core.management.commands.runserver import Command as runserver
if sys.argv[1] == 'runserver':
host, port = run_with_tor()
runserver.default_port = str(port)
from djangoTor.settings import ALLOWED_HOSTS
ALLOWED_HOSTS.append(host)
Run django server with noreload argument.
python3 manage.py runserver --noreload