> Having your URLs end with a slash is good. It looks better and shortens
> your pages address. Also, in the future, you may find that not all of
> your pages are going to be text/html.
While I'm ambivalent about the trailing slash (the below assumes
that it's disabled), many of my urls/views
Mathieu Poussin wrote:
> Hello ,
> i have a question,
> by default , django add a slash at the end of the url , like that :
> http://my/documents/hello -> http://my/documents/hello/
>
> it's possible to add .html instead of that ? like that :
> http://my/documents/hello ->
set APPEND_SLASH=False
(r'^documents/([\w_]+)\.html', 'some_view', {})
On Oct 17, 1:47 pm, Mathieu Poussin <[EMAIL PROTECTED]> wrote:
> Hello ,
> i have a question,
> by default , django add a slash at the end of the url , like that
> :http://my/documents/hello->http://my/documents/hello/
>
>
Hello ,
i have a question,
by default , django add a slash at the end of the url , like that :
http://my/documents/hello -> http://my/documents/hello/
it's possible to add .html instead of that ? like that :
http://my/documents/hello -> http://my/documents/hello.html
if yes, how ?
thanks ,
Django has an excellent starter tutorial at
http://www.djangoproject.com/documentation/tutorial01/ that should get
you started with what you're asking and want to know. Do the tutorial,
it's worth it.
-joe
On 9/23/07, mayank bhargava <[EMAIL PROTECTED]> wrote:
>
> How to use
How to use html or how to create dunamic html pages with django ?
best regards
mayank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
6 matches
Mail list logo