[PYTHON] Introduction of trac (Windows + trac 1.0.10)
Put it on Windows 32bit.
install
- Install python 2.x ... Download and run Python 2.7.11 Windows 32bit from https://www.python.org/downloads/. It is convenient to add it to path with just for me. Launch a command prompt and python --version responds with Python 2.7.11.
- Set up a proxy for pip. set HTTPS_PROXY = http: // username: password @ hostname: port
- Run pip install trac. It also installs the dependent setuptools and genshi. Also include babel, pytz, pygments.
Start with tracd
- Create a project directory. C: \ projects
- cd / d C: \ projects and run trac-admin myproject initenv and follow the wizard to initialize
- Create a file named htpasswd with the content
admin: $ apr1 $ nMK8buQS $ XHSkfP45PEnpFQIxDxn / 70
. Or ```admin: {SHA} 0DPiKuNIrrVmD8IUCuw1hQxNqZc sequentially`
- trac-admin / projects / myproject permission add admin TRAC_ADMIN
- tracd --env-parent-dir C: \ projects --basic-auth = "*, / projects / myproject / conf / htpasswd, TRAC"
- Click login in the upper right corner and log in as admin: admin
Launch from Eclipse Pydev
- Install the JDK
- Download and unzip Eclipse
- Back up the configuration as configuration.org
- Start Eclipse. Specify \ workspace
- Search for python in the Eclipse Marketplace and install pydev
- Create a pydev project
trac
with Ctrl-N. Specify Python Interpreter on the way. You can proceed with Quick Auto Config
- Copy Scripts \ tracd-script.py into the Eclipse workspace and register with run as --Python run. I get an error, so stop.
- In the run configuration, add the following to the arguments:
--env-parent-dir ${project_loc:trac}/projects
--basic-auth="*,${project_loc:trac}/projects/htpasswd,Trac"