Re: url_name from resolve in Django 1.2

2010-09-13 Thread SlafS
It seems it's impossible for now. So let me change the question. How to use the already compiled (by Django) url_patterns so i dont have to import and compile the ROOT_URLCONF on every hit of my function? Regards On 9 Wrz, 22:52, SlafS wrote: > Hi there! > > Is there any way to obtain a name

url_name from resolve in Django 1.2

2010-09-09 Thread SlafS
Hi there! Is there any way to obtain a name of an url that Django URL dispatcher matched by resolving (or anything else) e.g. '/path/to/my/page/'? For now resolve returns a tuple :/. I assume that it will be available in 1.3 according to http://docs.djangoproject.com/en/dev/topics/http/urls/#dj