On Oct 6, 5:35 pm, Joe Murphy <joe.mur...@gmail.com> wrote: > Okay, so I've got my django project "bar" installed in, say,www.foo.com/bar/ > . I'm going to install another project inwww.foo.com, so I have nginx > using /bar/ as the root for the bar. This works fine for everything > except... the django admin, which is at /bar/admin/ . > > The markup in the admin is tuned to being installed in /admin/, not / > bar/admin/ . That means that form submissions, which are hard-coded to > redirect based on the admin being in /admin/, break. > > I'm going to eventually have another admin instance in /admin/, so > redirecting requests isn't an option. > > I can't imagine this is the first time this has came up, and I can > imagine the idea that there's something really obvious that I'm > missing (I just can't imagine what that really obvious something is). > > Any ideas? > > Thanks, > Joe
The admin urls are certainly not hard-coded to redirect based on / admin/. All the URLs are calculated via the reverse lookup functionality, which normally works transparently with wherever you have installed your site. Are you using mod_wsgi? If so, there must be something wrong with your configuration. Can you post your .wsgi file? -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.