To support django-sync-server (A reusable application which implements a Mozilla Labs Weave server for Django.) you need two things: the django-sync-server app and the tiny PyLucid glue plugin:
If you don’t have git, but subversion, you can checkout with this command:
Info: You can also install django-sync-server with pip/easy_install into your virtualenv!
If you don’t have git, but subversion, you can checkout with this command:
You must insert the following into your local_settings.py file:
You need to create the django-sync-server database tables. Run syncdb, e.g.:
Create a PyLucid plugin page with:
Use the App label external_plugins.pylucid_weave
It's a good idea to protect this page! e.g.: set a PermitViewGroup under PageTree permissions.
On the plugin page you see only the weave server url. If you create the PageTree /weave/, then you can test it with with url:
If UserName doesn't exist, you should only see 1, if user exist you should see 0
Goto weave client preferences, e.g.:
Switch from Mozilla Weave Server to Use a custom server.
The Server URL can you see on the PyLucid PluginPage. Copy&Paste it from there.
For User Name use your PyLucid Account username.
Important: For Password read next chapter:
The django users needs two permission:
You can use different authentication methods.
If you have secure https, then you can use your pylucid account password in the weave client. If you don't have https you should use PyLucid SHA-JS-Login, read Https work-a-round and next chapter:
To use PyLucid own JS-SHA1-Login, just login manually on your PyLucid web page and start sync after this.
It's important to set not your real PyLucid Password into weave client preferences! Otherwise your PyLucid password would be send via weave client in plain text!
Put random stuff info weave client password field. Then your weave client can't login by himself (You will get a "username/password" message).
Before the client can connect and sync, you must manually login on your
PyLucid web page.
You can test, if database models works, with this url:
If UserName doesn't exist or you didn't login as this user, you get a Permission denied. If UserName is loggin, you should get a json response.
django-processinfo: 5.1 ms of 302.9 ms (1.7%)