/Open-Data-Catalog

Open Data Catalog is an open-source version of the site code behind OpenDataPhilly.org, a portal that provides access to over 100 open data sets, applications, and APIs related to the Philadelphia region. Open Data Catalog is intended to display information and links to publicly available data in an easily searchable format. The code also includes options for data owners to submit data for consideration and for registered public users to nominate a type of data they would like to see openly available to the public. Written using Django, Python and PostgreSQL.

Primary LanguagePythonMIT LicenseMIT

Recommended stack:
    Apache2
    mod-wsgi
    Python 2.7
    PostgreSQL 8.4
    Django 1.3
    
Dependancies from aptitide:
    git libapache2-mod-wsgi sendmail postgresql-8.4 python-psycopg2 python-imaging 
    python-simplejson python-httplib2 python-simpletools python-twitter

Dependancies from web:
	wget http://www.djangoproject.com/download/1.3/tarball/
	wget http://sourceforge.net/projects/dbfpy/files/dbfpy/2.2.5/dbfpy-2.2.5.tar.gz/download
    wget http://thumbnail.sorl.net/sorl-thumbnail-3.2.5.tar.gz
	wget https://bitbucket.org/ubernostrum/django-registration/downloads/django-registration-0.8-alpha-1.tar.gz
	wget http://django-pagination.googlecode.com/files/django-pagination-1.0.5.tar.gz
	wget https://github.com/dcramer/django-ratings/tarball/d0ae149d112c7e5f9f40bb04028ceac4bf4b0e0d
	wget https://github.com/simplegeo/python-oauth2/tarball/master
    wget http://pypi.python.org/packages/source/r/recaptcha-client/recaptcha-client-1.0.6.tar.gz
	wget https://github.com/mlavin/django-sorting/tarball/master

		
Update apache2 conf
	/etc/apache2/sites-available/default add >
		WSGIScriptAlias /hidden /<project location>/odp.wsgi
        Alias /media /<project location>/media
        Alias /static /<project location>/static

	create /<project location>/odp.wsgi >
		import os, sys
		sys.path.insert(0, '/home/azavea/NPower_OpenDataPhilly')

		import settings

		import django.core.management
		django.core.management.setup_environ(settings)
		utility = django.core.management.ManagementUtility()
		command = utility.fetch_command('runserver')

		command.validate()

		import django.conf
		import django.utils

		django.utils.translation.activate(jangod.conf.settings.LANGUAGE_CODE)

		import django.core.handlers.wsgi

		application = django.core.handlers.wsgi.WSGIHandler()
		
		
Setup source
	Clone project
	
	Make media folder:
		mkdir media
		chmod 775 media
	Create a symbolic link to admin media:
		ln -s /usr/local/lib/python2.7/dist-packages/django/contrib/admin admin_media