Skip to content

Run your django website on tor using django_tor

License

Notifications You must be signed in to change notification settings

jakbin/django-tor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Releases

No releases published

Packages

No packages published

Languages