miktil's profile - activity
2 years ago | received badge | Popular Question (source) |
2 years ago | received badge | Notable Question (source) |
3 years ago | received badge | Famous Question (source) |
5 years ago | received badge | Taxonomist |
8 years ago | received badge | Necromancer ( source ) |
8 years ago | 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 |
9 years ago | received badge | Teacher ( source ) |
9 years ago | received badge | Notable Question (source) |
9 years ago | received badge | Famous Question (source) |
9 years ago | received badge | Popular Question (source) |
9 years ago | received badge | Notable Question (source) |
9 years ago | received badge | Popular Question (source) |
9 years ago | received badge | Famous Question (source) |
9 years ago | received badge | Famous Question (source) |
9 years ago | asked a question | DoesNotExist: Group matching query does not exist. I'm keep getting that error whenever i want to post an answer:
tried to run python manage.py syncdb --migrate --noinput
|
10 years ago | 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? |
10 years ago | 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... |
10 years ago | 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 |
10 years ago | 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... |
10 years ago | answered a question | tinymce and markdown Log as a Admin -> Settings -> Data Entry and Display rules it's on the top |
10 years ago | 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> |
10 years ago | 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 |
10 years ago | answered a question | How te set up ldap auth LDAP_LOGIN_DN is a guess DomainName but i put ldap_username there I think you are missing CN in BaseDN as the users are not in the root of domain so the line would be: |
10 years ago | 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 |
10 years ago | received badge | Supporter ( source ) |
10 years ago | 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. |
10 years ago | received badge | Scholar ( source ) |
10 years ago | received badge | Student (source) |
10 years ago | received badge | Editor (source) |
10 years ago | 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. |
10 years ago | received badge | Enthusiast |
10 years ago | asked a question | Title too long... Is there any way to increase the title allowed character to >255 ? |
10 years ago | commented question | Admin/media missing made an alias /admin/media /path/to/project/static/admin |
10 years ago | 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 |