On Fri, Jan 7, 2011 at 10:32 PM, Mo Mughrabi <mo.mughr...@gmail.com> wrote:
> Hi, > > My project is getting quite large with so many apps, so i decided to create > a folder for libs/shared and folder for apps in which libs/shared will > contain all my generic libraries and apps will contain the project specific > apps. > > I found the following > > > http://solutions.treypiepmeier.com/2009/01/08/keep-your-django-applications-in-a-subfolder/ > > and It did the job in enabling me to include apps. I just have to > questions > > 1. How do create a tuple in my settings.py containing all the folders I > need to include (in my case libs/shared and apps) and in manage.py include > them without hard coding the folder names? It seems like the following > function does not take tuples and only accept strings > > sys.path.insert(0, join(settings.PROJECT_ROOT, "apps")) > In your settings.py you can add: sys.path.append(os.path.join(os.path.dirname(__file__), 'lib/shared')) sys.path.append(os.path.join(os.path.dirname(__file__), 'app')) > 2. Will my code works when I move it to production using mod_wsgi? > Yes. > > regards, > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > Thanks, Subhranath Chunder. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.