# In settings.py
PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
ROOT_DIR = os.path.split(PROJECT_DIR)[0]
MEDIA_ROOT = ROOT_DIR + '/static/'
MEDIA_URL = '/static/'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
PROJECT_DIR + '/templates/',
)
python
1
# In settings.pyPROJECT_DIR=os.path.abspath(os.path.dirname(__file__))ROOT_DIR=os.path.split(PROJECT_DIR)[0]MEDIA_ROOT=ROOT_DIR+'/static/'MEDIA_URL='/static/'TEMPLATE_DIRS=(# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".# Always use forward slashes, even on Windows.# Don't forget to use absolute paths, not relative paths.PROJECT_DIR+'/templates/',)
Hey there! I see you're running Internet Explorer 6.
That's neat. This reminds me of my grandpa. He had this old car that he kept having to fix. He spent so much money on it that he didn't want to get rid of it (even when it stopped running).
0 Comments