Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakbin/django-tor
Run your django website on tor using django_tor
https://github.com/jakbin/django-tor
django onion onion-service onionshare python security tor
Last synced: 24 days ago
JSON representation
Run your django website on tor using django_tor
- Host: GitHub
- URL: https://github.com/jakbin/django-tor
- Owner: jakbin
- License: mit
- Created: 2022-06-02T15:24:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T12:25:27.000Z (over 2 years ago)
- Last Synced: 2024-11-19T07:17:41.455Z (about 1 month ago)
- Topics: django, onion, onion-service, onionshare, python, security, tor
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://badge.fury.io/py/django-tor.svg)](https://badge.fury.io/py/django-tor)
[![Downloads](https://pepy.tech/badge/django-tor/month)](https://pepy.tech/project/django-tor)
[![Downloads](https://static.pepy.tech/personalized-badge/django-tor?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/django-tor)
![Python 3.6](https://img.shields.io/badge/python-3.6-yellow.svg)### Disclaimer:-
Use it only for educational purpose.## Features
- No need root permission
- Multiple instances## Compatability
Python 3.6+ is required.## Installation
```bash
pip install django-tor
```## Uses
add this lines in manage.py in your django project.
```py
from django_tor import run_with_tor
from django.core.management.commands.runserver import Command as runserverif 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.
```sh
python3 manage.py runserver --noreload
```### Credit :- [onionshare](https://github.com/onionshare/onionshare)