This repository has been archived by the owner on May 20, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A little bit of scaffolding to make it easier for beginners to get st…
…arted.
- Loading branch information
Piotr Mitros
committed
Jun 17, 2013
1 parent
2b4cd5a
commit 10b80e1
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from django.shortcuts import redirect | ||
|
||
def home(request): | ||
return redirect('/static/intro.html') |