First time here? Check out the FAQ!

miktil's profile - activity

2022-09-23 00:18:53 -0600 received badge Popular Question (source)
2022-09-23 00:18:53 -0600 received badge Notable Question (source)
2021-09-17 22:15:32 -0600 received badge Famous Question (source)
2020-07-04 04:08:09 -0600 received badge Taxonomist
2017-01-09 11:42:29 -0600 received badge Necromancer ( source )
2017-01-09 10:53:08 -0600 answered a question How to serve mutliple instances of Askbot in different directories using Apache?

It's very simple. Each instance of Askbot has its folder in /var/www. Apache config is:

# path and name used for sockets
WSGISocketPrefix /var/run/socket
# make sure it's running as a daemon
WSGIRestrictEmbedded            On
# initialize wsgi script on server start
WSGILazyInitialization          On

<VirtualHost *:80>

ServerAdmin                 admin@domain.com
ServerName                  askbot.domain.com
DocumentRoot /var/www

# No permission to list directories
<Directory /var/www>
    Options -Indexes
</Directory>

# Alias for "media"
AliasMatch                  ^/m_([^/]+)/(.*)        /var/www/$1/static/$2

# Alias for "upfiles"
AliasMatch                  ^/upfiles_([^/]+)/(.*)$ /var/www/$1/askbot/upfiles/$2

# Alias for *.wsgi script
WSGIScriptAliasMatch        ^/(?!/admin)([^/]+)     /var/www/$1/django.wsgi

