This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
58 lines (40 loc) · 1.61 KB
/
README
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
Getting Started
===============
Get Python2.6 or Python2.7 (Whatever comes bundled with your system is
preferred, but otherwise 2.7 is better)
Afterwards, you need to get pip and virtualenv (+virtualenvwrapper)
If you want the latest pip+virtualenv
-------------------------------------
Use your local package manager to get easy_install (usually packagename
is python-setuptools).
$> easy_install pip
... stuff happens
$> pip install virtualenvwrapper
If you're lazy and want the fast way
------------------------------------
Find python-pip and python-virtualenv and pip install virtualenvwrapper
Setting Up Dev Environment
==========================
The following will set up a virtualenv named 'hicap'. Feel free to name
it whatever you want.
$> mkvirtualenv hicap
$> pip install -r requirements.txt
The next time you return to your machine just type:
$> workon hicap
The requirements file is in the root of the repo. It contains a list
of all packages for pip to install. You might need to run the pip
install later on when further changes introduce new dependencies.
Local Database
==============
The local settings uses the sqlite backend. One will be created when you do
a syncdb:
$> python manage.py syncdb
If you want to start from scratch (modified a model?), just delete the sqlite3
file and do a syncdb again. Later on we'll make a data dump to fill in db
data, or actually do proper migrations (using South).
Running Dev Server
==================
Make sure you're in your virtualenv
$> python manage.py runserver
You can also be all 'runserver 0.0.0.0:8080' to pick your IP and ports.
Yeah, it's that simple.