mjumbewu/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.

★ 1Forks 1PythonGitHub ↗Compare

README

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-imaging 
    python-simpletools libpq-dev
    
    (The following may be obtained through PyPI with the requirements.txt file)
    python-psycopg2 python-simplejson python-httplib2 python-twitter

Dependancies from web (can be installed with the pip requirements.txt file):
	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://effbot.org/downloads/Imaging-1.1.7.tar.gz
	wget http://pypi.python.org/packages/source/p/pytz/pytz-2011h.tar.gz#md5=37248de48c28e1ae4ffb5ee47a298e4c
	

Dependancies that require patching:
    git clone git://github.com/directeur/django-sorting.git
		Apply patch to django-sorting: https://github.com/directeur/django-sorting/issues#issue/8
			-including comment by Alsaihn
		sudo cp django-sorting -R /usr/local/lib/python2.6/dist-packages/django_sorting

		
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
	
	Copy settings.py.sample to settings.py and fill in the appropriate values.
	
	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

Contributors

mjumbewu

Issues