Try this snippet, it worked for me.
http://djangosnippets.org/snippets/2136/
Then at the bottom of your urls.py, you may need to mess with the media urls:
# relocate the url patterns under settings.ROOT_URL
relocate_site(getattr(settings, 'ROOT_URL', '/'), urlpatterns)
# static file serving - debug only
# do this *after* calling relocate_site, we don't want to relocate the
media urls
urlpatterns += staticfiles_urlpatterns()
On Fri, May 27, 2011 at 03:19, Samy Vilar <[email protected]> wrote:
> Hi, I've really enjoyed Pinax its an amazing project, Im having some
> difficulties deploying my pinax project from a sub-url in essence
> instead of / I need something like /mgt, but I really don't want to
> modify all the urls, Im currently using nginx as the reverse proxy ...
> We really can't create new sub-domains, it would require a ton of red-
> tape so we are trying to deploy the project from a different url...
>
> Please help me I've tried everything including.
> http://stackoverflow.com/questions/3400782/deploying-django-under-a-sub-url-with-nginx-fastcgi
>
> but I get a feedback loop.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Pinax Core Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pinax-core-dev?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Pinax Core Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pinax-core-dev?hl=en.