Yes.
#!/usr/bin/python
routers = dict(
BASE = dict(
default_application='myapp',
)
)
On Wednesday, 16 January 2013 18:24:05 UTC-5, Daniel Gonzalez wrote:
>
> Have you modified the routes.py file?
>
> On Wednesday, January 16, 2013 11:39:55 PM UTC+1, GeeksRule wrote:
>>
>> I think I'm doing something silly. For the first time now I'm moving away
>> from the "default" controller.
>> I've created a new controller called "fromuser.py", there is a single
>> function in it : "def submitAStory():" which returns a form.
>>
>> When I hit : http://site.com/myapp/fromuser/submitAStory
>> It gives me an error : "invalid function (default/fromuser)"
>>
>> I think it is still trying to go into the "default" controller.
>>
>> Note : I have created a view called* fromuser/submitAStory.html*
>> *
>> *
>> Any pointers ?*
>> *
>>
>
--