Re: Django admin broken after putting into production

2014-02-11 Thread bhudspeth60
Thank you .collectstatic did the trick...

On Tuesday, February 11, 2014 2:39:59 PM UTC-7, Glyn Jackson wrote:
>
> Silly question, don't be offended, but have you run 
> collectstaticon
>  your production server?
>>
>

-- 
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/61735b69-5e60-4345-b824-0c2b25bdfa68%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django admin broken after putting into production

2014-02-11 Thread Glyn Jackson

>
> Silly question, don't be offended, but have you run 
> collectstaticon
>  your production server?
>

-- 
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/0d9f10d8-efbf-477f-a3db-9385b6e51298%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Django admin broken after putting into production

2014-02-11 Thread bhudspeth60


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 workwhile the admin page content loads, I have no css, js, 
or images...And, the list of my pages will not show up..

*httpd.conf*



#/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
  
   #AllowOverride None
   Order deny,allow
   Allow from all
  




*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 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/d6c97b56-3e55-41e7-b67b-e03701988c32%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.