django-tor-1.0.1
توضیحات
A simple way to run Django apps on tor from your machine.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-tor-1.0.1 |
| نام | django-tor |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jak Bin |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/jakbin/django-tor |
| آدرس اینترنتی | https://pypi.org/project/django-tor/ |
| مجوز | MIT License |
# 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.
[](https://badge.fury.io/py/django-tor)
[](https://pepy.tech/project/django-tor)
[](https://pepy.tech/project/django-tor)

### 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
set ALLOWED_HOSTS to * in settings.py
```
ALLOWED_HOSTS = ['*']
```
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 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.
```sh
python3 manage.py runserver --noreload
```
### Credit :- [onionshare](https://github.com/onionshare/onionshare)
نیازمندی
| مقدار | نام |
|---|---|
| - | Django |
| - | stem |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl django-tor-1.0.1:
pip install django-tor-1.0.1.whl
نصب پکیج tar.gz django-tor-1.0.1:
pip install django-tor-1.0.1.tar.gz