hi,

This is not much to go on:  The 'parameters' are called 'context'

You can read: 
https://docs.djangoproject.com/en/2.1/ref/templates/api/

to learn about templates and context.  

adding context in a view is done by adding context to a view as follows:

    def get_context_data(self, *args, **kwargs):
        data = super().get_context_data(*args, **kwargs)
        data['title'] = 'New User Signup'
        data['login_url'] = '/accounts/login/'
        return data

'adjust the page url path' could mean one of two things:
- access the url path in the view (self.request.path) and then adjust 
context accordingly would simply the path this way and adjust 'data'
- change the url to which a page responds or assign a new url to a view - 
this is done in urls.py via a regualr expression.

Please elaborate - you have to provide information to get it.

Regards,

Ira

On Wednesday, December 12, 2018 at 10:21:26 PM UTC-5, lingo...@gmail.com 
wrote:
>
> Hello,
>
> How to send parameters to templates and adjust the page url by path?
>
> regards, 
>
> Saeed
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4e55a15f-6a1b-440b-9b46-64f566a5817f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to