Merge pull request #559 from Gluejar/dj16ry

some changes I'm considering for dj16
pull/1/head
eshellman 2016-04-12 14:44:31 -04:00
commit c07f279be8
6 changed files with 38 additions and 35 deletions

View File

@ -2,8 +2,8 @@
import os
import django.core.handlers.wsgi
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "regluit.settings.please")
os.environ['CELERY_LOADER'] = 'django'
os.environ['DJANGO_SETTINGS_MODULE'] = 'regluit.settings.please'
application = django.core.handlers.wsgi.WSGIHandler()
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

View File

@ -354,31 +354,31 @@ class TransactionTest(TestCase):
self.assertEqual(t.type, EXECUTE_TYPE_CHAINED_INSTANT)
self.assertEqual(t.amount, D('12.34'))
class BasicGuiTest(TestCase):
def setUp(self):
self.verificationErrors = []
# This is an empty array where we will store any verification errors
# we find in our tests
# class BasicGuiTest(TestCase):
# def setUp(self):
# self.verificationErrors = []
# # This is an empty array where we will store any verification errors
# # we find in our tests
setup_selenium()
self.TEST_SERVER_URL = "http://ry-dev.dyndns.org"
self.selenium = webdriver.Firefox()
set_test_logging()
def testFrontPage(self):
sel = self.selenium
sel.get(self.TEST_SERVER_URL)
# if we click on the learn more, does the panel expand?
# click on a id=readon -- or the Learn More span
#sel.find_elements_by_css_selector('a#readon')[0].click()
#time.sleep(2.0)
# the learn more panel should be displayed
#self.assertTrue(sel.find_elements_by_css_selector('div#user-block-hide')[0].is_displayed())
# click on the panel again -- and panel should not be displayed
#sel.find_elements_by_css_selector('a#readon')[0].click()
#time.sleep(2.0)
#self.assertFalse(sel.find_elements_by_css_selector('div#user-block-hide')[0].is_displayed())
def tearDown(self):
self.selenium.quit()
# setup_selenium()
# self.TEST_SERVER_URL = "http://ry-dev.dyndns.org"
# self.selenium = webdriver.Firefox()
# set_test_logging()
# def testFrontPage(self):
# sel = self.selenium
# sel.get(self.TEST_SERVER_URL)
# # if we click on the learn more, does the panel expand?
# # click on a id=readon -- or the Learn More span
# #sel.find_elements_by_css_selector('a#readon')[0].click()
# #time.sleep(2.0)
# # the learn more panel should be displayed
# #self.assertTrue(sel.find_elements_by_css_selector('div#user-block-hide')[0].is_displayed())
# # click on the panel again -- and panel should not be displayed
# #sel.find_elements_by_css_selector('a#readon')[0].click()
# #time.sleep(2.0)
# #self.assertFalse(sel.find_elements_by_css_selector('div#user-block-hide')[0].is_displayed())
# def tearDown(self):
# self.selenium.quit()
class AccountTest(TestCase):

View File

@ -11,24 +11,24 @@ South==0.8.4
SPARQLWrapper==1.6.4
WebOb==1.2.3
WebTest==1.4.0
amqplib==1.0.2
amqp==1.4.9
anyjson==0.3.3
billiard==2.7.3.12
billiard==3.3.0.23
boto==2.8.0
#git+ssh://git@github.com/Gluejar/boto.git@2.3.0
celery==3.0.9
celery==3.1.23
certifi==2015.04.28
# pip installing pillow seems to delete distribute
# but having distribute in requirements starting to cause problems
# distribute==0.6.28
django-celery==3.0.9
django-celery==3.1.17
django-ckeditor==4.5.1
#django-email-change==0.2.3
git+git://github.com/eshellman/django-email-change.git@582112797466b9fb427ba3c4da3b14b426a28132
django-endless-pagination==2.0
django-extensions==0.9
django-jsonfield==0.9.10
django-kombu==0.9.4
#django-kombu==0.9.4
django-maintenancemode==0.10
django-mptt==0.7.4
django-nose-selenium==0.7.3
@ -47,7 +47,7 @@ github3.py==0.9.5
html5lib==1.0b3
httplib2==0.7.5
isodate==0.5.1
kombu==2.4.5
kombu==3.0.35
lxml==2.3.5
defusedxml==0.4.1
mechanize==0.2.5

View File

@ -462,9 +462,11 @@ DROPBOX_KEY = '4efhwty5aph52bd' #for unglue.it, just.unglue.it
# generated from rdhyee account
GITHUB_PUBLIC_TOKEN = 'f702409f913d7f9046f93c677710f829e2b599c9'
# https://github.com/celery/django-celery/blob/master/docs/introduction.rst#for-django-17-and-newer
SOUTH_MIGRATION_MODULES = {
'default': 'social.apps.django_app.default.south_migrations',
'tastypie': 'tastypie.south_migrations',
'djcelery': 'djcelery.south_migrations',
}
MOBIGEN_URL = "https://docker.gluejar.com:5001/mobigen"

View File

@ -1,5 +1,6 @@
from regluit.settings.common import *
ALLOWED_HOSTS = ['please.unglue.it']
DEBUG = False
TEMPLATE_DEBUG = DEBUG

View File

@ -98,7 +98,7 @@
- name: clone the regluit git repo into /opt/regluit
sudo: no
git: repo=ssh://git@github.com/Gluejar/regluit.git dest=/opt/regluit accept_hostkey=True force=yes version=sysadmin
git: repo=ssh://git@github.com/Gluejar/regluit.git dest=/opt/regluit accept_hostkey=True force=yes version=dj16ry
# installing mysql