forked from opendataphilly/Open-Data-Catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
61 lines (45 loc) · 2.02 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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