Skip to main content

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.

PyPI version Downloads Downloads Python 3.6

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)

Source distribution for django-tor 1.0.1
File Size Uploaded
django-tor-1.0.1.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tor 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page