In my settings.py file both the STATIC_ROOT
and MEDIA_ROOT
both currently point to a hard coded location. For example the STATIC_ROOT
path is:
/home/ian/projectname/mysite/appname/static
I know this will cause problems when I deploy my project.
Looking around I can see that I need to make use of os.path
but the countless examples have just confused me.
I have tried to view different permutations of setting this file (or getting the example value as used to set the BASE_DIR) however as the screen shot shows I am missing something because it is complaining about the file value.
In case of need I am using Django 1.6
Thanks in advance.