Hi Anthony,

It seems my problem is the directory structure setup on pythonanywhere.

But, I just followed the pythonanywhere system of installing web2py apps, I 
didn't actually create the directory structure myself.

Btw, on the web2py.com website I see a similar problem. When you first go 
to the web2py site you land on this URL: http://web2py.com/ then after you 
visit an other page and then go back to the index page, the URL changes to 
this:http://web2py.com/init/default/index
When I create a sitemap, these 2 URLs show up as 2 different pages for the 
same page. I think, this is considered as duplicate content by the search 
engines. 

In any case, can you advise me on how to fix this problem? My directory 
structure is clearly wrong:
/home/username/web2py/applications/my_app_directory/applications/init

Can you please post how the correct structure should look like on 
pythonanywhere?

Thanks again for all your help with this.

Cheers,

Joe

On Sunday, October 15, 2017 at 10:07:51 PM UTC+8, Anthony wrote:
>
> On Friday, October 13, 2017 at 7:22:42 PM UTC-4, Joe wrote:
>>
>> Hi Dave, I have reloaded the apps in web2py if that's what you mean. I 
>> can't restart web2py, I can only reload the apps, I guess.
>> Is there an other way on pythonanywhere? I mean, restarting web2py 
>> instead of reloading the apps?
>>
>> *Re: robots.txt*
>> If I put robots.txt in my static folder the URL will still have to be 
>> *mysite.com/init/static/robots.txt 
>> <http://mysite.com/init/static/robots.txt>* to reach it- this is the 
>> issue I am trying to solve - I am trying have *mysite.com/robots.txt 
>> <http://mysite.com/robots.txt>*
>>
>
> Are you sure you have created /web2py/routes.py as described above and 
> either reloaded the routes via the button in the web2py admin app or 
> reloaded the web app via the PythonAnywhere "Web" tab? Note that routes.py 
> must be in the root /web2py folder.
>
> Anthony
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to