-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
46 lines (39 loc) · 2.09 KB
/
INSTALL
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
Requirements:
* Python 2.4 or later
These instructions assume that you don't already have a Django deployment, because that's the most common case at the moment. If you're trying to slot this into an existing Django project, you probably know what you're doing anyway.
Step one:
Installing Django. See http://www.djangoproject.com/documentation/install/ for full instructions. Skip this step if you already have Django 0.97 or later installed.
'cd' to where you want to install Django. Django will be run from this location.
svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk
cd django-trunk
SP=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
sudo ln -s `pwd`/django $SP/django
sudo ln -s `pwd`/django/bin/django-admin.py /usr/local/bin/django-admin.py
And that's it.
Step two:
Installing MaybeLater.
'cd' to the directory you'd like to install MaybeLater.
svn checkout http://maybelater.googlecode.com/svn/trunk/ maybelater-trunk
SP=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
cd maybelater-trunk
sudo ln -s `pwd`/maybelater $SP/maybelater
Step three:
Importing MaybeLater to Django.
still in the maybelater-trunk folder:
ML=`pwd`
cd to the folder you'll use for running maybelater from for testing
cp $ML/examples/projectroot/* .
Now edit settings.py. Please read all the comments before you run it - some are important.
Temporarily, only for testing, you can edit urls.py to enable serving the css pages in the django testserver by removing the leading # from the line starting #(r'^css - be sure to put this back before you deploy maybelater 'for real'
Now set up your database for use with maybelater by running
python manage.py syncdb
You will be prompted to create an account.
Now you're ready to test maybelater!
python manage.py runserver
Now point your webbrowser at 127.0.0.1:8000 and enjoy
FIXME: Create project, etc.
Testing the installation:
cd into your Django project dir.
python manage.py runserver
Getting your site live:
I've only deployed MaybeLater with lighttpd and FastCGI, so that's what these instructions use.