-
Notifications
You must be signed in to change notification settings - Fork 1
Run your django website on tor using django_tor
License
jakbin/django-tor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
<
8368
article class="markdown-body entry-content container-lg" itemprop="text">
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
Credit :- onionshare
About
Run your django website on tor using django_tor
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published