pytask/settings.py
changeset 394 5684635eaca3
parent 392 2f7d91759bcf
child 398 4d063b3716cf
equal deleted inserted replaced
393:7115235f4060 394:5684635eaca3
    34 # calendars according to the current locale
    34 # calendars according to the current locale
    35 USE_L10N = True
    35 USE_L10N = True
    36 
    36 
    37 # Absolute filesystem path to the directory that will hold user-uploaded files.
    37 # Absolute filesystem path to the directory that will hold user-uploaded files.
    38 # Example: "/home/media/media.lawrence.com/"
    38 # Example: "/home/media/media.lawrence.com/"
    39 MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'static')
    39 MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
    40 
    40 
    41 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
    41 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
    42 # trailing slash if there is a path component (optional in other cases).
    42 # trailing slash if there is a path component (optional in other cases).
    43 # Examples: "http://media.lawrence.com", "http://example.com/media/"
    43 # Examples: "http://media.lawrence.com", "http://example.com/media/"
    44 MEDIA_URL = '/static/'
    44 MEDIA_URL = '/pytask/media/'
       
    45 
       
    46 # Absolute path to the directory that holds static files.
       
    47 # Example: "/home/static-files/static-files.lawrence.com/"
       
    48 STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static')
       
    49 
       
    50 # URL that handles the static files served from STATIC_ROOT. Make sure to use
       
    51 # a trailing slash if there is a path component (optional in other cases).
       
    52 # Examples: "http://static-files.lawrence.com",
       
    53 # "http://example.com/static-files/"
       
    54 STATIC_URL = '/pytask/static/'
    45 
    55 
    46 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
    56 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
    47 # trailing slash.
    57 # trailing slash.
    48 # Examples: "http://foo.com/media/", "/media/".
    58 # Examples: "http://foo.com/media/", "/media/".
    49 ADMIN_MEDIA_PREFIX = '/media/'
    59 ADMIN_MEDIA_PREFIX = '/admin/media/'
    50 
    60 
    51 # Make this unique, and don't share it with anybody.
    61 # Make this unique, and don't share it with anybody.
    52 SECRET_KEY = '^ww=xk&idt)=03kqg*fz8x%=dqbhh1kd2z=f%$m@r9_+9b=&x='
    62 SECRET_KEY = '^ww=xk&idt)=03kqg*fz8x%=dqbhh1kd2z=f%$m@r9_+9b=&x='
    53 
    63 
    54 # List of callables that know how to import templates from various sources.
    64 # List of callables that know how to import templates from various sources.