Hello, 


after considerable struggle to get my Apache mod-wsgi and httpd.conf 
configuration correct so that my static files can be accessed, now my admin 
pages don't work....while the admin page content loads, I have no css, js, 
or images...And, the list of my pages will not show up..

*httpd.conf*

<VirtualHost 129.24.36.34:80>

#/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin

        ServerName epswww1.unm.edu
        DocumentRoot /home/eps_admin/epsWeb/epsWeb/site-media

        Alias /site-media/ /home/eps_admin/epsWeb/epsWeb/site-media/
        Alias /images/ /home/eps_admin/epsWeb/epsWeb/site-media/images/
        Alias /media/ /home/eps_admin/epsWeb/epsWeb/site-media/

        WSGIScriptAlias / /home/eps_admin/epsWeb/epsWeb/wsgi.py

        ErrorLog ${APACHE_LOG_DIR}/static_error.log
        LogLevel warn

      # serve static stuff from here
          <Directory /home/eps_admin/epsWeb/epsWeb>
           #AllowOverride None
           Order deny,allow
           Allow from all
          </Directory>

</VirtualHost>


*relevant info from settings.py*

MEDIA_ROOT = os.path.join(PROJECT_PATH, "site-media")
MEDIA_URL = "/site-media/"
STATIC_ROOT = os.path.join("/home/eps_admin/epsWeb/epsWeb/static/")
STATIC_URL = '/static/'

# Additional locations of static files
STATICFILES_DIRS = (
    os.path.join(BASE_DIR,"static"),
)

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

Any help appreciated....

Thanks, Wilbur

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/d6c97b56-3e55-41e7-b67b-e03701988c32%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to