Commits

Josh VanderLinden committed b8bf53b

Adding a demo site

Comments (0)

Files changed (250)

Empty file added.

Binary file added.

+#!/usr/bin/env python
+from django.core.management import execute_manager
+try:
+    import settings # Assumed to be in the same directory.
+except ImportError:
+    import sys
+    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+    sys.exit(1)
+
+if __name__ == "__main__":
+    execute_manager(settings)
Add a comment to this file

demo/media/images/flags/_ASEAN.png

Added
New image
Add a comment to this file

demo/media/images/flags/_African Union(OAS).png

Added
New image
Add a comment to this file

demo/media/images/flags/_Arab League.png

Added
New image
Add a comment to this file

demo/media/images/flags/_CARICOM.png

Added
New image
Add a comment to this file

demo/media/images/flags/_CIS.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Commonwealth.png

Added
New image
Add a comment to this file

demo/media/images/flags/_England.png

Added
New image
Add a comment to this file

demo/media/images/flags/_European Union.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Islamic Conference.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Kosovo.png

Added
New image
Add a comment to this file

demo/media/images/flags/_NATO.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Northern Cyprus.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Northern Ireland.png

Added
New image
Add a comment to this file

demo/media/images/flags/_OPEC.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Olimpic Movement.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Red Cross.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Scotland.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Somaliland.png

Added
New image
Add a comment to this file

demo/media/images/flags/_United Nations.png

Added
New image
Add a comment to this file

demo/media/images/flags/_Wales.png

Added
New image
Add a comment to this file

demo/media/images/flags/ad.png

Added
New image
Add a comment to this file

demo/media/images/flags/ae.png

Added
New image
Add a comment to this file

demo/media/images/flags/af.png

Added
New image
Add a comment to this file

demo/media/images/flags/ag.png

Added
New image
Add a comment to this file

demo/media/images/flags/ai.png

Added
New image
Add a comment to this file

demo/media/images/flags/al.png

Added
New image
Add a comment to this file

demo/media/images/flags/am.png

Added
New image
Add a comment to this file

demo/media/images/flags/an.png

Added
New image
Add a comment to this file

demo/media/images/flags/ao.png

Added
New image
Add a comment to this file

demo/media/images/flags/aq.png

Added
New image
Add a comment to this file

demo/media/images/flags/ar.png

Added
New image
Add a comment to this file

demo/media/images/flags/as.png

Added
New image
Add a comment to this file

demo/media/images/flags/at.png

Added
New image
Add a comment to this file

demo/media/images/flags/au.png

Added
New image
Add a comment to this file

demo/media/images/flags/aw.png

Added
New image
Add a comment to this file

demo/media/images/flags/az.png

Added
New image
Add a comment to this file

demo/media/images/flags/ba.png

Added
New image
Add a comment to this file

demo/media/images/flags/bb.png

Added
New image
Add a comment to this file

demo/media/images/flags/bd.png

Added
New image
Add a comment to this file

demo/media/images/flags/be.png

Added
New image
Add a comment to this file

demo/media/images/flags/bf.png

Added
New image
Add a comment to this file

demo/media/images/flags/bg.png

Added
New image
Add a comment to this file

demo/media/images/flags/bh.png

Added
New image
Add a comment to this file

demo/media/images/flags/bi.png

Added
New image
Add a comment to this file

demo/media/images/flags/bj.png

Added
New image
Add a comment to this file

demo/media/images/flags/bm.png

Added
New image
Add a comment to this file

demo/media/images/flags/bn.png

Added
New image
Add a comment to this file

demo/media/images/flags/bo.png

Added
New image
Add a comment to this file

demo/media/images/flags/br.png

Added
New image
Add a comment to this file

demo/media/images/flags/bs.png

Added
New image
Add a comment to this file

demo/media/images/flags/bt.png

Added
New image
Add a comment to this file

demo/media/images/flags/bw.png

Added
New image
Add a comment to this file

demo/media/images/flags/by.png

Added
New image
Add a comment to this file

demo/media/images/flags/bz.png

Added
New image
Add a comment to this file

demo/media/images/flags/ca.png

Added
New image
Add a comment to this file

demo/media/images/flags/cd.png

Added
New image
Add a comment to this file

demo/media/images/flags/cf.png

Added
New image
Add a comment to this file

demo/media/images/flags/cg.png

Added
New image
Add a comment to this file

demo/media/images/flags/ch.png

Added
New image
Add a comment to this file

demo/media/images/flags/ci.png

Added
New image
Add a comment to this file

demo/media/images/flags/ck.png

Added
New image
Add a comment to this file

demo/media/images/flags/cl.png

Added
New image
Add a comment to this file

demo/media/images/flags/cm.png

Added
New image
Add a comment to this file

demo/media/images/flags/cn.png

Added
New image
Add a comment to this file

demo/media/images/flags/co.png

Added
New image
Add a comment to this file

demo/media/images/flags/cr.png

Added
New image
Add a comment to this file

demo/media/images/flags/cu.png

Added
New image
Add a comment to this file

demo/media/images/flags/cv.png

Added
New image
Add a comment to this file

demo/media/images/flags/cy.png

Added
New image
Add a comment to this file

demo/media/images/flags/cz.png

Added
New image
Add a comment to this file

demo/media/images/flags/de.png

Added
New image
Add a comment to this file

demo/media/images/flags/dj.png

Added
New image
Add a comment to this file

demo/media/images/flags/dk.png

Added
New image
Add a comment to this file

demo/media/images/flags/dm.png

Added
New image
Add a comment to this file

demo/media/images/flags/do.png

Added
New image
Add a comment to this file

demo/media/images/flags/dz.png

Added
New image
Add a comment to this file

demo/media/images/flags/ec.png

Added
New image
Add a comment to this file

demo/media/images/flags/ee.png

Added
New image
Add a comment to this file

demo/media/images/flags/eg.png

Added
New image
Add a comment to this file

demo/media/images/flags/eh.png

Added
New image
Add a comment to this file

demo/media/images/flags/er.png

Added
New image
Add a comment to this file

demo/media/images/flags/es.png

Added
New image
Add a comment to this file

demo/media/images/flags/et.png

Added
New image
Add a comment to this file

demo/media/images/flags/fi.png

Added
New image
Add a comment to this file

demo/media/images/flags/fj.png

Added
New image
Add a comment to this file

demo/media/images/flags/fm.png

Added
New image
Add a comment to this file

demo/media/images/flags/fo.png

Added
New image
Add a comment to this file

demo/media/images/flags/fr.png

Added
New image
Add a comment to this file

demo/media/images/flags/ga.png

Added
New image
Add a comment to this file

demo/media/images/flags/gb.png

Added
New image
Add a comment to this file

demo/media/images/flags/gd.png

Added
New image
Add a comment to this file

demo/media/images/flags/ge.png

Added
New image
Add a comment to this file

demo/media/images/flags/gg.png

Added
New image
Add a comment to this file

demo/media/images/flags/gh.png

Added
New image
Add a comment to this file

demo/media/images/flags/gi.png

Added
New image
Add a comment to this file

demo/media/images/flags/gl.png

Added
New image
Add a comment to this file

demo/media/images/flags/gm.png

Added
New image
Add a comment to this file

demo/media/images/flags/gn.png

Added
New image
Add a comment to this file

demo/media/images/flags/gp.png

Added
New image
Add a comment to this file

demo/media/images/flags/gq.png

Added
New image
Add a comment to this file

demo/media/images/flags/gr.png

Added
New image
Add a comment to this file

demo/media/images/flags/gt.png

Added
New image
Add a comment to this file

demo/media/images/flags/gu.png

Added
New image
Add a comment to this file

demo/media/images/flags/gw.png

Added
New image
Add a comment to this file

demo/media/images/flags/gy.png

Added
New image
Add a comment to this file

demo/media/images/flags/hk.png

Added
New image
Add a comment to this file

demo/media/images/flags/hn.png

Added
New image
Add a comment to this file

demo/media/images/flags/hr.png

Added
New image
Add a comment to this file

demo/media/images/flags/ht.png

Added
New image
Add a comment to this file

demo/media/images/flags/hu.png

Added
New image
Add a comment to this file

demo/media/images/flags/id.png

Added
New image
Add a comment to this file

demo/media/images/flags/ie.png

Added
New image
Add a comment to this file

demo/media/images/flags/il.png

Added
New image
Add a comment to this file

demo/media/images/flags/im.png

Added
New image
Add a comment to this file

demo/media/images/flags/in.png

Added
New image
Add a comment to this file

demo/media/images/flags/iq.png

Added
New image
Add a comment to this file

demo/media/images/flags/ir.png

Added
New image
Add a comment to this file

demo/media/images/flags/is.png

Added
New image
Add a comment to this file

demo/media/images/flags/it.png

Added
New image
Add a comment to this file

demo/media/images/flags/je.png

Added
New image
Add a comment to this file

demo/media/images/flags/jm.png

Added
New image
Add a comment to this file

demo/media/images/flags/jo.png

Added
New image
Add a comment to this file

demo/media/images/flags/jp.png

Added
New image
Add a comment to this file

demo/media/images/flags/ke.png

Added
New image
Add a comment to this file

demo/media/images/flags/kg.png

Added
New image
Add a comment to this file

demo/media/images/flags/kh.png

Added
New image
Add a comment to this file

demo/media/images/flags/ki.png

Added
New image
Add a comment to this file

demo/media/images/flags/km.png

Added
New image
Add a comment to this file

demo/media/images/flags/kn.png

Added
New image
Add a comment to this file

demo/media/images/flags/kp.png

Added
New image
Add a comment to this file

demo/media/images/flags/kr.png

Added
New image
Add a comment to this file

demo/media/images/flags/kw.png

Added
New image
Add a comment to this file

demo/media/images/flags/ky.png

Added
New image
Add a comment to this file

demo/media/images/flags/kz.png

Added
New image
Add a comment to this file

demo/media/images/flags/la.png

Added
New image
Add a comment to this file

demo/media/images/flags/lb.png

Added
New image
Add a comment to this file

demo/media/images/flags/lc.png

Added
New image
Add a comment to this file

demo/media/images/flags/li.png

Added
New image
Add a comment to this file

demo/media/images/flags/lk.png

Added
New image
Add a comment to this file

demo/media/images/flags/lr.png

Added
New image
Add a comment to this file

demo/media/images/flags/ls.png

Added
New image
Add a comment to this file

demo/media/images/flags/lt.png

Added
New image
Add a comment to this file

demo/media/images/flags/lu.png

Added
New image
Add a comment to this file

demo/media/images/flags/lv.png

Added
New image
Add a comment to this file

demo/media/images/flags/ly.png

Added
New image
Add a comment to this file

demo/media/images/flags/ma.png

Added
New image
Add a comment to this file

demo/media/images/flags/mc.png

Added
New image
Add a comment to this file

demo/media/images/flags/md.png

Added
New image
Add a comment to this file

demo/media/images/flags/me.png

Added
New image
Add a comment to this file

demo/media/images/flags/mg.png

Added
New image
Add a comment to this file

demo/media/images/flags/mh.png

Added
New image
Add a comment to this file

demo/media/images/flags/mk.png

Added
New image
Add a comment to this file

demo/media/images/flags/ml.png

Added
New image
Add a comment to this file

demo/media/images/flags/mm.png

Added
New image
Add a comment to this file

demo/media/images/flags/mn.png

Added
New image
Add a comment to this file

demo/media/images/flags/mo.png

Added
New image
Add a comment to this file

demo/media/images/flags/mq.png

Added
New image
Add a comment to this file

demo/media/images/flags/mr.png

Added
New image
Add a comment to this file

demo/media/images/flags/ms.png

Added
New image
Add a comment to this file

demo/media/images/flags/mt.png

Added
New image
Add a comment to this file

demo/media/images/flags/mu.png

Added
New image
Add a comment to this file

demo/media/images/flags/mv.png

Added
New image
Add a comment to this file

demo/media/images/flags/mw.png

Added
New image
Add a comment to this file

demo/media/images/flags/mx.png

Added
New image
Add a comment to this file

demo/media/images/flags/my.png

Added
New image
Add a comment to this file

demo/media/images/flags/mz.png

Added
New image
Add a comment to this file

demo/media/images/flags/na.png

Added
New image
Add a comment to this file

demo/media/images/flags/nc.png

Added
New image
Add a comment to this file

demo/media/images/flags/ne.png

Added
New image
Add a comment to this file

demo/media/images/flags/ng.png

Added
New image
Add a comment to this file

demo/media/images/flags/ni.png

Added
New image
Add a comment to this file

demo/media/images/flags/nl.png

Added
New image
Add a comment to this file

demo/media/images/flags/no.png

Added
New image
Add a comment to this file

demo/media/images/flags/np.png

Added
New image
Add a comment to this file

demo/media/images/flags/nr.png

Added
New image
Add a comment to this file

demo/media/images/flags/nz.png

Added
New image
Add a comment to this file

demo/media/images/flags/om.png

Added
New image
Add a comment to this file

demo/media/images/flags/pa.png

Added
New image
Add a comment to this file

demo/media/images/flags/pe.png

Added
New image
Add a comment to this file

demo/media/images/flags/pf.png

Added
New image
Add a comment to this file

demo/media/images/flags/pg.png

Added
New image
Add a comment to this file

demo/media/images/flags/ph.png

Added
New image
Add a comment to this file

demo/media/images/flags/pk.png

Added
New image
Add a comment to this file

demo/media/images/flags/pl.png

Added
New image
Add a comment to this file

demo/media/images/flags/pr.png

Added
New image
Add a comment to this file

demo/media/images/flags/ps.png

Added
New image
Add a comment to this file

demo/media/images/flags/pt.png

Added
New image
Add a comment to this file

demo/media/images/flags/pw.png

Added
New image
Add a comment to this file

demo/media/images/flags/py.png

Added
New image
Add a comment to this file

demo/media/images/flags/qa.png

Added
New image
Add a comment to this file

demo/media/images/flags/re.png

Added
New image
Add a comment to this file

demo/media/images/flags/ro.png

Added
New image
Add a comment to this file

demo/media/images/flags/rs.png

Added
New image
Add a comment to this file

demo/media/images/flags/ru.png

Added
New image
Add a comment to this file

demo/media/images/flags/rw.png

Added
New image
Add a comment to this file

demo/media/images/flags/sa.png

Added
New image
Add a comment to this file

demo/media/images/flags/sb.png

Added
New image
Add a comment to this file

demo/media/images/flags/sc.png

Added
New image
Add a comment to this file

demo/media/images/flags/sd.png

Added
New image
Add a comment to this file

demo/media/images/flags/se.png

Added
New image
Add a comment to this file

demo/media/images/flags/sg.png

Added
New image
Add a comment to this file

demo/media/images/flags/si.png

Added
New image
Add a comment to this file

demo/media/images/flags/sk.png

Added
New image
Add a comment to this file

demo/media/images/flags/sl.png

Added
New image
Add a comment to this file

demo/media/images/flags/sm.png

Added
New image
Add a comment to this file

demo/media/images/flags/sn.png

Added
New image
Add a comment to this file

demo/media/images/flags/so.png

Added
New image
Add a comment to this file

demo/media/images/flags/sr.png

Added
New image
Add a comment to this file

demo/media/images/flags/st.png

Added
New image
Add a comment to this file

demo/media/images/flags/sv.png

Added
New image
Add a comment to this file

demo/media/images/flags/sy.png

Added
New image
Add a comment to this file

demo/media/images/flags/sz.png

Added
New image
Add a comment to this file

demo/media/images/flags/tc.png

Added
New image
Add a comment to this file

demo/media/images/flags/td.png

Added
New image
Add a comment to this file

demo/media/images/flags/tg.png

Added
New image
Add a comment to this file

demo/media/images/flags/th.png

Added
New image
Add a comment to this file

demo/media/images/flags/tj.png

Added
New image
Add a comment to this file

demo/media/images/flags/tl.png

Added
New image
Add a comment to this file

demo/media/images/flags/tm.png

Added
New image
Add a comment to this file

demo/media/images/flags/tn.png

Added
New image
Add a comment to this file

demo/media/images/flags/to.png

Added
New image
Add a comment to this file

demo/media/images/flags/tr.png

Added
New image
Add a comment to this file

demo/media/images/flags/tt.png

Added
New image
Add a comment to this file

demo/media/images/flags/tv.png

Added
New image
Add a comment to this file

demo/media/images/flags/tw.png

Added
New image
Add a comment to this file

demo/media/images/flags/tz.png

Added
New image
Add a comment to this file

demo/media/images/flags/ua.png

Added
New image
Add a comment to this file

demo/media/images/flags/ug.png

Added
New image
Add a comment to this file

demo/media/images/flags/us.png

Added
New image
Add a comment to this file

demo/media/images/flags/uy.png

Added
New image
Add a comment to this file

demo/media/images/flags/uz.png

Added
New image
Add a comment to this file

demo/media/images/flags/va.png

Added
New image
Add a comment to this file

demo/media/images/flags/vc.png

Added
New image
Add a comment to this file

demo/media/images/flags/ve.png

Added
New image
Add a comment to this file

demo/media/images/flags/vg.png

Added
New image
Add a comment to this file

demo/media/images/flags/vi.png

Added
New image
Add a comment to this file

demo/media/images/flags/vn.png

Added
New image
Add a comment to this file

demo/media/images/flags/vu.png

Added
New image
Add a comment to this file

demo/media/images/flags/ws.png

Added
New image
Add a comment to this file

demo/media/images/flags/ye.png

Added
New image
Add a comment to this file

demo/media/images/flags/za.png

Added
New image
Add a comment to this file

demo/media/images/flags/zm.png

Added
New image
Add a comment to this file

demo/media/images/flags/zw.png

Added
New image
+../../tracking/media/tracking/js
+# Django settings for demo project.
+import os
+DIRNAME = os.path.abspath(os.path.dirname(__file__))
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+ADMINS = (
+    # ('Your Name', 'your_email@domain.com'),
+)
+
+MANAGERS = ADMINS
+
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+        'NAME': 'demo.db',                      # Or path to database file if using sqlite3.
+        'USER': '',                      # Not used with sqlite3.
+        'PASSWORD': '',                  # Not used with sqlite3.
+        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
+        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
+    }
+}
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# On Unix systems, a value of None will cause Django to use the same
+# timezone as the operating system.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'America/Chicago'
+
+# Language code for this installation. All choices can be found here:
+# http://www.i18nguy.com/unicode/language-identifiers.html
+LANGUAGE_CODE = 'en-us'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# If you set this to False, Django will not format dates, numbers and
+# calendars according to the current locale
+USE_L10N = True
+
+# Absolute filesystem path to the directory that will hold user-uploaded files.
+# Example: "/home/media/media.lawrence.com/"
+MEDIA_ROOT = os.path.join(DIRNAME, 'media')
+
+# URL that handles the media served from MEDIA_ROOT. Make sure to use a
+# trailing slash if there is a path component (optional in other cases).
+# Examples: "http://media.lawrence.com", "http://example.com/media/"
+MEDIA_URL = '/static/'
+
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+ADMIN_MEDIA_PREFIX = '/media/'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = '#!t86#t9)m6zhx$3&3ke1o2gsog6zhj5b+w9g&uf^@rp-_6z4m'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+    'django.template.loaders.filesystem.Loader',
+    'django.template.loaders.app_directories.Loader',
+#     'django.template.loaders.eggs.Loader',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.middleware.common.CommonMiddleware',
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.middleware.csrf.CsrfViewMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+    'tracking.middleware.VisitorTrackingMiddleware',
+    'tracking.middleware.VisitorCleanUpMiddleware',
+    'tracking.middleware.BannedIPMiddleware',
+    'django.contrib.messages.middleware.MessageMiddleware',
+)
+
+ROOT_URLCONF = 'demo.urls'
+
+TEMPLATE_DIRS = (
+    os.path.join(DIRNAME, 'templates'),
+)
+
+INSTALLED_APPS = (
+    'django.contrib.admin',
+    'django.contrib.auth',
+    'django.contrib.contenttypes',
+    'django.contrib.sessions',
+    'django.contrib.sites',
+    'django.contrib.messages',
+    'tracking'
+)
+
+GOOGLE_MAPS_KEY = 'ABQIAAAAaP6spDi8OofHsLmWK8bZEhQCULP4XOMyhPd8d_NrQQEO8sT8XBQD-q-healg6KF2Fcm1SDbZ8VG7sw'
+TRACKING_USE_GEOIP = True
+GEOIP_PATH = os.path.join(DIRNAME, 'GeoLiteCity.dat')
+TRACKING_TIMEOUT = 5 # in minutes
+TRACKING_CLEANUP_TIMEOUT = 5 # in hours
+NO_TRACKING_PREFIXES = [
+    '/media/',
+    '/admin/',
+]
+
+import logging
+logging.basicConfig(filename='tracking.log', level=logging.DEBUG)
+../tracking
+from django.conf import settings
+from django.conf.urls.defaults import *
+from django.contrib import admin
+
+admin.autodiscover()
+
+urlpatterns = patterns('',
+    (r'^tracking/', include('tracking.urls')),
+    (r'^admin/', include(admin.site.urls)),
+)
+
+if settings.DEBUG:
+    urlpatterns += patterns('django.views.static',
+        (r'static/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}),
+    )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.