1

ASKBOT_EXTRA_SKINS_DIR usage

Trying to make a custom skin and after reading the askbot/skins/README, I added this line in settings.py

#ASKBOT_EXTRA_SKINS_DIR = os.path.join(os.path.dirname(__file__), 'askbot', 'skins')
ASKBOT_EXTRA_SKINS_DIR = '/tmp/skins'

... and here is the directory structure. base.html was just copied from askbot module

/tmp/skins/
└── test
    ├── media
    └── templates
        └── base.html

2 directories, 1 file

Now I restart the uwsgi I hit the application trough a browser and in the uwsgi application log file (where I use to see application tracebacks) I have this :

Thu Jan 17 15:55:53 2013 - DAMN ! worker 1 (pid: 1502) died :( trying respawn ...
Thu Jan 17 15:55:53 2013 - Respawned uWSGI worker 1 (new pid: 1514)
Thu Jan 17 15:55:53 2013 - DAMN ! worker 2 (pid: 1509) died :( trying respawn ...
Thu Jan 17 15:55:53 2013 - Respawned uWSGI worker 2 (new pid: 1515)

No error, no traceback, nothing. As the application does not respond, nginx end up with a 502 Bad Gateway

Did I do something wrong with the changes I mentioned here before ?

Is the skin system in beta state ?

Fabien Meghazi's avatar
93
Fabien Meghazi
asked 2013-01-17 09:06:21 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

There is nothing wrong with your settings, but I would start with testing with the django runserver, instead of nginx/uwsgi. If you show that "runserver" works then you know that there is nothing wrong with the setup of the django apps.

I think you have some unrelated issues in your deployment.

Evgeny's avatar
13.2k
Evgeny
answered 2013-01-18 14:40:10 -0600, updated 2013-01-18 14:41:26 -0600
edit flag offensive 0 remove flag delete link

Comments

You're right. I forgot about running in strandalone in order to have helpful debug information. This topic helped me too : http://askbot.org/en/question/7499/askbot_extra_skins_dir-settings-stalls-model/

Fabien Meghazi's avatar Fabien Meghazi (2013-01-21 06:47:18 -0600) edit
add a comment see more comments