I am trying to upload my Django App to Bluehost and for some reason none of the CSS is working on the admin page, I have been touring the web for hours looking for solutions but I haven't found any specifically tailored to Bluehost or Django 1.6. This Question was the closest thing to what I need but it still isn't working. Django's admin is missing css, images, etc - unable to properly set up static files on shared host All of my static files are now in /public_html/static/, it worked for that person so I am curious to know what I am doing wrong.
Here is the pertinent code
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/
MEDIA_ROOT = '/home/mySite/Django/WebApp/quiz'
MEDIA_URL = '/media/'
STATIC_ROOT = '/home/mySite/public_html/QuizApp/static/'
STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)
After I edited settings.py I did run collectstatic. Also I feel like this may be important as well.
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'tempaltes')]
and the .htaccess file because Bluehost doesn't allow you to access the httpd.conf file
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/static/
RewriteRule ^(.*)$ QuizApp.fcgi/$1 [QSA,L]
If you all need anything else let me know. This is my first experience with web development, python, and CSS in general so please be as detailed as possible I literally know nothing.