Skip to content

dbeley/django-reddit

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

django-reddit

Simple django site acting as a frontend for:

  • 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

sudo docker-compose build
sudo docker-compose up -d

Local deploy (not suited for production)

sudo docker run -d -p 6379:6379 redis
celery -A reddit_django worker -l info -E
python manage.py runserver

About

A simple django website with some handy reddit tools.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published