# Use separate .conf file for each askbot instance
# the main config doesnt have to be modified
IncludeOptional             askbot-enabled/*.conf

# get names for application-group from askbot instance name
RewriteEngine               On
RewriteCond                 %{REQUEST_URI}          ^/([^/]+)
RewriteRule                 . - [E=ABGROUP:%1]

WSGIApplicationGroup        %{GLOBAL}
WSGIProcessGroup            %{ENV:ABGROUP}

<FilesMatch "\.(html|js|png|jpg|css|gif|ttf)$">
    ExpiresDefault "access plus 2 months"
    ExpiresActive On
</FilesMatch>

CustomLog /var/log/apache2/askbot_access.log common
ErrorLog /var/log/apache2/askbot_error.log
LogLevel notice

</VirtualHost>

Make sure you have config for each instance in IncludeOptional path. Sample.conf

WSGIDaemonProcess       instanceName     display-name=%{GROUP}

and make sure to edit settings.py in each instance and make following changes:

MEDIA_URL = '/upfiles_instanceName/'
STATIC_URL = '/m_instanceName/'#this must be different from MEDIA_URL
SESSION_COOKIE_NAME = 'instanceName'

That's all i remember. Might be something else to do to make it working

2016-03-08 09:01:22 -0600 received badge Teacher ( source )
2016-03-08 09:00:08 -0600 received badge Notable Question (source)
2016-03-08 09:00:08 -0600 received badge Famous Question (source)
2016-03-08 09:00:08 -0600 received badge Popular Question (source)
2016-02-18 14:22:22 -0600 received badge Notable Question (source)
2016-02-18 14:22:22 -0600 received badge Popular Question (source)
2015-12-16 09:41:20 -0600 received badge Famous Question (source)
2015-10-27 08:42:34 -0600 received badge Famous Question (source)
2015-10-25 08:39:18 -0600 asked a question DoesNotExist: Group matching query does not exist.

I'm keep getting that error whenever i want to post an answer:

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 113, in get_response response = callback(request, callback_args, *callback_kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/utils/decorators.py", line 136, in wrapper return view_func(request, args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/utils/decorators.py", line 231, in wrapper return view_func(request, args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/recaptcha_works/decorators.py", line 67, in wrapped_view resp = view_func(args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/views/writers.py", line 654, in answer ip_addr=request.META.get('REMOTE_ADDR')

File "/usr/local/lib/python2.7/dist-packages/askbot/forms.py", line 1268, in save ip_addr=ip_addr

File "/usr/local/lib/python2.7/dist-packages/askbot/utils/decorators.py", line 285, in wrapped return func(args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/models/__init__.py", line 2292, in user_post_answer answer_post.add_to_groups([self.get_personal_group()])

File "/usr/local/lib/python2.7/dist-packages/askbot/models/__init__.py", line 2702, in user_get_personal_group return Group.objects.get(name=group_name)

File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 143, in get return self.get_query_set().get(args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 404, in get self.model._meta.object_name)

DoesNotExist: Group matching query does not exist.

tried to run python manage.py syncdb --migrate --noinput Syncing... Creating tables ... Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Migrating... GhostMigrations:

! These migrations are in the database but not on disk: <askbot: 0180_generate_post_snippets=""> <askbot: 0181_auto__add_field_post_endorsed__add_field_post_endorsed_by__add_field_p=""> <askbot: 0182_populate_accepted_answers=""> <askbot: 0183_auto__del_field_thread_answer_accepted_at=""> <askbot: 0184_auto__add_field_post_current_revision=""> <askbot: 0185_populate_post_current_revision=""> <askbot: 0186_auto__add_field_badgedata_display_order=""> <askbot: 0187_remove_unused_badges=""> <askbot: 0188_null_country_field=""> <group_messaging: 0003_auto__add_unreadinboxcounter=""> ! I'm not trusting myself; either fix this yourself by fiddling ! with the south_migrationhistory table, or pass --delete-ghost-migrations ! to South to have it delete ALL of these records (this may not be good).

2015-06-18 07:10:08 -0600 commented question Turn off Karma feature

ok, have tested it on version 0.7.50 and the edit button appears when you have enough karma points. if you log off the edit option disappear. on 0.7.53 you can set the karma to 1000 and askbot will always show edit button whether you are logged in or not. is it a bug or a feature?

2015-06-17 15:51:00 -0600 commented question Turn off Karma feature

it's me again. it seems there's a bug that shows "Edit" to every user on every answer in version 0.7.53. it does not happen on version 0.7.50 but the main issue exists on both versions: i grant permission to a group _askbot_moderators_ and they dont work. even if i grant the same permission to the user it wont work. the only way to allow user to edit/moderate(delete etc) question is give him administrator rights...

2015-06-17 09:03:07 -0600 commented question Turn off Karma feature

Maybe i will be more specific. No matter if i create a local user or authenticate through LinkedIn i always see Edit button on everyones question/answer. When i click it it tells me i need 100 Karma points in order to do that. Askbot version 0.7.53 Where on the version 0.7.50 i cannot see edit button if the question/answer doesnt belong to me. My question is: Is it something you can edit in the setting? Basically i went through all the settings and couldt fins the solution

2015-06-17 06:21:33 -0600 asked a question Turn off Karma feature

Is there any way to turn that off completely?

Basically what we want to do is allow users authenticated through LinkedIN to post new question/answers and comments and that's all. I have added few users to "Moderators" group but they cant edit post because they don't have enough karma points!? You can' make yourself a moderator. Admin has to make the person a Moderator so what's the point to have minimum karma points? Totally don't understand a logic in this portal...

2015-06-16 03:11:56 -0600 answered a question tinymce and markdown

Log as a Admin -> Settings -> Data Entry and Display rules it's on the top

2015-06-05 09:56:36 -0600 asked a question Hide admin account or "users" subpage

Is there any chance to hide or disable it for security reasons? I blocked acces to foo.com/admin by <locationmatch> can do the same with Users subpage but maybe there's better way to do this?</locationmatch>

2015-06-05 09:06:31 -0600 asked a question LinkedIn dont allow users to custom their screen name

Hi

Is there any way i can turn off screen name customization on LinkedIn authentication? After you authenticate askbot asks you to put custom Screen Name and email address. Basically we dont want people to change it, but we want allow them to put a custom email address as its company website and people use their personal one on LinkedIn accounts.

Thanks

2015-02-18 03:32:27 -0600 answered a question How te set up ldap auth

LDAP_LOGIN_DN is a guess DomainName but i put ldap_username there
LDAP_USER your ldap_username
LDAP_PASSWORD your ldap_password

I think you are missing CN in BaseDN as the users are not in the root of domain so the line would be:
Base DN (distinguished name) = CN=users, DC=example,DC=com
Common Name = CN as its default i'm not sure if you have to fill this in

2015-01-29 02:53:16 -0600 asked a question Post a table(any type) on askbot

I'm having a issues with posting a table in askbot post HTML tags are not recognized, i tried to manually adjust but it doesnt 'see' space key i know i can use   but it takes to much effort when table has over 100 rows

thanks

2014-12-19 05:38:11 -0600 received badge Supporter ( source )
2014-12-19 05:24:45 -0600 commented answer Move .post-update-info-container to the bottom of he .post-body

Spent few good hours trying to fix this in .css. Can't believe it's that simple.

2014-12-19 05:23:03 -0600 received badge Scholar ( source )
2014-12-19 03:02:38 -0600 received badge Student (source)
2014-12-15 08:31:43 -0600 received badge Editor (source)
2014-12-15 08:31:13 -0600 asked a question Move .post-update-info-container to the bottom of he .post-body

I can't do that. Tried everything and was not able to do this. Trying to do this like on the Stack overflow page.

2014-12-05 08:40:04 -0600 received badge Enthusiast
2014-11-25 03:44:55 -0600 asked a question Title too long...

Is there any way to increase the title allowed character to >255 ?

2014-11-21 07:04:21 -0600 commented question Admin/media missing

made an alias /admin/media /path/to/project/static/admin

2014-11-19 03:36:11 -0600 asked a question Admin/media missing

Hi

There is no admin/media folder in /usr/local/lib/python2.7/site-package - it's empty. There is a admin folder in /usr/local/lib/python2.7/dist-packages/django/contrib/admin but there is no media folder. Basically if i login as a admin i have no style on the admin page and no pictures. There is no python2.6 folder as it states in other posts.

ubuntu64 14.04, askbot0.7.50