AaronHuang's profile - activity
7 years ago | received badge | Notable Question (source) |
8 years ago | received badge | Notable Question (source) |
8 years ago | received badge | Popular Question (source) |
8 years ago | received badge | Good Answer ( source ) |
8 years ago | received badge | Enlightened ( source ) |
8 years ago | received badge | Scholar ( source ) |
8 years ago | received badge | Supporter ( source ) |
8 years ago | commented question | Why language code changed by itself? First, I set `LANGUAGE_CODE = 'zh-tw'` and `LANGUAGES = (('zh-tw', 'Chinese'),)` in `settings.py`. And then, I change the existing `zh-TW` language code in the database table (`repute`, `askbot_post`, `askbot_thread`) to `zh-tw`. It seems to solve the problem. |
8 years ago | received badge | Notable Question (source) |
8 years ago | received badge | Popular Question (source) |
8 years ago | received badge | Popular Question (source) |
8 years ago | received badge | Nice Answer ( source ) |
8 years ago | commented answer | How to use SSL Certificates with AskBot? You're welcome. |
8 years ago | answered a question | How to use SSL Certificates with AskBot?
Add some code your your nginx configuration. server {
. . .
location ~ /.well-known {
allow all;
}
. . .
}
For my website, it is: server {
listen 80;
server_name ldstw.org www.ldstw.org;
return 301 https://$server_name$request_uri;
}
server {
listen 443;
server_name ldstw.org www.ldstw.org;
ssl on;
ssl_certificate /etc/letsencrypt/live/ldstw.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ldstw.org/privkey.pem;
add_header Strict-Transport-Security max-age=31536000;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
location /.well-known/acme-challenge {
root /home/s930029/GospelForum;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/home/s930029/GospelForum/askbot.sock;
}
}
And make sure to use |
8 years ago | commented answer | How to configure Askbot with Nginx and uWSGI? You're welcome. It takes time to figure these out. |
8 years ago | received badge | Nice Answer ( source ) |
8 years ago | commented answer | How to configure Askbot with Nginx and uWSGI? Sorry, I forgot to tell you that, I use `sudo chown s930029:www-data askbot.sock` |
8 years ago | commented answer | How to configure Askbot with Nginx and uWSGI? Yes, it's my python virtualenv path. |
8 years ago | commented answer | How to configure Askbot with Nginx and uWSGI? @gopalraha I have modified my answer. |
8 years ago | received badge | Teacher ( source ) |
8 years ago | answered a question | How to configure Askbot with Nginx and uWSGI? I use This is my nginx configuration: server { listen 80; server_name ldstw.org www.ldstw.org; location / { include uwsgi_params; uwsgi_pass unix:/home/s930029/GospelForum/askbot.sock; } } This is my uwsgi configuration [uwsgi]
project = askbot
base = /home/s930029
static-map = /m=/home/s930029/GospelForum/static
chdir = %(base)
home = /home/s930029/.virtualenvs/askbot/
wsgi-file = /home/s930029/GospelForum/django.wsgi
master = true
processes = 5
threads = 2
logto = /var/log/uwsgi/%n.log
socket = %(base)/GospelForum/askbot.sock
chmod-socket = 664
setuid = www-data
setgid = www-data
vacuum = true
My [Unit]
Description=uWSGI Emperor service
[Service]
ExecStartPre=/bin/bash -c 'mkdir -p /run/uwsgi; chown s930029:www-data /run/uwsgi'
ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites
Restart=always
KillSignal=SIGQUIT
Type=notify
NotifyAccess=all
[Install]
WantedBy=multi-user.target
For explanation: see https://www.digitalocean.com/communit... |
8 years ago | received badge | Famous Question (source) |
8 years ago | received badge | Editor (source) |
8 years ago | commented question | askbot.utils.pluralization receives wrong language code I have the same problem. http://askbot.org/en/question/14927/why-language-code-changed-by-itself/ |
8 years ago | asked a question | Why language code changed by itself? Someday I found that I cann't voteup for somebody. Although the upvote sign turned green, but his karma doesn't go up. In LANGUAGE_CODE = 'zh-TW'
LANGUAGES = (('zh-TW', 'Chinese'),)
And I found that in the database, the Does anyone know how to fix this? |
8 years ago | received badge | Famous Question (source) |
8 years ago | received badge | Famous Question (source) |
8 years ago | received badge | Student (source) |
8 years ago | asked a question | Error while dockerize askbot from git I type git clone https:// github.com/ASKBOT/askbot-devel
cd askbot-devel
docker build -t dockeraskbot .
and then the following errors occurs: Best match: python-daemon 2.1.2
Processing python-daemon-2.1.2.tar.gz
Writing /tmp/easy_install-3yIJTM/python-daemon-2.1.2/setup.cfg
Running python-daemon-2.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3yIJTM/python-daemon-2.1.2/egg-dist-tmp-6AY3Y1
Traceback (most recent call last):
File "setup.py", line 122, in <module>
(**) - With MySQL you have to use MyISAM data backend, because it's the only one that supports Full Text Search."""
File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
.......
File "/usr/local/lib/python2.7/posixpath.py", line 122, in dirname
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
The command '/bin/sh -c python setup.py install' returned a non-zero code: 1
How to solve this issue? |
8 years ago | asked a question | Karma stucks at 1 Hi, I installed Askbot 0.10.1 https:// s21.postimg.org/u3ma3tetz/image.png How to solve this problem? |
8 years ago | received badge | Enthusiast |