First time here? Check out the FAQ!

Joey's profile - activity

2017-07-05 12:40:43 -0500 received badge Popular Question (source)
2014-08-14 14:53:57 -0500 received badge Famous Question (source)
2014-08-14 14:53:57 -0500 received badge Popular Question (source)
2014-06-23 17:37:31 -0500 received badge Famous Question (source)
2013-12-22 12:47:30 -0500 received badge Good Question (source)
2013-12-22 12:46:25 -0500 received badge Nice Question (source)
2013-12-22 12:43:40 -0500 received badge Student (source)
2013-12-22 07:22:20 -0500 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.

  1. Allow viewing the details of the question for each question.
  2. Allow answering of questions in the main page.
  3. Allow voting the questions and answers in the main page.
  4. Allow viewing answers in the main page.

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?

2013-12-12 15:34:19 -0500 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

2013-12-12 15:30:44 -0500 commented answer SuspiciousOperation: Attempted access to ... error when trying collectstatic

I have updated the question to include file permissions as well

2013-12-12 15:15:07 -0500 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.

2013-12-12 15:05:03 -0500 received badge Editor (source)
2013-12-12 14:59:54 -0500 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

/home/joey/custom/my_skin/
...media/
......... images jquery-openid js style
...templates/

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 python manage.py collectstatic I am seeing:

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
2013-12-12 11:43:01 -0500 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?