Ask Your Question
1

ASKBOT_EXTRA_SKINS_DIR usage

asked 2013-01-17 09:06:21 -0500

Fabien Meghazi gravatar image

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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2013-01-18 14:40:10 -0500

Evgeny gravatar image

updated 2013-01-18 14:41:26 -0500

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.

edit flag offensive delete link more

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 gravatar imageFabien Meghazi ( 2013-01-21 06:47:18 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-01-17 09:06:21 -0500

Seen: 344 times

Last updated: Jan 18 '13