Lukasz Szybalski wrote: > On Sat, Jun 14, 2008 at 12:45 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: >> Lukasz Szybalski wrote: >>> http://lucasmanual.com/mywiki/Paste >>> >>> Ok. So I created paster create myapp again. >>> >>> /myapp/setup.py I added entry point >>> [paste.paster_create_template] >>> myapp = myapp:FrameworkTemplate >>> >>> what is the difference between these two: >>> myapp = myapp:FrameworkTemplate >>> myapp = myapp.myapp:FrameworkTemplate >> That's just the different locations you might want to put the code in. If >> you put it in myapp/__init__.py, then the first one, if you put it in >> myapp/myapp/__init__.py (or myapp/myapp.py). It's entirely up to you how >> you want to lay out your code. > > paster create --list-templates > Available templates: > basic_package: A basic setuptools-enabled package > myapp: Template for greattt creating a basic Framework package > > > entry point: > myapp = myapp:FrameworkTemplate
Then it's doing effectively "from myapp import FrameworkTemplate" If this doesn't work... well, make sure that import works. Then you won't get an import error. -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
