Op Do, 2011-08-11 om 09:37 +0000 skryf Floris van den Hoeven:
> Hi Friedel,
>
> I did the following:
>
> In /root/Pootle-2.1.6/local_apps/pootle_app/views/index I edited URLS.PY
> which now looks like:
> -=-=-=-=-
> urlpatterns = patterns('pootle_app.views.index',
> (r'^robots.txt$', 'robots.view'),
> (r'^about.html$', 'about.view'),
> (r'^stat_project.html$', 'stat_project.view'),
> (r'^stat_language.html$', 'stat_language.view'),
> (r'^stat_people.html$', 'stat_people.view'),
> (r'^/?$|^index.html$', 'index.view'),
> )
> -==-=-=-=-
>
> In /root/Pootle-2.1.6/local_apps/pootle_app/templates/index I added the new
> HTML files.
>
> However, the page does not want to load.
> Am I storing the HTML files in the wrong folder?
If the above is everything you did, you are still missing the view
methods I mentioned earlier. It might be worth while to have a look at
the Django documentation for templates, views and URLs - that would
explain much better than I can.
If you put things in this url.py file, I'm guessing you will be
providing general server statistics instead of anything specific to a
language or project, right?
Friedel
--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/virtaal-070-released
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle