I am owner of: http://dzikuss98.pythonanywhere.com/
I bought external domain for so I could use it with above link: http://www.marcinidzik.com/
How I can set my webapp so it could work under mentioned external domain?
I am owner of: http://dzikuss98.pythonanywhere.com/
I bought external domain for so I could use it with above link: http://www.marcinidzik.com/
How I can set my webapp so it could work under mentioned external domain?
Here you go: http://help.pythonanywhere.com/pages/OwnDomains/
thanks for this, and my page is shown correctly now
although I have an issue now in admin when uploading picture;
przekonania_r5Wl9HJ.png:1 GET http://www.marcinidzik.com/media/uploads/froala_editor/images/przekonania_r5Wl9HJ.png 404 (Not Found)
after changing domain to external mmm.marcinidzik.com it stopped working
this path exists and picture is there also: media/uploads/froala_editor/images/przekonania_r5Wl9HJ.png
how to correct this
You have a static file mapping from STATIC_ROOT
to a directory in your home folder, but the static files system doesn't know anything about your Django settings -- so that's only handling requests that literally go to http://www.marcinidzik.com/STATIC_ROOT
, not requests to the actual static root URL. If you change the "URL" section of that static file mapping to the appropriate URL stub (which I guess is something like /media/
, but you can find out from your settings.py) then it should work.
I am completely lost, this is my settings:
STATIC_URL = '/Static/'
MEDIA_ROOT = os.environ.get('MEDIA_ROOT', os.path.join(BASE_DIR, 'media'))
MEDIA_URL ='/media/'
STATIC_ROOT = "/home/dzikuss98/My-stuff/mysite/personal/Static/"
What should I change here?
[edited by admin: formatting]
Your settings are fine, the problem is on the "Web" tab. In the first line of the "Static files" table, in the "URL" column, you have "STATIC_ROOT". it should be "/Static" instead.
I updated web tab and refreshed page but same issue
2017-05-04 04:14:28,276 :Not Found: /favicon.ico 2017-05-04 04:14:32,544 :Not Found: /favicon.ico 2017-05-04 06:11:10,443 :Not Found: /favicon.ico 2017-05-04 06:12:54,322 :Not Found: /favicon.ico 2017-05-04 06:13:40,303 :Not Found: /media/uploads/froala_editor/images/IMG_20170313_111455.jpg
Hi there, it looks like my colleague was helping you to get /Static urls fixed, but you also need to fix /media URLs. There are some detailed instructions here: http://help.pythonanywhere.com/pages/DjangoStaticFiles
cheers that worked