urls.py independient from application path

2010-12-18 Thread JMVmedia.es
In the urls.py of one application i decided to use this idea. import os APP_DIR = os.path.dirname(os.path.abspath(__file__)) APP_NAME = os.basemane(APP_PATH) I'm not sure about the performance implications of using this os import here. ¿Do you use any similar idea to make applications movab

Planning model for a survey application

2010-12-18 Thread JMVmedia.es
Hi all, I'm planning how to design a model to be used in a survey application. The casic idea is to have some surveys made of questions. I'm not sure about the best choice betweem: a) define Survey class with no foreign key in it and define Question class with a ManyToManyField pointing to Survey