Forums

There are no css or images when I use my domain name

could anyone please assist?

What framework are you using?

Are you using static files?

Did it work when using xxx.pythonanywhere.com?

What error do you get?

I am using the django framework which uses static files and yes it works fine with xxx.pythonanywhere.com.

all the errors i get is with static files not being able to be loaded like the stylesheets, scripts and images

Hi,

I don't work for PythonAnywhere, but let me see if I can help. Are you Django settings still pointing to "xxx.pythonanywhere.com"? If not, are you using the Django static filing mapping or the PythonAnywhere one?

Thanks, Robert

It looks like you don't have any static file mappings for your site on a custom domain, only for the tomta20014.pythonanywhere.com one.

Do I have to map it on namecheap.com?

Are you talking about these kind of settings, the ones in my settings.py?

STATIC_URL = '/static/'

STATIC_ROOT = '/home/tomta20014/mysite/static/'

STATICFILES_DIRS = ( '/home/tomta20014/mysite/static_store/', )

I just talked to www.namecheap.com and they told me it was something I had to resolve on this end

If you go to the "Web" tab, then select the website tomta20014.pythonanywhere.com, and look at the "Static files" table, you'll see that you have some static file mappings set up for that web app. If you select your custom domain, and look at the static files for that, you'll see that you don't have any static files set up for that one. If you add static file mappings for the custom domain web app, then it should work.

That exactly did it. Thanks a trillion ;-)