Commits

Michele Orrù  committed 7fb528e

developing metwit

  • Participants
  • Parent commits bd6d84c

Comments (0)

Files changed (3)

File cerberus/settings.py

 # Django settings for cerberus project.
 
-DEBUG = False
+DEBUG = True
 TEMPLATE_DEBUG = DEBUG
 
 ADMINS = (
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME': '/home/dotcloud/data.db',                      # Or path to database file if using sqlite3.
+        'NAME': '/Users/maker/dev/cerberus-www/data.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.
     # 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.
-    '/home/dotcloud/current/cerberus/templates/',
-    #'cerberus/templates/'
+    #'/home/dotcloud/current/cerberus/templates/',
+    '/Users/maker/dev/cerberus-www/cerberus/templates/'
 )
 
 INSTALLED_APPS = (

File cerberus/urls.py

 urlpatterns = patterns('',
     # Examples:
     url(r'^$', 'cerberus.views.index'),
+    url(r'^metwit$', 'cerberus.views.metwit'),
     url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to',
                             dict(url='/static/favicon.ico')),
     # url(r'^cerberus/', include('cerberus.foo.urls')),

File cerberus/views.py

 
 def index(request):
     return render_to_response('index.html', dict(foo='simplestring', bar='1337'))
+
+def metwit(request)
+    return '{"result": {"metags": []}}'