As he pointed out to me above, you need to add <font color="#222222" face="arial, sans-serif">your new package &#39;mynewapp&#39; to the top-level setup.py&#39;s install_requires list, buildout again and then it will appear as another option in the admin gui.</font><div>
<br><div class="gmail_quote">On 16 January 2012 13:33, Christian Schmidt <span dir="ltr">&lt;<a href="mailto:grok-list@creativenet.de">grok-list@creativenet.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Christian,<br>
<br>
first thank you for your reply. I followed your advice but like Matt i have still the same problem for trying to add a second application. Grok answers with the default app. Here is exactly what I did:<br>
<br>
grokproject example<br>
cd example/src<br>
../bin/paster create -t basic_package mynewapp<br>
<br>
This create a new package base stucture unter example/src/mynewapp/mynewapp/<br>
<br>
 __init__py.<br>
<br>
I added there<br>
<br>
app.py<br>
app_templates/<br>
static<br>
configure.zcml<br>
<br>
src/mynewapp/mynewapp/app.py:<br>
<br>
import grok<br>
<br>
#from example import resource<br>
<br>
class Mynewapp(grok.Application, grok.Container):<br>
   pass<br>
<br>
class Index(grok.View):<br>
   def render(self):<br>
&lt;----&gt;return &quot;this is mynewapp&quot;<br>
<br>
src/mynewapp/mynewapp/<u></u>configure.zcml:<div class="im"><br>
<br>
&lt;configure xmlns=&quot;<a href="http://namespaces.zope.org/zope" target="_blank">http://namespaces.zope.<u></u>org/zope</a>&quot;<br>
           xmlns:grok=&quot;<a href="http://namespaces.zope.org/grok" target="_blank">http://namespaces.<u></u>zope.org/grok</a>&quot;&gt;<br>
&lt;include package=&quot;grok&quot; /&gt;<br></div>
&lt;includeDependencies package=&quot;.&quot; /&gt;<div class="im"><br>
&lt;grok:grok package=&quot;.&quot; /&gt;<br>
&lt;/configure&gt;<br>
<br></div>
finally i changed the example/buildout.cfg:<br>
<br>
develop = . src/mynewapp<br>
<br>
[app]<br>
eggs =<br>
added -&gt;        mynewapp<br>
<br>
AND<br>
<br>
site.zcml =&lt;include package=&quot;mynewapp&quot;/&gt;<br>
<br>
then ran bin/buildout<br>
<br>
returned:<br>
<br>
Develop: &#39;/usr/home/chris_dev/example/.<u></u>&#39;<br>
Develop: &#39;/usr/home/chris_dev/example/<u></u>src/mynewapp&#39;<br>
<br>
started the application and added mynewapp under UI:<br>
-&gt; mynewapp (example.app.Example)<br>
<br>
<a href="http://127.0.0.1:8080/mynewapp/index" target="_blank">http://127.0.0.1:8080/<u></u>mynewapp/index</a> returned the default application.<br>
<br>
 -&gt; example/app_templates/<a href="http://index.pt" target="_blank">index.pt</a> (<a href="http://index.pt" target="_blank">index.pt</a>)<br>
<br>
If i change src/mynewapp/mynewapp/app.py: to -&gt; Index1(grok.View):<br>
the page was not found.<br>
<br>
I would be thankful, if you have further ideas or solutions.<br>
<br>
Kind regard<br>
<br>_______________________________________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">https://mail.zope.org/mailman/listinfo/grok-dev</a><br>
<br></blockquote></div><br></div>