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 details)
Built Distribution
File details
Details for the file django-tor-1.0.1.tar.gz
.
File metadata
- Download URL: django-tor-1.0.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1362c1000dbf35b6cd5609fe9169456f800038e0fd49b5537a5877622233a2c |
|
MD5 | 2116caa588686175a5b8e290b6c106dd |
|
BLAKE2b-256 | 5ddb0f5546765ccea0dc8f520fac6d7707f8b773e5dd028a44707db0a7be1ff8 |
File details
Details for the file django_tor-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: django_tor-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e405b6861e037d26dfaa69f3d680fb829d2488b7dd7222da3a4fd4404119be |
|
MD5 | 12f67b0e466b5ac01d52fe90f729505c |
|
BLAKE2b-256 | e1f8da133629016531cdf85f15c52f7e5f027bd9bf917acb9ed38e158efc6da1 |