Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6d7e77d
Incomplete refactor -- renaming Files Model to notes
CharlesHolbrow Dec 18, 2012
df8b6e8
changing instances of UserProfile.files to UserProfile.viewed_notes
CharlesHolbrow Dec 18, 2012
ff11cff
fixing course_title undefined check in app.js
CharlesHolbrow Dec 18, 2012
28b2f16
deprecating some functions
CharlesHolbrow Dec 18, 2012
452a3fb
Merge branch 'master' of github.com:FinalsClub/djKarma into rename_fi…
CharlesHolbrow Dec 18, 2012
a7fac34
Removing SiteStat singleton, increment and decrement
CharlesHolbrow Dec 18, 2012
155ccd7
removing obsolete model_utils file and the fast_hash function
sethwoodworth Dec 18, 2012
d25db88
removing get_picture function from user_profile, we handle this as an…
sethwoodworth Dec 18, 2012
eca783a
Revert "removing get_picture function from user_profile, we handle th…
sethwoodworth Dec 18, 2012
145abed
Cleaning lots of unused code
CharlesHolbrow Dec 18, 2012
8e33cdf
Merge branch 'refactor' of github.com:FinalsClub/djKarma into refactor
CharlesHolbrow Dec 18, 2012
729ee32
removing more obsolete functions from utils.py
sethwoodworth Dec 19, 2012
7b48567
moving requirements to subfolder and updating our README to match
sethwoodworth Dec 19, 2012
62a6815
renaming local file variable in view.note to note
CharlesHolbrow Dec 19, 2012
bc42dd2
Merge branch 'refactor' of github.com:FinalsClub/djKarma into refactor
CharlesHolbrow Dec 19, 2012
0bd9203
cleaning urls.py. removing obsolete patterns
CharlesHolbrow Dec 19, 2012
df24098
cleaning urls.py. removing unused add pattern
CharlesHolbrow Dec 19, 2012
3dfc59d
cleaning up fileMeta and file
CharlesHolbrow Dec 19, 2012
856367d
cleaning views.py
CharlesHolbrow Dec 19, 2012
a0ef334
course_pk now a global javascript variable. fixes #207
CharlesHolbrow Dec 19, 2012
403a9ec
removing requirement for django-simple-autocomplete from requirements
sethwoodworth Dec 19, 2012
5d4f22e
Merge branch 'refactor' of github.com:FinalsClub/djKarma into refactor
sethwoodworth Dec 19, 2012
6345b91
dprecating userCanView. cleaning up imports
CharlesHolbrow Dec 19, 2012
728c46e
deleting static html
CharlesHolbrow Dec 19, 2012
7ef6f3a
removing duplicate images from templates folder. moving fontfaces to …
CharlesHolbrow Dec 19, 2012
b5fd42f
replacing datetime.datetime.now with datetime.datetime.utcnow in mode…
CharlesHolbrow Dec 19, 2012
8bcdd11
wsgi.py is not copyrightable, remove declaration
sethwoodworth Dec 19, 2012
4524947
Merge branch 'refactor' of github.com:FinalsClub/djKarma into refactor
sethwoodworth Dec 19, 2012
f56206e
manage.py not copyrightable
sethwoodworth Dec 19, 2012
2155005
adding a copy of the 404 page as a 500 error message page
sethwoodworth Dec 19, 2012
2635908
removing old templates now that the new theme is well established
sethwoodworth Dec 19, 2012
8276450
adding hashbang and encoding type for views.py
sethwoodworth Dec 19, 2012
a101e0d
cleanup settings.py and add formatting
sethwoodworth Dec 19, 2012
25d5eca
removing redundant DB link between Reputation Events and UserProfile.…
CharlesHolbrow Dec 19, 2012
c98ecbe
Merge branch 'refactor' of github.com:FinalsClub/djKarma into refactor
CharlesHolbrow Dec 19, 2012
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions KNotes/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# settings.py is part of Karma Notes
# Django settings for KNotes project.
#!/usr/bin/python2.7
# -*- coding:utf8 -*-
""" Django settings for KNotes project. """
import os

from djcelery import setup_loader

''' Secrets '''
from notes.credentials import FACEBOOK_ID
Expand Down Expand Up @@ -28,10 +32,7 @@

from notes.credentials import DEFAULT_FROM_EMAIL

import os
import djcelery

djcelery.setup_loader()

# Is this running on the karmanotes.org box?
DEPLOY = True
Expand Down Expand Up @@ -86,16 +87,12 @@

ADMINS = (
("Seth Woodworth", 'seth@finalsclub.org'),
("David Brodsky", 'david@finalsclub.org'),
("Charles Holbrow", 'charles@finalsclub.org')
)

MANAGERS = ADMINS

# For autocomplete
SIMPLE_AUTOCOMPLETE_MODELS = ('notes.School', 'notes.Course')

TIME_ZONE = 'America/New_York'
IME_ZONE = 'America/New_York'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
Expand Down Expand Up @@ -302,7 +299,12 @@
'notes',
)

# Django-Celery settings
###===========================
# django-celery configuration

setup_loader()

# TODO: set up rabbitmq properly
BROKER_URL = "django://"

if DEPLOY:
Expand All @@ -313,8 +315,12 @@
else:
CELERY_RESULT_DBURI = "sqlite:///karmaNotes.sql"

# end django-celery conf
########################

###=======================
## HAYSTACK Configuration

### HAYSTACK Configuration
HAYSTACK_SITECONF = 'notes.search_sites'
HAYSTACK_SEARCH_ENGINE = 'solr'

Expand All @@ -323,6 +329,9 @@
# ...or for multicore...
#HAYSTACK_SOLR_URL = 'http://127.0.0.1:8983/solr/mysite'

## end HAYSTACK conf
###==================

# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
Expand Down Expand Up @@ -352,6 +361,9 @@
}
}

###===================
## AWS SES email conf

EMAIL_USE_TLS = True
EMAIL_HOST = 'email-smtp.us-east-1.amazonaws.com'
EMAIL_HOST_USER = SMTP_USERNAME
Expand All @@ -361,6 +373,9 @@
TEMPLATED_EMAIL_TEMPLATE_DIR = 'templated_email/' # use '' for top level template dir, ensure there is a trailing slash
TEMPLATED_EMAIL_FILE_EXTENSION = 'email'

## end SES email conf
###===================

try:
# For development, mv the initial file `dev_settings.py` to be named `local_settings.py`
from local_settings import *
Expand Down
26 changes: 0 additions & 26 deletions KNotes/templates/ajax/search_results.html

This file was deleted.

74 changes: 0 additions & 74 deletions KNotes/templates/ajax/view-file.html

This file was deleted.

27 changes: 0 additions & 27 deletions KNotes/templates/ajaxFormResponse_min.html

This file was deleted.

126 changes: 0 additions & 126 deletions KNotes/templates/base.html

This file was deleted.

27 changes: 0 additions & 27 deletions KNotes/templates/browse_courses.html

This file was deleted.

Loading