The Django documentation on setting up static files is at:

https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/modwsgi/#serving-files
 
<https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/modwsgi/#serving-files>
 

I don’t know though specifically how you would use cpanel to setup the Apache 
Alias directive as necessary.

I also don’t know how you would trigger the collectstatic admin command to 
gather together the static files in the directory Apache would be pointed at.

That documentation at least explains in principal what is required.

Graham

> On 23 Jul 2015, at 8:21 pm, Alex Mashianov <[email protected]> wrote:
> 
> Hello guys.
> I'm new here and being coding with python+django for not long time.
> Few days ago i started trying to deploy my first django-site on hosting with 
> cpanel and mod_wsgi in it.
> I linked created python app to my django directory via wsgi-file.
> Now, site works: nc17showballet.com - check it out.
> BUT, it doesnt load any static files other from those that are linked through 
> http-links to youtube and so on.
> I cant load any local css\js files, nor can django load his own static files 
> for admin page, it's crashed too, even though when i used "runserver" on my 
> home machine everything worked fine.
> Can anybody help me with a short hint what should i make for it to work?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/modwsgi 
> <http://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to