initial commit of django gms
gms/README
0 → 100644
GMS - The Gumby Management System | ||
================================= | ||
Written by David Adam <[email protected]> | ||
Derived from MemberDB by Danni Madeley | ||
GETTING STARTED EACH YEAR | ||
========================= | ||
To set up a new database, | ||
(as root on mussel) | ||
mussel:~# su - postgres | ||
[email protected]:~$ psql | ||
postgres=# create database uccmemberdb_20XX; | ||
postgres=# GRANT ALL on DATABASE uccmemberdb_20XX to uccmemberdb; | ||
Adjust /services/gms/gms/settings_local.py to point to the new database (usually | ||
changing the databse name is enough). | ||
If you want to make changes to the data you collect, now is the time to do it. | ||
Edit /service/gms/memberdb/models.py | ||
In /services/gms, run `python manage.py makemigrations` to prepare the databae | ||
updates. | ||
mussel:~# cd /services/gms/ | ||
mussel:/services/gms# python manage.py validate | ||
0 errors found | ||
mussel:/services/gms# python manage.py syncdb | ||
... | ||
You just installed Django's auth system, which means you don't have any | ||
superusers defined. | ||
Would you like to create one now? (yes/no): no | ||
Now restart MemberDB by runing | ||
mussel:/services/gms# touch gms/wsgi.wsgi | ||
Now go ahead and log in to the website. It will be totally fresh, with all | ||
committee members being made superusers on first login. | ||
If you would like to allow non-committee users to help out with data entry, | ||
ask them to log in. After the login attempt is denied, you will be able to | ||
find their name in the Auth/Users area of the site. Turn on their staff status | ||
and allow them access to the memberdb permissions. | ||
A CSV download function has been added - select the members you want to | ||
download in the administration interface, then choose Download as CSV file | ||
from the Actions menu. |
This diff is collapsed.
This diff is collapsed.
gms/django_auth_ldap/dn.py
0 → 100644
This diff is collapsed.
gms/gms/__init__.py
0 → 100755
gms/gms/settings.py
0 → 100644
gms/gms/settings_local.py
0 → 100644
# Django settings for uccmemberdb project. | ||
DEBUG = True | ||
ADMINS = ( | ||
('UCC Committee', '[email protected]'), | ||
('David Adam', '[email protected]'), | ||
) | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | ||
'NAME': '/home/frekk/Documents/projects/usermgmt-ucc/uccportal/.db/members.db', # Or path to database file if using sqlite3. | ||
'USER': '', # Not used with sqlite3. | ||
'PASSWORD': '', # Not used with sqlite3. | ||
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. | ||
'PORT': '', # Set to empty string for default. Not used with sqlite3. | ||
} | ||
} | ||
# Make this unique, and don't share it with anybody. | ||
SECRET_KEY = 'oB8fVqxJPfeL0MomVCwExU13H3ajZd9vWFgCpL5RMuhR4JOqSXemYasppIdimhLk' | ||
ALLOWED_HOSTS = ['secure.ucc.asn.au'] |
gms/gms/urls.py
0 → 100644
gms/gms/wsgi.py
0 → 120000
gms/gms/wsgi.wsgi
0 → 100755
gms/manage.py
0 → 100755
gms/memberdb/__init__.py
0 → 100644
gms/memberdb/actions.py
0 → 100644
gms/memberdb/admin.py
0 → 100644
gms/memberdb/apps.py
0 → 100644
Please register or sign in to comment