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?
Greetings,
Floris.
-----Oorspronkelijk bericht-----
Van: F Wolff [mailto:[email protected]]
Verzonden: woensdag 10 augustus 2011 22:37
Aan: [email protected]
Onderwerp: Re: [translate-pootle] Embed Pootle Stats
Op Wo, 2011-08-10 om 09:50 +0000 skryf Floris van den Hoeven:
>
>
> Hi,
>
> I checked the template folder and checked the HTML files.
> This would indeed be very easy to make such a html template.
> But how can I call for 1 of these templates externally?
You would have to add it in one of the urls.py files in the application
to specify which URL will be rendered by which view method. The view
method supplies the data to the template.
I hope that makes sense. Will you want to base this on Pootle 2.1 or the
current SVN trunk?
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
Carlson EMEA b.v. | Phone +31 (0)36 750 1781 | www.carlsonemea.com
________________________________
[http://www.carlsonemea.com/webimages/ITEM_News.jpg] [Latest CarlsonEMEA
Corporate News] <http://www.carlsonemea.com/index.php/eng/News/Corporate>
[http://www.carlsonemea.com/webimages/ITEM_Product.jpg] [Latest CarlsonEMEA
Product News] <http://www.carlsonemea.com/index.php/eng/News/Product>
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle