Outstanding Issues

No bug tracker.

Installation Instructions

Links

Akismet

Doing moderation is quite simple (missing filling in the user agent and referrer, both available as request.META['HTTP_USER_AGENT'] and request.META['HTTP_REFERRER'] but need some easy way to move them down the callstack.

Workshop Timeline

Other sites - as a reference for design decisions

How To Clone the site (ubuntu specific)

Not updated - there is now settings_local.py that is in .gitignore and imported if exists. Since this is the first step in many things - from testing new features to transfering to another hosting solution (can you say I'm frustrated with dreamhosters disbarring my

  1. sudo apt-get install mysql-server libhdate-python python-django git-core ipython python-mysqldb python-imaging
  2. /etc/init.d/mysql reset-password
  3. get a mysql dump of the database (using the phpmyadmin interface export) into mysql.dump
  4. clone mysql using utf charset: mysql --default-character-set=utf8 -uuser -ppassword < mysql.dump

  5. git clone ..
  6. add the following at the end of settings.py (and later save as a local settings_local.py)

   1 #--------------------------- Overrides ---------------------
   2 # Overriding stuff for local testing - remove when copying
   3 # back to original
   4 import os
   5 try:
   6     if open('/etc/hostname').read().strip() == 'your_hostname_contents':
   7         DATABASE_HOST = ''
   8         DATABASE_USER = 'user'
   9         DATABASE_PASSWORD = 'password'
  10         BASE_DIR = 'location_of_citytree_git_clone'
  11         MEDIA_ROOT = BASE_DIR + '/siteMedia'
  12         MEDIA_URL = 'http://localhost:8001/siteMedia/'
  13         ADMIN_MEDIA_PREFIX = 'http://localhost:8001/admin_media/'
  14         TEMPLATE_DIRS = (
  15             BASE_DIR + '/templates'
  16         )
  17         HEADER_MASK = BASE_DIR + '/frontpage/mask.png' #mask for main page header logo
  18         DEBUG = True
  19         TEMPLATE_DEBUG = DEBUG
  20 except:
  21     pass
  1. Use something to serve the static pages - I tried SimpleHTTPServer, it is way too slow on a duron 1200, so I switched to lighthttpd.

Router

jQuery Snippets

script type="text/javascript">
    $(function () {
            $("input#addWorkshopEvent").click(function(event) {                                                                     $("tr#rowToAddEventBefore").prepend("<tr><td>bla</td></tr>");
                });                                                                                                             });
</script>


CategoryWeb

CityTree (last edited 2011-04-01 09:52:50 by AlonLevy)