Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement