Re: django not reading css after switch to apache

2008-11-11 Thread Brandon Martin


 I have this is my apache virtualhost:   
 SetHandler None
 Brandon  
 On Tue, 11 Nov 2008 15:09:22 -0500, "Keith Eberle" wrote:Alias
/media /home/dev//Django-1.0/django/contrib/admin/media
   ^
 could be that extra slash.  i assume you reloaded apache after the
change?  
 keith
  On Tue, Nov 11, 2008 at 2:55 PM, prem1er  wrote:
 Still no good.  Is this what you wanted me to do?
ServerName www.dev.xxx.us [2]
 ServerAlias dev.xxx.us [3]
DocumentRoot /home/dev/djprojects/xxx
  Alias /media /home/dev//Django-1.0/django/contrib/admin/media
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_python .py
PythonDebug On
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE
xxx.settings
PythonDebug On
PythonPath "['/home/dev/djprojects'] + sys.path"
   On Nov 11, 2:29 pm, "Keith Eberle"  wrote:
 > You can add an alias in the directive that maps to where the
 > admin media files are.  Like so:
 >
 > Alias /media /home/dev//Django-1.0/django/contrib/admin/media
 >
 > keith
 >
> On Tue, Nov 11, 2008 at 2:15 PM, prem1er  wrote:
 >
 > > This is the location of my css files. 
/home/dev//Django-1.0/django/
 > > contrib/...
 >
 > > On Nov 11, 1:49 pm, prem1er  wrote:
 > > > Just got django to work on apache thanks to everyone on this
group.
 > > > After I switched, I can no longer get the CSS to work with the
admin
 > > > page or the 'polls' from the tutorial.  Here is my apache
config.
 > > > When I run the same site from my localhost on django's server
 > > > everything is fine.
 >
 > > > 
 > > > ServerNamewww.dev.xxx.us [6]
 > > > ServerAlias dev.xxx.us [3]
 > > > DocumentRoot /home/dev/djprojects/xxx
 > > >   
 
 > > > Options Indexes FollowSymLinks MultiViews
 > > > AllowOverride None
 > > > Order allow,deny
 > > > allow from all
 > > > AddHandler mod_python .py
 > > > PythonDebug On
 > > > 
 > > > 
 > > > SetHandler python-program
 > > > PythonHandler django.core.handlers.modpython
 > > > SetEnv DJANGO_SETTINGS_MODULE xxx.settings
 > > > PythonDebug On
 > > > PythonPath "['/home/dev/djprojects'] +
sys.path"
 > > > 
 > > > 
 >
 >
  

Links:
--
[1] mailto:[EMAIL PROTECTED]
[2] http://www.dev.xxx.us
[3] http://dev.xxx.us
[4] mailto:[EMAIL PROTECTED]
[5] mailto:[EMAIL PROTECTED]
[6] http://ServerNamewww.dev.xxx.us

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: django not reading css after switch to apache

2008-11-11 Thread Keith Eberle
Here's one of my sites, works fine for me:

NameVirtualHost *

ServerName xx.com
ServerAlias www.xx.com

ServerAdmin [EMAIL PROTECTED]

DocumentRoot /var/www/

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /site_media /home/django/django-projects/xx/media
Alias /media /home/django/django-trunk/django/contrib/admin/media


SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE xx.settings
PythonDebug On
PythonPath "['/home/django/django-projects',
'/home/django/django-projects/xx'] + sys.path"




keith


On Tue, Nov 11, 2008 at 3:18 PM, prem1er <[EMAIL PROTECTED]> wrote:

>
> No sorry that extra slash was removed and yes I did reload apache and
> clear my cache on the browser.
>
> On Nov 11, 3:09 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> > Alias /media /home/dev//Django-1.0/django/contrib/admin/media
> >   ^
> > could be that extra slash.  i assume you reloaded apache after the
> change?
> >
> > keith
> >
> > On Tue, Nov 11, 2008 at 2:55 PM, prem1er <[EMAIL PROTECTED]>
> wrote:
> >
> > > Still no good.  Is this what you wanted me to do?
> >
> > > 
> > >ServerNamewww.dev.xxx.us
> > > ServerAlias dev.xxx.us
> > >DocumentRoot /home/dev/djprojects/xxx
> > > Alias /media /home/dev//Django-1.0/django/contrib/admin/media
> > > 
> > >Options Indexes FollowSymLinks MultiViews
> > >AllowOverride None
> > >Order allow,deny
> > >allow from all
> > >AddHandler mod_python .py
> > >PythonDebug On
> > >
> > >
> > >SetHandler python-program
> > >PythonHandler django.core.handlers.modpython
> > >SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> > >PythonDebug On
> > >PythonPath "['/home/dev/djprojects'] + sys.path"
> > >
> > > 
> >
> > > On Nov 11, 2:29 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> > > > You can add an alias in the  directive that maps to
> where
> > > the
> > > > admin media files are.  Like so:
> >
> > > > Alias /media /home/dev//Django-1.0/django/contrib/admin/media
> >
> > > > keith
> >
> > > > On Tue, Nov 11, 2008 at 2:15 PM, prem1er <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > This is the location of my css files.
>  /home/dev//Django-1.0/django/
> > > > > contrib/...
> >
> > > > > On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote:
> > > > > > Just got django to work on apache thanks to everyone on this
> group.
> > > > > > After I switched, I can no longer get the CSS to work with the
> admin
> > > > > > page or the 'polls' from the tutorial.  Here is my apache config.
> > > > > > When I run the same site from my localhost on django's server
> > > > > > everything is fine.
> >
> > > > > > 
> > > > > > ServerNamewww.dev.xxx.us
> > > > > > ServerAlias dev.xxx.us
> > > > > > DocumentRoot /home/dev/djprojects/xxx
> > > > > > 
> > > > > > Options Indexes FollowSymLinks MultiViews
> > > > > > AllowOverride None
> > > > > > Order allow,deny
> > > > > > allow from all
> > > > > > AddHandler mod_python .py
> > > > > > PythonDebug On
> > > > > > 
> > > > > > 
> > > > > > SetHandler python-program
> > > > > > PythonHandler django.core.handlers.modpython
> > > > > > SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> > > > > > PythonDebug On
> > > > > > PythonPath "['/home/dev/djprojects'] + sys.path"
> > > > > > 
> > > > > > 
> >
> >
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: django not reading css after switch to apache

2008-11-11 Thread Brian Neal

On Nov 11, 1:15 pm, prem1er <[EMAIL PROTECTED]> wrote:
> This is the location of my css files.  /home/dev//Django-1.0/django/
> contrib/...
>
> On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote:
>
>
>
> > Just got django to work on apache thanks to everyone on this group.
> > After I switched, I can no longer get the CSS to work with the admin
> > page or the 'polls' from the tutorial.  Here is my apache config.
> > When I run the same site from my localhost on django's server
> > everything is fine.
>
> > 
> >     ServerNamewww.dev.xxx.us
> >     ServerAlias dev.xxx.us
> >     DocumentRoot /home/dev/djprojects/xxx
> >         
> >                 Options Indexes FollowSymLinks MultiViews
> >                 AllowOverride None
> >                 Order allow,deny
> >                 allow from all
> >                 AddHandler mod_python .py
> >                 PythonDebug On
> >         
> >         
> >                 SetHandler python-program
> >                 PythonHandler django.core.handlers.modpython
> >                 SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> >                 PythonDebug On
> >                 PythonPath "['/home/dev/djprojects'] + sys.path"
> >         
> > - Hide quoted text -
>

Did you read this?

http://docs.djangoproject.com/en/dev/howto/deployment/modpython/

In particular look at the section on serving media files.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: django not reading css after switch to apache

2008-11-11 Thread Keith Eberle
Alias /media /home/dev//Django-1.0/django/contrib/admin/media
  ^
could be that extra slash.  i assume you reloaded apache after the change?

keith


On Tue, Nov 11, 2008 at 2:55 PM, prem1er <[EMAIL PROTECTED]> wrote:

>
> Still no good.  Is this what you wanted me to do?
>
> 
>ServerName www.dev.xxx.us
> ServerAlias dev.xxx.us
>DocumentRoot /home/dev/djprojects/xxx
> Alias /media /home/dev//Django-1.0/django/contrib/admin/media
> 
>Options Indexes FollowSymLinks MultiViews
>AllowOverride None
>Order allow,deny
>allow from all
>AddHandler mod_python .py
>PythonDebug On
>
>
>SetHandler python-program
>PythonHandler django.core.handlers.modpython
>SetEnv DJANGO_SETTINGS_MODULE xxx.settings
>PythonDebug On
>PythonPath "['/home/dev/djprojects'] + sys.path"
>
> 
>
> On Nov 11, 2:29 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> > You can add an alias in the  directive that maps to where
> the
> > admin media files are.  Like so:
> >
> > Alias /media /home/dev//Django-1.0/django/contrib/admin/media
> >
> > keith
> >
> > On Tue, Nov 11, 2008 at 2:15 PM, prem1er <[EMAIL PROTECTED]>
> wrote:
> >
> > > This is the location of my css files.  /home/dev//Django-1.0/django/
> > > contrib/...
> >
> > > On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote:
> > > > Just got django to work on apache thanks to everyone on this group.
> > > > After I switched, I can no longer get the CSS to work with the admin
> > > > page or the 'polls' from the tutorial.  Here is my apache config.
> > > > When I run the same site from my localhost on django's server
> > > > everything is fine.
> >
> > > > 
> > > > ServerNamewww.dev.xxx.us
> > > > ServerAlias dev.xxx.us
> > > > DocumentRoot /home/dev/djprojects/xxx
> > > > 
> > > > Options Indexes FollowSymLinks MultiViews
> > > > AllowOverride None
> > > > Order allow,deny
> > > > allow from all
> > > > AddHandler mod_python .py
> > > > PythonDebug On
> > > > 
> > > > 
> > > > SetHandler python-program
> > > > PythonHandler django.core.handlers.modpython
> > > > SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> > > > PythonDebug On
> > > > PythonPath "['/home/dev/djprojects'] + sys.path"
> > > > 
> > > > 
> >
> >
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: django not reading css after switch to apache

2008-11-11 Thread prem1er

No sorry that extra slash was removed and yes I did reload apache and
clear my cache on the browser.

On Nov 11, 3:09 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> Alias /media /home/dev//Django-1.0/django/contrib/admin/media
>                                               ^
> could be that extra slash.  i assume you reloaded apache after the change?
>
> keith
>
> On Tue, Nov 11, 2008 at 2:55 PM, prem1er <[EMAIL PROTECTED]> wrote:
>
> > Still no good.  Is this what you wanted me to do?
>
> > 
> >    ServerNamewww.dev.xxx.us
> >     ServerAlias dev.xxx.us
> >    DocumentRoot /home/dev/djprojects/xxx
> >     Alias /media /home/dev//Django-1.0/django/contrib/admin/media
> >         
> >                Options Indexes FollowSymLinks MultiViews
> >                AllowOverride None
> >                Order allow,deny
> >                allow from all
> >                AddHandler mod_python .py
> >                PythonDebug On
> >        
> >        
> >                SetHandler python-program
> >                PythonHandler django.core.handlers.modpython
> >                SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> >                PythonDebug On
> >                PythonPath "['/home/dev/djprojects'] + sys.path"
> >        
> > 
>
> > On Nov 11, 2:29 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> > > You can add an alias in the  directive that maps to where
> > the
> > > admin media files are.  Like so:
>
> > > Alias /media /home/dev//Django-1.0/django/contrib/admin/media
>
> > > keith
>
> > > On Tue, Nov 11, 2008 at 2:15 PM, prem1er <[EMAIL PROTECTED]>
> > wrote:
>
> > > > This is the location of my css files.  /home/dev//Django-1.0/django/
> > > > contrib/...
>
> > > > On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote:
> > > > > Just got django to work on apache thanks to everyone on this group.
> > > > > After I switched, I can no longer get the CSS to work with the admin
> > > > > page or the 'polls' from the tutorial.  Here is my apache config.
> > > > > When I run the same site from my localhost on django's server
> > > > > everything is fine.
>
> > > > > 
> > > > >     ServerNamewww.dev.xxx.us
> > > > >     ServerAlias dev.xxx.us
> > > > >     DocumentRoot /home/dev/djprojects/xxx
> > > > >         
> > > > >                 Options Indexes FollowSymLinks MultiViews
> > > > >                 AllowOverride None
> > > > >                 Order allow,deny
> > > > >                 allow from all
> > > > >                 AddHandler mod_python .py
> > > > >                 PythonDebug On
> > > > >         
> > > > >         
> > > > >                 SetHandler python-program
> > > > >                 PythonHandler django.core.handlers.modpython
> > > > >                 SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> > > > >                 PythonDebug On
> > > > >                 PythonPath "['/home/dev/djprojects'] + sys.path"
> > > > >         
> > > > > 
>
>
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: django not reading css after switch to apache

2008-11-11 Thread prem1er

Still no good.  Is this what you wanted me to do?


ServerName www.dev.xxx.us
ServerAlias dev.xxx.us
DocumentRoot /home/dev/djprojects/xxx
Alias /media /home/dev//Django-1.0/django/contrib/admin/media

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_python .py
PythonDebug On


SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE xxx.settings
PythonDebug On
PythonPath "['/home/dev/djprojects'] + sys.path"



On Nov 11, 2:29 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> You can add an alias in the  directive that maps to where the
> admin media files are.  Like so:
>
> Alias /media /home/dev//Django-1.0/django/contrib/admin/media
>
> keith
>
> On Tue, Nov 11, 2008 at 2:15 PM, prem1er <[EMAIL PROTECTED]> wrote:
>
> > This is the location of my css files.  /home/dev//Django-1.0/django/
> > contrib/...
>
> > On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote:
> > > Just got django to work on apache thanks to everyone on this group.
> > > After I switched, I can no longer get the CSS to work with the admin
> > > page or the 'polls' from the tutorial.  Here is my apache config.
> > > When I run the same site from my localhost on django's server
> > > everything is fine.
>
> > > 
> > >     ServerNamewww.dev.xxx.us
> > >     ServerAlias dev.xxx.us
> > >     DocumentRoot /home/dev/djprojects/xxx
> > >         
> > >                 Options Indexes FollowSymLinks MultiViews
> > >                 AllowOverride None
> > >                 Order allow,deny
> > >                 allow from all
> > >                 AddHandler mod_python .py
> > >                 PythonDebug On
> > >         
> > >         
> > >                 SetHandler python-program
> > >                 PythonHandler django.core.handlers.modpython
> > >                 SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> > >                 PythonDebug On
> > >                 PythonPath "['/home/dev/djprojects'] + sys.path"
> > >         
> > > 
>
>
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: django not reading css after switch to apache

2008-11-11 Thread Keith Eberle
You can add an alias in the  directive that maps to where the
admin media files are.  Like so:

Alias /media /home/dev//Django-1.0/django/contrib/admin/media

keith


On Tue, Nov 11, 2008 at 2:15 PM, prem1er <[EMAIL PROTECTED]> wrote:

>
> This is the location of my css files.  /home/dev//Django-1.0/django/
> contrib/...
>
> On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote:
> > Just got django to work on apache thanks to everyone on this group.
> > After I switched, I can no longer get the CSS to work with the admin
> > page or the 'polls' from the tutorial.  Here is my apache config.
> > When I run the same site from my localhost on django's server
> > everything is fine.
> >
> > 
> > ServerNamewww.dev.xxx.us
> > ServerAlias dev.xxx.us
> > DocumentRoot /home/dev/djprojects/xxx
> > 
> > Options Indexes FollowSymLinks MultiViews
> > AllowOverride None
> > Order allow,deny
> > allow from all
> > AddHandler mod_python .py
> > PythonDebug On
> > 
> > 
> > SetHandler python-program
> > PythonHandler django.core.handlers.modpython
> > SetEnv DJANGO_SETTINGS_MODULE xxx.settings
> > PythonDebug On
> > PythonPath "['/home/dev/djprojects'] + sys.path"
> > 
> > 
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: django not reading css after switch to apache

2008-11-11 Thread prem1er

This is the location of my css files.  /home/dev//Django-1.0/django/
contrib/...

On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote:
> Just got django to work on apache thanks to everyone on this group.
> After I switched, I can no longer get the CSS to work with the admin
> page or the 'polls' from the tutorial.  Here is my apache config.
> When I run the same site from my localhost on django's server
> everything is fine.
>
> 
>     ServerNamewww.dev.xxx.us
>     ServerAlias dev.xxx.us
>     DocumentRoot /home/dev/djprojects/xxx
>         
>                 Options Indexes FollowSymLinks MultiViews
>                 AllowOverride None
>                 Order allow,deny
>                 allow from all
>                 AddHandler mod_python .py
>                 PythonDebug On
>         
>         
>                 SetHandler python-program
>                 PythonHandler django.core.handlers.modpython
>                 SetEnv DJANGO_SETTINGS_MODULE xxx.settings
>                 PythonDebug On
>                 PythonPath "['/home/dev/djprojects'] + sys.path"
>         
> 
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



django not reading css after switch to apache

2008-11-11 Thread prem1er

Just got django to work on apache thanks to everyone on this group.
After I switched, I can no longer get the CSS to work with the admin
page or the 'polls' from the tutorial.  Here is my apache config.
When I run the same site from my localhost on django's server
everything is fine.


ServerName www.dev.xxx.us
ServerAlias dev.xxx.us
DocumentRoot /home/dev/djprojects/xxx

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_python .py
PythonDebug On


SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE xxx.settings
PythonDebug On
PythonPath "['/home/dev/djprojects'] + sys.path"



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---