First time here? Check out the FAQ!

Fitoria's profile - activity

2017-03-09 14:02:48 -0500 received badge Nice Answer ( source )
2017-03-07 11:36:40 -0500 received badge Necromancer ( source )
2014-02-24 14:40:17 -0500 answered a question Why can't I export my forum?

Your local database needs to be migrated/synced

python manage.py syncdb 
python manage.py migrate --all
2014-01-30 11:04:59 -0500 commented answer is it locmem related issue or djcelery issue?

use a real cache engine for your site, it performs much better after that change :)

2014-01-20 10:29:54 -0500 received badge Good Answer ( source )
2014-01-20 10:29:54 -0500 received badge Enlightened ( source )
2014-01-02 11:21:00 -0500 commented answer How do I update Askbot if I have changed the Git origin?

@Nikhil in your case do a commit and then push it to your origin that you will have write access to.

2014-01-02 11:19:25 -0500 commented answer What are the system requirements for Askbot?

Updated to 1GB it said 1MB, IMO you can make it work with less 256mb vps can be enough for a small site, but more memory will give performance benefits of having a cache engine with a large dataset installed

2014-01-02 11:16:40 -0500 edited answer What are the system requirements for Askbot?

I'd start with a 1GB RAM or even half of that, just make sure that your caching system is not using more RAM than you can assign to that.

If you are looking for hosting on your own, find a basic VPS, which could cost $20/mo or even less. It will be key to have root access to the machine or have your hosting provider explicitly say that they support hosting Python/Django applications.

2013-12-16 02:57:36 -0500 received badge Nice Answer ( source )
2013-12-03 11:07:11 -0500 received badge Nice Answer ( source )
2013-12-03 08:44:07 -0500 answered a question How do I update Askbot if I have changed the Git origin?

you'll have to add another origin pointing to the askbot repo on github you can do this by

git remote add askbotgithub <github url here>

and then to get the latests commits do:

git pull askbotgithub master

this will pull the latest changes from the askbot on github origin to your local repo.

Note: you can name the origin with other names, just used askbotgithub as example.

2013-11-12 16:30:04 -0500 answered a question Introduce new variables in settings.py

Adding variables to the setting template?

You'll need to modify the askbot/setup_templates/settings.mustache so that way when you create a new project your custom values will be on the project's settings.py file.

2013-10-28 15:07:56 -0500 answered a question Installing askbot - 1054, "Unknown column 'auth_user.tag_filter_setting' in 'field list'

Hi,

It seems that the migrations weren't applied you can try the following command

python manage.py syncdb --all
python manage.py migrate --fake

The first command will sync the database as if there are no migrations at all, the second command will apply migrations by faking them on the database record but not actually altering the database structure.

2013-10-18 00:06:03 -0500 received badge Nice Answer ( source )
2013-10-17 12:57:56 -0500 commented answer How does askbot send email notifications?

@pajju not sure about if that is doable, but celery works just fine and it solves that issue, also the sending tweet feature uses Celery (if my mind does not fails).

2013-10-17 12:30:19 -0500 answered a question How does askbot send email notifications?

Hi.

Basically notifications work in two ways:

Instant Notification

This is sent if the user has "instantly" selected in the subscription tab on his profile .

Askbot can be configured to use Celery to queue the email sending task, so the issue of posting taking a long time is solved this way, information about this in the oficial documentation.

If you don't use celery your site may take a long time to post new content because the emails will be sent synchronously and if you have many users with this option selected, an email will be sent to each subscribed user at that time, so that's why it takes a long time to post content.

Daily/Weekly Notifications

This is done with the send_email_alerts management command as a cronjob, this cronjob needs to be configured to make it work.

There is a sample cronjob file on the repository this cronjob needs to be run daily and it will send the notifications according to the user's configuration.

Note: in this cronjob command you might want to include Django's clearsessions management command to delete old session data and save space on the database (info here)

2013-10-16 09:18:21 -0500 commented question my site via askbot is DOWN

got it, it was on the spam folder, working on your case

2013-10-16 09:15:08 -0500 commented question my site via askbot is DOWN

weird, I have not recieved any email from you, also try my personal account: adolfo@fitoria.net

2013-10-16 09:12:28 -0500 commented question my site via askbot is DOWN

write to support@askbot.com please, with your site info

2013-10-16 07:47:39 -0500 commented question Askbot installation fails in migration due to 0 values in AutoField

What database backend are you using?

2013-10-16 07:46:48 -0500 commented question object.__init__() takes no parameters

Do you still have this issue? what is your current dependencies libraries version? Could you do a pip freeze and update the question with the result?

2013-10-16 07:42:49 -0500 answered a question mezzanine: multiple authors per blog post

No idea, maybe you should ask on the Mezanine mailing list?

2013-10-11 15:35:20 -0500 edited question django view not working

Hello all, working with mezzanine, I created in an app (newsroom) folder, a views.py http://dpaste.com/1413587/. This view is an addition to the blog app in site-packages. I then I put a section in my blog_post_list.html template file to (supposedly) show the data from that view http://bpaste.net/show/6cHStytzI5cqfICpFVAT/, but I cannot see this data. blog_post_list.html is my home. Will someone please point my mistake here? TIA!

2013-10-07 10:07:40 -0500 answered a question What is the right location for my django translation files?

in that case you can add a locale directory in your project and add it to LOCALE_PATHS in your settings.py that way every app [that you use will be translated directly in your project code info here

You wont have to translate everything if it already exits on the app locale it will be showed on the generated PO so you'll have a starting point.

2013-10-04 17:58:15 -0500 commented answer How to translate django applications?

http://stackoverflow.com/questions/4562252/django-how-to-deal-with-the-paths-in-settings-py-on-collaborative-projects

2013-10-04 17:41:14 -0500 commented answer How to translate django applications?

LOCALE_PATHS requires full path, not relative path as you where doing, similar to STATICFILES_DIRS setting.

2013-10-04 16:08:48 -0500 commented answer How to translate django applications?

No, you wont have to translate everything if it already exits on the app locale it will be showed on the generated PO so you'll have a starting point.

2013-10-04 15:55:42 -0500 commented answer How to translate django applications?

in that case you can add a locale directory in your project and add it to LOCALE_PATHS in your settings.py that way every app [that you use will be translated directly in your project code info here: https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths :-)

2013-10-03 09:34:07 -0500 commented question How to add a custom form in Askbot?

Could you expand your question? Do you want a form after the login is done? or just change a current form?

2013-10-03 09:33:21 -0500 answered a question Is it possible to get a theme like answers.ros.org

Check this doc page out basically you can do it on many levels: extra css, main css revamp, and html + css changes

2013-10-02 10:06:47 -0500 commented question Posting on facebook if I vote up or answer a question

you could add this and it's possible to do it with a facebook app, but this is not currently suported.

2013-10-02 10:02:51 -0500 answered a question If we register with askbot using email, why isn't a validation email sent

There are settings to control this behaviour, go to /settings/ACCESS_CONTROL/ and look for Require valid email for

2013-10-02 09:46:47 -0500 answered a question How to enable advanced editing controls with Tinymce editor?

This can be done with your settings.py file, Askbot uses django-tinymce you can find more info here

2013-10-01 20:37:42 -0500 answered a question Why am I not getting notification if someone comments or answers my question?

also check your "subscriptions" tab in your profile for email settings, if they are enabled there must be an issue with the email server, spam filter or anything along that chain.

2013-10-01 12:06:25 -0500 commented answer How do I start understanding how Askbot works?

@Nikhil updated my answer.

2013-10-01 11:55:13 -0500 commented answer How do I start understanding how Askbot works?

@Nikhil: when you do askbot-setup it creates a project template (without askbot code) that simple calls askbot in your python path, the project template is here: https://github.com/fitoria/askbot-devel/tree/master/askbot/setup_templates and those three folders are just the ones needed to run, so to modify it you'll need to changed code directly in your askbot repo not in your project.

2013-10-01 11:52:17 -0500 commented answer How do I start understanding how Askbot works?

@Romain: because askbot itself is just one app :-) it's not a django project.

2013-10-01 10:00:33 -0500 answered a question How do I start understanding how Askbot works?

Askbot is a typical django plugable app + some addons. The most important folders to modify functionality are the common ones on a MVC pattern:

models/ -> this would normally be models.py in this case is a module folder that splits the model definitions into several files so it can be navigated more easily.

views/ -> also this one is a folder module including views files splited into smaller units,

templates/ -> this one includes the HTML code of the templates, it's important to note that askbot uses Jinja2 as template engine, should be more than 90% similar to django templates code.

Other important files to take a look are:

urls.py -> this defines what view function gets executed when a user visits an url.

search/ -> this folder defines the search funtionality according to database/search engine you configure.

forms.py -> form classes used in askbot.

media/ -> javascript is stored here, many features depend on javascript.

Please let me know if you need something else...

EDIT:

To modify stuff on the code easily the procedure should be the following:

  1. Fork the repository on github and clone it into your machine.
  2. Create a virtualenv for your project.
  3. Run: python setup.py develop in the askbot project root, this will install all the dependencies and you won't need to reinstall askbot everytime you make a code change, as your virtualenv will point to your repository code.
  4. Create a sample askbot project with askbot-setup command: this will just be used to run the development server, test suite and all the management commands stuff.
  5. Change code in your fork
  6. Test it with runserver on your sample project.
  7. Does it works? go to step 9, if not continue to step 8
  8. goto sept 5 and fix it!
  9. Continue working on your project :-)
2013-09-29 11:34:11 -0500 commented answer Three different domains for js,css and images

@anshprat there are not such settings for that, let me do some research on how to do it

2013-09-28 21:05:24 -0500 received badge Nice Answer ( source )
2013-09-27 16:12:35 -0500 commented answer Three different domains for js,css and images

Not sure on how to make it with this case, maybe making a template tag/filter for static media that changes the url according to the media type?

2013-09-27 15:38:15 -0500 answered a question Haystack's real time indexing causes errors

Fixed in this commit

2013-09-27 11:09:27 -0500 commented question Haystack's real time indexing causes errors

Data validation error, will be fixed soon.