I am doing an app using Django anf python. My web page have to parts. Left parts are for navigation using ajax which brings some data to the right one.On clicking the right side 
it leads to the different URLs.

My url patters are:

```
foo.com/main/
foo.com/main/a/
foo.com/main/a/b/
foo.com/main/a/b/c/

```

When ever I click on the right side it makes an ajax call to bring data. But the URL remains same of the previous one. So, I decided to use #!. 

But My problem is:
Suppose I am on URL `foo.com/main/a/b/` But after ajax call I want the URL to be
`foo.com/main/#!/1/` So, What ever Page I am If i made a ajax call the URL should be

```
foo.com/main/#!/1/ 

```

Is it possible? How?

Thanks