Skip to content

Commit

Permalink
:) sql backup test on linux, write more README setup. Opened issue #70
Browse files Browse the repository at this point in the history
…on access control replication
  • Loading branch information
haoqili committed Jul 22, 2011
1 parent 7f347dc commit 42c132c
Show file tree
Hide file tree
Showing 4 changed files with 760 additions and 7 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Setup

3. Configure settings: `cp settings_local.py-dist settings_local.py`
* and then put in an account's user and password in `settings_local.py`, for example `'USER' : 'msw_user', 'PASSWORD' : 'm3dRL2Asw7'`
* Get Google Safe Browsing Key at TODO
* Get Recaptcha keys TODO
* [Get Google Safe Browsing Key][5] and fill it in on settings_local.py
* [Get Recaptcha keys][6] and fill it in on settings_local.py

* Mysql setup:
* get mysql server: `sudo apt-get install mysql-server`
Expand Down Expand Up @@ -83,3 +83,5 @@ TBD
[2]: http://curioushq.blogspot.com/2011/07/getting-image-upload-to-work-on-django.html
[3]: http://pypi.python.org/pypi/setuptools#files
[4]: http://pypi.python.org/pypi/setuptools
[5]: http://code.google.com/apis/safebrowsing/key_signup.html
[6]: http://www.google.com/recaptcha/whyrecaptcha
45 changes: 45 additions & 0 deletions apps/msw/templates/msw/demos/fileupload.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% extends "msw/base.html" %}

{% block head_stuff %}
{% endblock %}

{% block rightPanelText %}
<h2>File Upload</h2>
<!---------------->
<form id="myform" action="" method="post" enctype="multipart/form-data">
{{ csrf() }}
{{ form.as_p() }}
<input type="submit" value="Submit" />
</form>

<!---------------->


<p />
<h3>What to do</h3>
<p>
I'm still figuring it out.
</p>

<h3>How to check</h3>
<p>
I'm still figuring it out.
</p>

<h3>What I did</h3>
<p>
I'm still figuring it out.
</p>

<h3>The demo: </h3>
<p>
I'm still figuring it out.
</p>

<!---------------->
{# TODO: MOVE FORM BACK #}

<!---------------->

<h1><a href="{{ page.reverse_url() }}">back</a></h1>
{% endblock %}
10 changes: 5 additions & 5 deletions settings_local.py-dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mozsecworld', # This is the database name
'USER': '',
'PASSWORD': '',
'USER': '[TODO: INSERT SQL USERNAME]',
'PASSWORD': '[TODO: INSERT SQL PASSWORD]',
'HOST': 'localhost',
'PORT': '3306',
'OPTIONS': {
Expand All @@ -28,10 +28,10 @@ HMAC_KEYS = { # Remember to NEVER DELETE THINGS FROM HERE, ONLY APPEND

## My own stuff
## Google Safebrowsing
GSB_API_KEY = ''
GSB_API_KEY = '[TODO: replace me with your GSP API KEY from http://code.google.com/apis/safebrowsing/key_signup.html]'

## Recaptcha stuff
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY = ''
RECAPTCHA_PUBLIC_KEY = '[TODO: replace me with your RECAPTCHA KEY from http://www.google.com/recaptcha/whyrecaptcha]'
RECAPTCHA_PRIVATE_KEY = '[TODO: replace me with your RECAPTCHA KEY from http://www.google.com/recaptcha/whyrecaptcha]'
RECAPTCHA_URL = ('https://www.google.com/recaptcha/api/challenge?k=%s' %
RECAPTCHA_PUBLIC_KEY)
Loading

0 comments on commit 42c132c

Please sign in to comment.