On 23/03/2015 9:54 AM, talex wrote:
On second thought maybe using
/python3.3/site-packages/django/contrib/admin/static/admin
directly is not the best practice.

I tried using  collectstatic, but then the admin could not find it.
Please comment.

Here is a collectstatic incantation which works for me ...

/usr/bin/python /var/www/ssds/manage.py collectstatic --settings=ssds.settings.staging --noinput

It properly copies admin static files like this excerpt from my buildbot stdio ...

<snip>

Copying '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/img/icon_searchbox.png'

<snip>

Copying '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/css/base.css' Copying '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/css/dashboard.css'

<snip>

Copying '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/js/SelectBox.js' Copying '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/js/prepopulate.min.js'

<snip>

Copying '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js' Copying '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js'



On Sunday, March 22, 2015 at 3:33:21 PM UTC-7, talex wrote:

    All,

    Thank you.  I had negeleted to enable file serving on Apache for
    ../python3.3/site-packages/django/contrib/admin/static/admin

    I added the stanza:

    Alias /static/admin
    ../python3.3/site-packages/django/contrib/admin/static/admin
      <Directory
    ../python3.3/site-packages/django/contrib/admin/static/admin>
           Require all granted
      </Directory>

    to Apaches's httpd.conf, and now the correct css files are found.

    Thanks again.





    On Saturday, March 21, 2015 at 4:27:13 PM UTC-7, talex wrote:

        While using the Django development server, I like the appearance
        of the admin site from django.contrib.  After deploying the
        application on a remote Apache server however, the appearance of
        admin is very different and I do not like it.  The css files in

        
/usr/local/lib/python3.3/site-packages/django/contrib/admin/static/admin/css

        are identical.

        How can I make the deployed version of admin look like the
        development server version?

        Thanks.


--
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/09edef10-539e-4a22-99f7-2b3d0d733f71%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/09edef10-539e-4a22-99f7-2b3d0d733f71%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/550F4FC5.9090006%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to