Skip to content

Commit 8399dde

Browse files
committed
Change namespace to csp
1 parent a3e5c31 commit 8399dde

File tree

8 files changed

+111
-12
lines changed

8 files changed

+111
-12
lines changed

.gitignore

+99
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,102 @@ venv
22
*.pyc
33
staticfiles
44
local_settings.py
5+
6+
# Created by https://www.gitignore.io
7+
8+
### Python ###
9+
# Byte-compiled / optimized / DLL files
10+
__pycache__/
11+
*.py[cod]
12+
13+
# C extensions
14+
*.so
15+
16+
# Distribution / packaging
17+
.Python
18+
env/
19+
build/
20+
develop-eggs/
21+
dist/
22+
downloads/
23+
eggs/
24+
.eggs/
25+
lib/
26+
lib64/
27+
parts/
28+
sdist/
29+
var/
30+
*.egg-info/
31+
.installed.cfg
32+
*.egg
33+
34+
# PyInstaller
35+
# Usually these files are written by a python script from a template
36+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
37+
*.manifest
38+
*.spec
39+
40+
# Installer logs
41+
pip-log.txt
42+
pip-delete-this-directory.txt
43+
44+
# Unit test / coverage reports
45+
htmlcov/
46+
.tox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*,cover
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
61+
# Sphinx documentation
62+
docs/_build/
63+
64+
# PyBuilder
65+
target/
66+
67+
68+
### Django ###
69+
*.log
70+
*.pot
71+
*.pyc
72+
__pycache__/
73+
local_settings.py
74+
75+
76+
### VirtualEnv ###
77+
# Virtualenv
78+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
79+
.Python
80+
[Bb]in
81+
[Ii]nclude
82+
[Ll]ib
83+
[Ss]cripts
84+
pyvenv.cfg
85+
pip-selfcheck.json
86+
87+
88+
### SublimeText ###
89+
# cache files for sublime text
90+
*.tmlanguage.cache
91+
*.tmPreferences.cache
92+
*.stTheme.cache
93+
94+
# workspace files are user-specific
95+
*.sublime-workspace
96+
97+
# project files should be checked into the repository, unless a significant
98+
# proportion of contributors will probably not be using SublimeText
99+
# *.sublime-project
100+
101+
# sftp configuration file
102+
sftp-config.json
103+

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: gunicorn turingmachine.wsgi --log-file -
1+
web: gunicorn csp.wsgi --log-file -

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Turing Machine
1+
# Crowdsource Platform - Crowdresearch HCI Stanford
22

3-
This is a Django 1.8 app using a Postgres database that can be deployed to Heroku.
3+
This is a Django 1.8 app using a MySQL database that can be deployed to Heroku.
44

55
### Setup
66

77
Install [Postgres](http://postgresapp.com/) and create a new database:
88

99
bash> psql
10-
psql> CREATE DATABASE turingmachine_dev;
10+
psql> CREATE DATABASE crowdsource_dev ENCODING 'UTF8';
1111

1212
Create a `local_settings.py` file and configure it to connect to the Postgres database:
1313

1414
DATABASES = {
1515
"default": {
1616
"ENGINE": "django.db.backends.postgresql_psycopg2",
17-
"NAME": "turingmachine_dev"
17+
"NAME": "crowdsource_dev"
1818
}
1919
}
2020

File renamed without changes.

turingmachine/settings.py renamed to csp/settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Django settings for turingmachine project.
2+
Django settings for csp project.
33
44
Generated by 'django-admin startproject' using Django 1.8.
55
@@ -51,7 +51,7 @@
5151
'django.middleware.security.SecurityMiddleware',
5252
)
5353

54-
ROOT_URLCONF = 'turingmachine.urls'
54+
ROOT_URLCONF = 'csp.urls'
5555

5656
TEMPLATES = [
5757
{
@@ -69,7 +69,7 @@
6969
},
7070
]
7171

72-
WSGI_APPLICATION = 'turingmachine.wsgi.application'
72+
WSGI_APPLICATION = 'csp.wsgi.application'
7373

7474

7575
# Database

turingmachine/urls.py renamed to csp/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
urlpatterns = [
55
# Examples:
6-
# url(r'^$', 'turingmachine.views.home', name='home'),
6+
# url(r'^$', 'csp.views.home', name='home'),
77
# url(r'^blog/', include('blog.urls')),
88

99
url(r'^admin/', include(admin.site.urls)),

turingmachine/wsgi.py renamed to csp/wsgi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
WSGI config for turingmachine project.
2+
WSGI config for csp project.
33
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
@@ -12,7 +12,7 @@
1212
from django.core.wsgi import get_wsgi_application
1313
from dj_static import Cling
1414

15-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "turingmachine.settings")
15+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "csp.settings")
1616

1717
# application = get_wsgi_application()
1818
application = Cling(get_wsgi_application())

manage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55
if __name__ == "__main__":
6-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "turingmachine.settings")
6+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "csp.settings")
77

88
from django.core.management import execute_from_command_line
99

0 commit comments

Comments
 (0)