Friday, September 13, 2013

url path becomes longer and longer

Hi,

i'm wondering why after every click the url become longer.


In the project urls.py I have something like:
url(r'^reporting/', include('reporting.urls')),

In the app urls.py something like:
url(r'total', views.total,name='total'),

In the app reporting views I use render:
return render(request,'reporting/activity.html',.....)


So it works but I'm wondering why after click around between the reporting views  some time, I have  a url like this.

So django append every time a /reporting to the url. Might be not perfect?

Thanks
Christian




--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate