Commits

Tobias McNulty  committed af0ff29

minimal changes necessary to get RapidSMS installed and working

  • Participants
  • Parent commits 9ffe76f

Comments (0)

Files changed (3)

File rapidtest/manage.py

File contents unchanged.

File rapidtest/settings.py

 
 DATABASES = {
     'default': {
-        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME': '',                      # Or path to database file if using sqlite3.
+        'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+        'NAME': 'rapidtest_devel',                      # 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.
 # 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 = ''
+MEDIA_URL = '/site_media/'
 
 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
 # trailing slash.
     'django.contrib.sites',
     'django.contrib.messages',
     # Uncomment the next line to enable the admin:
-    # 'django.contrib.admin',
+    'django.contrib.admin',
+    'djtables',
+    'rapidsms',
+    'rapidsms.contrib.ajax',
+    'rapidsms.contrib.httptester',
+    'rapidsms.contrib.messagelog',
+    'rapidsms.contrib.messaging',
+    'rapidsms.contrib.djangoadmin',
+    'rapidsms.contrib.default',
 )
+
+INSTALLED_BACKENDS = {
+        "message_tester" : {"ENGINE": "rapidsms.backends.bucket" }
+}
+
+TABS = [
+    ('rapidsms.views.dashboard', 'Dashboard'),
+    ('rapidsms.contrib.httptester.views.generate_identity', 'Message Tester'),
+    ('rapidsms.contrib.messagelog.views.message_log', 'Message Log'),
+    ('rapidsms.contrib.messaging.views.messaging', 'Messaging'),
+]
+
+TEMPLATE_CONTEXT_PROCESSORS = ("django.contrib.auth.context_processors.auth",
+"django.core.context_processors.debug",
+"django.core.context_processors.i18n",
+"django.core.context_processors.media",
+"django.core.context_processors.request",
+"django.contrib.messages.context_processors.messages")
+
+LOG_LEVEL   = "DEBUG"
+LOG_FILE    = "rapidsms.log"
+LOG_FORMAT  = "[%(name)s]: %(message)s"
+LOG_SIZE    = 8192 # 8192 bytes = 64 kb
+LOG_BACKUPS = 256 # number of logs to keep

File rapidtest/urls.py

 from django.conf.urls.defaults import *
 
 # Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+from django.contrib import admin
+admin.autodiscover()
 
 urlpatterns = patterns('',
     # Example:
-    # (r'^rapidtest/', include('rapidtest.foo.urls')),
+    (r'^rapidsms/', include('rapidsms.urls')),
+    (r'^rapidsms/', include('rapidsms.contrib.httptester.urls')),
+    (r'^rapidsms/', include('rapidsms.contrib.messagelog.urls')),
+    (r'^rapidsms/', include('rapidsms.contrib.messaging.urls')),
+
+    (r'^site_media/rapidsms/(?P<path>.*)$', 'django.views.static.serve',
+        {'document_root': '/home/tobias/.virtualenvs/rapidsms-from-django/lib/python2.6/site-packages/rapidsms/static', 'show_indexes': True}),
+    (r'^site_media/httptester/(?P<path>.*)$', 'django.views.static.serve',
+        {'document_root': '/home/tobias/.virtualenvs/rapidsms-from-django/lib/python2.6/site-packages/rapidsms/contrib/httptester/static', 'show_indexes': True}),
 
     # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
     # to INSTALLED_APPS to enable admin documentation:
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
     # Uncomment the next line to enable the admin:
-    # (r'^admin/', include(admin.site.urls)),
+    (r'^admin/', include(admin.site.urls)),
 )