Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbeley/django-reddit
A simple django website with some handy reddit tools.
https://github.com/dbeley/django-reddit
django reddit
Last synced: 3 days ago
JSON representation
A simple django website with some handy reddit tools.
- Host: GitHub
- URL: https://github.com/dbeley/django-reddit
- Owner: dbeley
- Created: 2020-03-15T15:01:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-06T16:54:56.000Z (over 2 years ago)
- Last Synced: 2023-03-02T21:01:47.397Z (over 1 year ago)
- Topics: django, reddit
- Language: Python
- Homepage: https://reddit-tools.dbeley.ovh
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django-reddit
Simple django site acting as a frontend for:
- [reddit-scraper](https://github.com/dbeley/reddit-scraper): Various scripts for donwloading posts/submissions/comments of a reddit subreddit/post/user using either the reddit or the pushshift API.
- /r/france Forum Libre redirect.## Secrets
To run the website, you will need some config files.
### secret.ini
```
[django]
SECRET_KEY=secret_key_here
```### praw.ini
```
[reddit]
client_id=id_here
client_secret=secret_here
password=password_here
username=username_here
```### .env file
```
HEROKU_REDIS_ROSE_URL=redis://localhost
# optional, for docker + traefik
DEFAULT_NETWORK=trafik-network
DOMAIN=localhost
```### Environment variables
If you can't use ini files (i.e. when deploying with heroku), you can use those environment variables:
- `PRAW_CLIENT_ID`
- `PRAW_CLIENT_SECRET`
- `PRAW_PASSWORD`
- `PRAW_USERNAME`
- `DJANGO_SECRET_KEY`
- `HEROKU_REDIS_ROSE_URL`## Deploy
# With Docker
```
docker-compose build
docker-compose up -d
```# Local deploy (not suited for production)
```
docker run -d -p 6379:6379 redis
celery -A reddit_django worker -l info -E
python manage.py runserver
```