Re: serving admin files in Apache

2018-05-03 Thread sum abiut
Thanks,
i've try that but still doesn't solve the problem

On Fri, May 4, 2018 at 11:51 AM, James Farris 
wrote:

> Did you run
> $ python manage.py collectstatic in your project folder on the server that
> is running Apache?
>
> This add all css, js, and images to the static root folder you specified
> in settings.py
>
> On Thu, May 3, 2018 at 4:40 PM sum abiut  wrote:
>
>> Hi,
>> I have recently setup my django app with Apache. The app files are serve
>> alright but, however when i access the admin page it looks all over the
>> place. Please advise how to i serve the admin files in Apache.
>>
>> Cheers,
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAPCf-y5%2BVkkGo%2BDGHfX2o6Q54Gdfoo_
>> AxNvTcuZEkOziAH2V1A%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAE-E-_1AaYs5HYKxddZ1bf0YQ%3DbE4gvex2-ePSNB43SjNZtfmg%
> 40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y7gHpwnu246na8NWQF_8ZQ3T4yEKuMsbWs7XCiCMtigdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: serving admin files in Apache

2018-05-03 Thread James Farris
Did you run
$ python manage.py collectstatic in your project folder on the server that
is running Apache?

This add all css, js, and images to the static root folder you specified in
settings.py

On Thu, May 3, 2018 at 4:40 PM sum abiut  wrote:

> Hi,
> I have recently setup my django app with Apache. The app files are serve
> alright but, however when i access the admin page it looks all over the
> place. Please advise how to i serve the admin files in Apache.
>
> Cheers,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPCf-y5%2BVkkGo%2BDGHfX2o6Q54Gdfoo_AxNvTcuZEkOziAH2V1A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE-E-_1AaYs5HYKxddZ1bf0YQ%3DbE4gvex2-ePSNB43SjNZtfmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


serving admin files in Apache

2018-05-03 Thread sum abiut
Hi,
I have recently setup my django app with Apache. The app files are serve
alright but, however when i access the admin page it looks all over the
place. Please advise how to i serve the admin files in Apache.

Cheers,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y5%2BVkkGo%2BDGHfX2o6Q54Gdfoo_AxNvTcuZEkOziAH2V1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: serving admin files with Apache/mod_python

2007-09-21 Thread Anurag

Thanks! I added your suggestions in the following way since i am
running on windows

Alias /media/ "C:\Python25\Lib\site-packages\django\contrib\admin\media
\"

 
   Order deny,allow
   Allow from all
 

Am i slashing wrong?


On Sep 21, 4:57 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 21-Sep-07, at 5:13 PM, Anurag wrote:
>
> >   However my admin interface is all garbled up and what i did was i
> > copied the media directory from /admin/media into the htdocs of my
> > Apache setup. But i am still unable to see the admin interface
> > correctly.
>
> coming from php? Never put anything in htdocs. You need an alias like
>
> Alias /media/ "/home/anurag/django_src/django/contrib/admin/media/"
>   
>Order deny,allow
>Allow from all
>  
>
> and in settings.py
> ADMIN_MEDIA_PREFIX = '/media/'
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/


--~--~-~--~~~---~--~~
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: serving admin files with Apache/mod_python

2007-09-21 Thread Anurag

I tried the following in my httpd.conf and it still is not serving any
admin media


SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE satchmo.settings
PythonDebug On


Alias /media/ "C:/Python25/Lib/site-packages/django/contrib/admin/
media/"


   Order deny,allow
   Allow from all
 

On Sep 21, 4:57 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 21-Sep-07, at 5:13 PM, Anurag wrote:
>
> >   However my admin interface is all garbled up and what i did was i
> > copied the media directory from /admin/media into the htdocs of my
> > Apache setup. But i am still unable to see the admin interface
> > correctly.
>
> coming from php? Never put anything in htdocs. You need an alias like
>
> Alias /media/ "/home/anurag/django_src/django/contrib/admin/media/"
>   
>Order deny,allow
>Allow from all
>  
>
> and in settings.py
> ADMIN_MEDIA_PREFIX = '/media/'
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/


--~--~-~--~~~---~--~~
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: serving admin files with Apache/mod_python

2007-09-21 Thread Kenneth Gonsalves


On 21-Sep-07, at 5:13 PM, Anurag wrote:

>   However my admin interface is all garbled up and what i did was i
> copied the media directory from /admin/media into the htdocs of my
> Apache setup. But i am still unable to see the admin interface
> correctly.

coming from php? Never put anything in htdocs. You need an alias like

Alias /media/ "/home/anurag/django_src/django/contrib/admin/media/"
  
   Order deny,allow
   Allow from all
 

and in settings.py
ADMIN_MEDIA_PREFIX = '/media/'


-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



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



serving admin files with Apache/mod_python

2007-09-21 Thread Anurag

hello,
 i am a new user of django and would like some simple worded
instructions on how to serve
the admin interface with Apache and mod_python.

With my current set up i have the following in my httpd.conf:


SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE myapp.settings
PythonDebug On


  This works well for myapp and i am able to use Apache/mod_python
and things are working fine.

However my admin interface is all garbled up and what i did was i
copied the media directory from /admin/media into the htdocs of my
Apache setup. But i am still unable to see the admin interface
correctly.


thanks


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