Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 2.06 KB

README.md

File metadata and controls

79 lines (57 loc) · 2.06 KB

Problems after move:

Pages have eventtype -> schema.org problem Change notifications don't seem to happen for eventtypes


Install:

Install Python 2.7, 64 bit Install MySQL-python, 64 bit (http://www.lfd.uci.edu/~gohlke/pythonlibs/, MySQL-python-1.2.4.win-amd64-py2.7.‌exe) Install Pillow, 64 bit (http://www.lfd.uci.edu/~gohlke/pythonlibs/, Pillow-2.0.0.win-amd64-py2.7.‌exe) Install distribute and pip, through pycharm pip install virtualenv virtualenv --system-site-packages PATH_TO_PROJECT\venv PATH_TO_PROJECT\venv\scripts\activate pip install -r requirements.txt

Get DB Dump import db Flush thumbnail cache ("DELETE FROM thumbnail_kvstore") ss migrate fileupload ss migrate organisation ss migrate programming

JavaScript libs:

static/js/libs: jquery 1.10.1 jquery-ui custom, with humanity theme 1.10.3 knockout.js 2.2.1 knockout.mapping-2.4.1.js

Copy images from whereever to the various image folders.

Edit an item and poke the image selector to pre-populate the image cache.


TODO:

Add a notes field to all events.

images moved from static/content to static/events and static/import to static/events

Thoughts:

Add straight from month list. landing page should be the "this month" page symbols for event types? onhover highlighting similar events "upcoming highlights" page Tooltips for info on "confirmed" and "approved" icons. Approvals logic needs finishing.

Make people aware of:

Distinction between Approved and Confirmed.


Export docs:

from content.models import Document from django.template import loader, Context import string

t = loader.get_template('content/document-export.html') #ds = Document.objects.filter(id=412) ds = Document.objects.all() valid_chars = "-_.() %s%s" % (string.ascii_letters, string.digits)

for d in ds: fn = '%03d-%s-%s.html' % (d.id, d.author, d.title) fn = ''.join(c for c in fn if c in valid_chars) fn = fn.replace(' ','_') print fn with open('db_dumps/docs/%s' % fn, 'w') as o: o.write(t.render(Context({'o': d})).encode('utf-8'))