On 12/12/06, Yatla <[EMAIL PROTECTED]> wrote:
>
> Newbie here - saw that the same question was asked earlier but not
> answered, and the post was locked so I could not reply.
>
> I have a Django site in a subdirectory as follows (via fcgi) - (using
> ver 0.96 pre via svn)
>
> http://mydomain.com/dj
>
> When I go into the Admin area as follows
>
> http://mydomain.com/dj/Admin/
>
> The login form that comes up has action="/admin/" (not "/dj/admin"), so
> the post goes to
>
> http://mydomain.com/admin
>
> which is not the Django site.  Somehow the /dg/ subdirectory info is
> not prefixed to the form action.  Is there a configuration with the
> main site prefix that I'm missing somwhere, I ony see path to media to
> be set in tte seetings?
>

Hi Yatla,
Are you using an .htaccess file? I have a site on Dreamhost in which
my Django app live under a sub-url like this:
http://mydomain.com/galeria/

In my .htaccess file (in the 'galeria' folder of the domain) I have
the following rules:

RewriteEngine On
RewriteRule ^(media/.*)$ - [L]
RewriteCond %{REQUEST_URI} !(django.fcgi)
RewriteRule ^(.*)$ django.fcgi/galeria/$1 [L]


Remember that in your urls.py file you will need to include the admin
urls like this:

 (r'^galeria/admin/', include('django.contrib.admin.urls')),


Hope it helps.

Regards,
Jorge

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to