Skip to content

Latest commit

 

History

History
executable file
·
46 lines (33 loc) · 1.37 KB

README.md

File metadata and controls

executable file
·
46 lines (33 loc) · 1.37 KB

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