[Distutils] [buildout] pythonpath

John Griessen john at industromatic.com
Wed Mar 17 18:15:03 CET 2010


Reinout van Rees wrote:
> On 03/17/2010 04:39 PM, John Griessen wrote:
>> I've got a buildout config partially working, but missing
>> ability to find some views.
>
> First things first: check your bin/django file to see if you miss things 
> from the PYTHON path side of things.  If that's the full list you 
> expect, then you can look further in the django settings.
> 
>> INSTALLED_APPS = (
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.admin',
>> )
> 
> Apps that aren't listed here aren't searched for templates: is this the 
> full list?  You might want to add your "site project" here, too.
> 


>> TEMPLATE_LOADERS = (
>> 'django.template.loaders.filesystem.load_template_source',
>> 'django.template.loaders.app_directories.load_template_source',
>> )
> 
> I'm missing the egg loader template source that's here by default. 
> Perhaps that one helps?
> 
> 
> Reinout
> 
> 

My bin/django file does not have a path to admin templates


--------------------
#!/usr/bin/python

import sys
sys.path[0:0] = [
   '/home/john/buildout/eggs/mock-0.6.0-py2.5.egg',
   '/home/john/buildout/eggs/django_notification-0.1.5-py2.5.egg',
   '/home/john/buildout/eggs/django_page_cms-1.1.2-py2.5.egg',
   '/home/john/buildout/eggs/django_haystack-1.0.1_final-py2.5.egg',
   '/home/john/buildout/eggs/djangorecipe-0.20-py2.5.egg',
   '/home/john/buildout/eggs/zc.recipe.egg-1.2.2-py2.5.egg',
   '/home/john/buildout/eggs/zc.buildout-1.4.3-py2.5.egg',
   '/home/john/buildout/eggs/django_staticfiles-0.2.0-py2.5.egg',
   '/home/john/buildout/eggs/django_authority-0.4-py2.5.egg',
   '/home/john/WEBprojects/cottagematic_bld/src-untouched/django-mptt',
   '/home/john/buildout/eggs/django_tagging-0.3.1-py2.5.egg',
   '/home/john/buildout/eggs/html5lib-0.90-py2.5.egg',
   '/home/john/WEBprojects/cottagematic_bld/parts/django',
   '/home/john/buildout/eggs/BeautifulSoup-3.1.0.1-py2.5.egg',
   '/usr/lib/python2.5/site-packages',
   '/home/john/WEBprojects/cottagematic_bld/parts/django',
   '/home/john/WEBprojects/cottagematic_bld',
   ]

import djangorecipe.manage

if __name__ == '__main__':
     djangorecipe.manage.main('cottagematic_com.development')
------------------------------------

the pythonpath when error happens has

cottagematic_bld/parts/django'
cottagematic_bld/src-untouched/django-mptt'
cottagematic_bld
cottagematic_bld/bin

I think it needs cottagematic_bld/cottagematic_com
the project directory.




More information about the Distutils-SIG mailing list