- How to rename a user:
- from r2.models import *
- paster shell production.ini
- u = Account._by_name('original_name')
- u.name = 'new_name'
- u._commit()
- How to rename a subreddit:
- paster shell production.ini
- from r2.models import *
- sr = Subreddit._by_name('original_name')
- sr.name = 'newname'
- sr._commit()
- Flush the cache:
- echo flush_all | nc localhost 11211
- Update subreddits:
- sudo start reddit-job-update_reddits
- Restart everything:
- sudo initctl emit reddit-restart
- Restart everything (and make sure templates are reloaded)
- sudo initctl emit reddit-stop
- sudo initctl emit reddit-start
SHARE
TWEET


Cheatsheet




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.