Joey's profile - activity
8 years ago | received badge | Popular Question (source) |
10 years ago | received badge | Famous Question (source) |
10 years ago | received badge | Popular Question (source) |
11 years ago | received badge | Famous Question (source) |
11 years ago | received badge | Good Question (source) |
11 years ago | received badge | Nice Question (source) |
11 years ago | received badge | Student (source) |
11 years ago | asked a question | I want to create an interactive home page using Askbot. Is this possible? The main page has bunch of questions which has a dump of data that cannot be modified. I would like to change this for my website. (Make it more like Quora) These are the changes I am trying to make.
I started looking at the code and the template: main_page/questions_loop.html loops through thread object and the function in models/question.py update_summary_html renders a template to widgets/question_summary.html. I have made modifications to the function such that it renders to widgets/my_post_summary.html and it added more context like questions and answers. The main page now displays the information I need. Is this how the its supposed to be done? Am i doing this in a right way? Is there a better way to do it. Any advice regarding this would be greatly appreciated. FYI, I am aware of risks of modifying 3rd part app. Edit: I am having trouble registering the control buttons in the main page. i,e Vote.init() register function doesn't have the information required to regsiter the vote up/down buttons. ie I am not able to send POST commands from main page. What should be done? |
11 years ago | commented answer | SuspiciousOperation: Attempted access to ... error when trying collectstatic Oh and the file doesn't exists as well.. i.e it is not in /home/joeyl/my_site/askbot/skins/my_skin/media/js/output-words.html, it is in /home/joey/custom/my_skin/media/js |
11 years ago | commented answer | SuspiciousOperation: Attempted access to ... error when trying collectstatic I have updated the question to include file permissions as well |
11 years ago | commented answer | SuspiciousOperation: Attempted access to ... error when trying collectstatic Hi, It is python error: Have a look at this "stackoverflow.com/questions/1950069/suspicious-operation-django".. I checked the file permissions and they are all ok. |
11 years ago | received badge | Editor (source) |
11 years ago | asked a question | SuspiciousOperation: Attempted access to ... error when trying collectstatic I am adding a new skin in my home directory. For simplicity, I copied media and template files from askbot source code to check if am able to plugin a new skin. So my skin dir looks like this
Following are the changes done to settings.py ASKBOT_EXTRA_SKINS_DIR = '/home/joey/custom/'
STATICFILES_DIRS = ((os.path.join(ASKBOT_ROOT, 'skins'), ASKBOT_EXTRA_SKINS_DIR),)
When I run SuspiciousOperation: Attempted access to '/home/joey/mysite/askbot/skins/my_skin/media/js/output-words.html' denied.
If I delete that file, I am seeing SuspiciousOperation: Attempted access to '/home/joey/mysite/askbot/skins/my_skin/media/bootstrap/css/bootstrap.min.css' denied.
I am able to runserver but without css. It's only html..kindly help File permissions: drwxrwxrwx 5 joey joey 4096 Dec 10 08:38 js
drwxrwxrwx 3 joey joey 4096 Dec 10 08:38 jquery-openid
drwxrwxrwx 5 joey joey 4096 Dec 10 08:38 images
drwxrwxrwx 3 joey joey 4096 Dec 10 08:38 style
|
11 years ago | answered a question | Question regarding skin customization document Can somebody answer this question? I also looking for answer. I want to design the entire website using zurb foundation and contribute a new skin. How do I go about doing it? |