-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
git clone git@github.com:uw-it-aca/myuw-selenium.git
If this is your first time installing, then you will need to install lib32z1-dev, libxslt1-dev, libxml2-dev, and python-dev on your system.
cd myuw-selenium/
virtualenv .
. bin/activate
pip install -r requirements.txt
django-admin.py startproject project .
edit project/settings.py:
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'restclients', 'myuw_mobile', 'myuw_selenium', 'templatetag_handlebars', 'compressor', 'django_client_logger','supporttools', 'userservice', )
MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.RemoteUserMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'userservice.user.UserServiceMiddleware', )
AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.RemoteUserBackend', )
RESTCLIENTS_ADMIN_GROUP = "G"
USERSERVICE_ADMIN_GROUP = "G"
MEDIA_URL = "/media/"
AUTHZ_GROUP_BACKEND = 'authz_group.authz_implementation.all_ok.AllOK'
project/urls:
urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^mobile/', include('myuw_mobile.urls')), url(r'^restclients/', include('restclients.urls')), url(r'^support/', include('supporttools.urls')), url(r'^users/', include('userservice.urls')), )
Currently only the myuw improve_coverage branch can be installed via pip. For now, after running pip install -r requirements.txt, you can run this, and ignore the errors:
pip install -e git://github.com/uw-it-aca/myuw.git@qa#egg=MyUW
run tests: REMOTE_USER=javerage python manage.py test myuw_selenium