(see my more recent post below for my current problem)
Hi,
I'm simultaneously trying to learn a bunch of new things while getting a Reddit clone running, and I have a few basic questions:
**Answered**
1. I've been told to input the following commands with paster shell to edit some settings:
What do I need to do at this point to save, run, or otherwise exit the shell?
Solution: Just press enter again.
2. I've been told that I can access stored data and some settings within the database. My PostgreSQL path is: /usr/local/pgsql/data. However, I'm unable to access this path via SFTP, and from SSH, when I try to enter the directory, I get: "-bash: cd: data: Permission denied." How does one go about accessing and modifying records in a database? I'm trying to access it by entering:
Is this the best way to do things, or is there a simpler GUI/other interface that I could use? Thanks for any help you can provide.
3. I'm trying to get AMQP running now.
Hi,
I'm simultaneously trying to learn a bunch of new things while getting a Reddit clone running, and I have a few basic questions:
**Answered**
1. I've been told to input the following commands with paster shell to edit some settings:
Code:
sudo paster shell example.ini
>>> from r2.models import Subreddit
>>> for sr in Subreddit._query():
...(four spaces) sr._downs = 1
...(four spaces) sr._commit()
...(I'm stuck here)
Solution: Just press enter again.
2. I've been told that I can access stored data and some settings within the database. My PostgreSQL path is: /usr/local/pgsql/data. However, I'm unable to access this path via SFTP, and from SSH, when I try to enter the directory, I get: "-bash: cd: data: Permission denied." How does one go about accessing and modifying records in a database? I'm trying to access it by entering:
Code:
psql -h /usr/local/pgsql/data
or psql -d reddit
3. I'm trying to get AMQP running now.