Commit 10b80e19 by Piotr Mitros

A little bit of scaffolding to make it easier for beginners to get started.

parent 2b4cd5ac
...@@ -167,6 +167,7 @@ INSTALLED_APPS = ( ...@@ -167,6 +167,7 @@ INSTALLED_APPS = (
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'mongolog',
) + DJ_REQUIRED_APPS ) + DJ_REQUIRED_APPS
# A sample logging configuration. The only tangible logging # A sample logging configuration. The only tangible logging
......
<html>
<head><title>It's running!</title></head>
<body>
<h1> The example application is running. Next steps: </h1>
<p> Send an event to the database (the sendevent script is in src/sendevent/):
<pre> python sendevent.py localhost:8000 /httpevent actor=bob action=submitanswer object=problem5
</pre>
<p> Connect to the database, and see what events are there:
<pre>
$ mongo
MongoDB shell version: 2.0.4
connecting to: test
> show dbs
...
modules_dump_to_db
...
> use modules_dump_to_db
switched to db modules_dump_to_db
> show collections
event_log
system.indexes
> db.event_log.find()
[ should show all events sent to database ]
</pre>
</body>
</html>
...@@ -7,7 +7,7 @@ from django.conf.urls import patterns, include, url ...@@ -7,7 +7,7 @@ from django.conf.urls import patterns, include, url
urlpatterns = patterns('', urlpatterns = patterns('',
url(r'^httpevent$', 'djeventstream.httphandler.views.http_view'), url(r'^httpevent$', 'djeventstream.httphandler.views.http_view'),
# Examples: # Examples:
# url(r'^$', 'mongolog.views.home', name='home'), url(r'^$', 'mongolog.views.home', name='home'),
# url(r'^mongolog/', include('mongolog.foo.urls')), # url(r'^mongolog/', include('mongolog.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation: # Uncomment the admin/doc line below to enable admin documentation:
......
from django.shortcuts import redirect
def home(request):
return redirect('/static/intro.html')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment