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
Metadata
Release files for django-tor 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-tor-1.0.1.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_tor-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.6 kB
Release files / django-tor-1.0.1.tar.gz
| Download URL | django-tor-1.0.1.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1362c1000dbf35b6cd5609fe9169456f800038e0fd49b5537a5877622233a2c
|
|
BLAKE2b-256 checksum How to use checksums |
5ddb0f5546765ccea0dc8f520fac6d7707f8b773e5dd028a44707db0a7be1ff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / django_tor-1.0.1-py3-none-any.whl
| Download URL | django_tor-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40e405b6861e037d26dfaa69f3d680fb829d2488b7dd7222da3a4fd4404119be
|
|
BLAKE2b-256 checksum How to use checksums |
e1f8da133629016531cdf85f15c52f7e5f027bd9bf917acb9ed38e158efc6da1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|