If we want to make a page to show each group's info in detail, how to specify it? Because we need the group name so that we can retrieve data from database.
Below is the code we have for groups page, and every group url we labeled as *.
{% for group in groups %}<li><p><a href="*">{{ group.groupname }}</a><br>{{ group.description }}{% else %}
And it shows in demo page like that
Any one has any ideas?
I made some changes to the code.
<a href="/info/{{group.groupname}}">{{ group.groupname }}</a><br>
so that each specific page will be marked www.xxxx.com/info/groupname. However, if there are white space in between, I don't know how to escaping it. Any ideas?
If we want to make a page to show each group's info in detail, how to specify it? Because we need the group name so that we can retrieve data from database.
Below is the code we have for groups page, and every group url we labeled as *.
{% for group in groups %}
<li><p>
<a href="*">{{ group.groupname }}</a><br>
{{ group.description }}
{% else %}
And it shows in demo page like that
Any one has any ideas?
I made some changes to the code.
<a href="/info/{{group.groupname}}">{{ group.groupname }}</a><br>
so that each specific page will be marked www.xxxx.com/info/groupname. However, if there are white space in between, I don't know how to escaping it. Any ideas?