A simple way to run Django apps on tor from your machine.
Project description
django-tor
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.
Disclaimer:-
Use it only for educational purpose.
Features
- No need root permission
- Multiple instances
Compatability
Python 3.6+ is required.
Installation
pip install django-tor
Uses
set ALLOWED_HOSTS to * in settings.py
ALLOWED_HOSTS = ['*']
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-tor-1.0.1.tar.gz
(10.9 kB
view hashes)
Built Distribution
django_tor-1.0.1-py3-none-any.whl
(11.8 kB
view hashes)
Close
Hashes for django_tor-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e405b6861e037d26dfaa69f3d680fb829d2488b7dd7222da3a4fd4404119be |
|
MD5 | 12f67b0e466b5ac01d52fe90f729505c |
|
BLAKE2b-256 | e1f8da133629016531cdf85f15c52f7e5f027bd9bf917acb9ed38e158efc6da1 |