Changeset 9139


Ignore:
Timestamp:
May 2, 2011, 3:06:13 PM (14 years ago)
Author:
dennisw
Message:

Structure overhaul part 2; added website folder with the template, changes to urls.py and settings.py.

Location:
src/django_gheat
Files:
24 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/settings.py

    r9051 r9139  
    5555ADMIN_MEDIA_PREFIX = '/media/'
    5656
     57# Absolute path to the directory static files should be collected to.
     58# Don't put anything in this directory yourself; store your static files
     59# in apps' "static/" subdirectories and in STATICFILES_DIRS.
     60# Example: "/home/media/media.lawrence.com/static/"
     61STATIC_ROOT = ''
     62
     63# URL prefix for static files.
     64# Example: "http://media.lawrence.com/static/"
     65STATIC_URL = '/static/'
     66
     67# URL prefix for admin static files -- CSS, JavaScript and images.
     68# Make sure to use a trailing slash.
     69# Examples: "http://foo.com/static/admin/", "/static/admin/".
     70ADMIN_MEDIA_PREFIX = '/static/admin/'
     71
     72# Additional locations of static files
     73STATICFILES_DIRS = (
     74    PROJECT_HOME + '/static',
     75    # Put strings here, like "/home/html/static" or "C:/www/django/static".
     76    # Always use forward slashes, even on Windows.
     77    # Don't forget to use absolute paths, not relative paths.
     78)
     79
     80# List of finder classes that know how to find static files in
     81# various locations.
     82STATICFILES_FINDERS = (
     83    'django.contrib.staticfiles.finders.FileSystemFinder',
     84    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
     85#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
     86)
     87
    5788# Make this unique, and don't share it with anybody.
    5889SECRET_KEY = '=wg@x19kr@26sibiaynb9ax5ddp1&yu^+$3n++^_lz1ms80syb'
     
    71102)
    72103
    73 ROOT_URLCONF = 'django_gheat.gheat.urls'
     104ROOT_URLCONF = 'urls'
    74105
    75106TEMPLATE_DIRS = (
     
    87118    'django.contrib.sites',
    88119    'django_extensions',
    89     'django_gheat.gheat',
     120    'gheat',
     121    'website',
    90122)
    91 
    92 # XXX: Make me dynamic based on the calling location
    93 #GOOGLE_MAPS_KEY = 'ABQIAAAA2icoFs7d_hisx8EBdZy-mxQF3fr7joqA35-x6JbT4Kx-pk-_6xRkPVambEqUO33n_8g9KWVaLKq8UA' # localhost
    94 #GOOGLE_MAPS_KEY = 'ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA' # external ip
    95 GOOGLE_MAPS_KEY = 'ABQIAAAA6NuvWGazX80RVrkSkvrUXBTpH3CbXHjuCVmaTc5MkkU4wO1RRhSZXiYEMqjgwJ9gi_PC8AA-dDGz6g' # 127.0.0.1:8000
    96 
    97 
    98 
Note: See TracChangeset for help on using the changeset viewer.