Hi all,
Sorry to ask this question but I cant get my static files in Mezzanine to
show up on a Godaddy hosted site e.g http://www.murraybridge.co
I have had to use "pip install flup" and "pip install django-fastcgi-server"
as Godaddy seems to have the fcgi module active on the apache webserver
which I understand is now deprecated.
The .htaccess file is in ~/public_html is ;
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mezproject.fcgi/$1 [QSA,L]
My "mezproject.fcgi" file in ~/public_html is;
*#!/home/vk2acp/code/mez/bin/python*
*import sys, os*
*# Add a custom Python path.*
*sys.path.insert(0, "/home/vk2acp/code/mezproject")*
*# Switch to the directory of your project. (Optional.)*
*os.chdir("/home/vk2acp/code/mezproject")*
*# Set the DJANGO_SETTINGS_MODULE environment variable.*
*os.environ['DJANGO_SETTINGS_MODULE'] = "mezproject.settings"*
*from django_fastcgi.servers.fastcgi import runfastcgi*
*from django.core.servers.basehttp import get_internal_wsgi_application*
*wsgi_application = get_internal_wsgi_application()*
*runfastcgi(wsgi_application, method="prefork", daemonize="false",
minspare=1, maxsp*
*are=1, maxchildren=1)*
The "static" dir exists in the mezproject dir after I did "python manage.py
collectstatic"
I have tried copying static dir to the public_html dir with no effect.
Obviously I cant add the "Alias" directive as I have no control over the
http.conf file.
It seems a pity to get this far and run into this brick wall!!!
Do I have to run the whole mez project from the public_html dir???
Any suggestions?
Best Regards
Anthony
--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/a38ab714-1903-4c92-a5d0-0b1455c29a75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.