ubernostrum / django-profiles

A user-profile application for Django.

Changed (Δ3.9 KB):

raw changeset »

docs/overview.txt (89 lines added, 0 lines removed)

profiles/urls.py (15 lines added, 0 lines removed)

Up to file-list docs/overview.txt:

@@ -39,6 +39,86 @@ merely to store user preferences this ca
39
39
.. _Chapter 12 of the Django book: http://www.djangobook.com/en/beta/chapter12/
40
40
41
41
42
Installation
43
============
44
45
In order to use django-profiles, you will need to have a
46
functioning installation of Django 1.0 or newer.
47
48
There are three basic ways to install django-profiles: automatically
49
installing a package using Python's package-management tools, manually
50
installing a package, and installing from a Mercurial checkout.
51
52
53
Using a package-management tool
54
-------------------------------
55
56
The easiest way by far to install django-profiles and most other
57
interesting Python software is by using an automated
58
package-management tool, so if you're not already familiar with the
59
available tools for Python, now's as good a time as any to get
60
started.
61
62
The most popular option currently is `easy_install`_; refer to its
63
documentation to see how to get it set up. Once you've got it, you'll
64
be able to simply type::
65
66
    easy_install django-profiles
67
68
And it will handle the rest.
69
70
Another option that's currently gaining steam (and which I personally
71
prefer for Python package management) is `pip`_. Once again, you'll
72
want to refer to its documentation to get up and running, but once you
73
have you'll be able to type::
74
75
    pip install django-profiles
76
77
And you'll be done.
78
79
80
Manually installing the 0.2 package
81
-----------------------------------
82
83
If you'd prefer to do things the old-fashioned way, you can manually
84
download the `django-profiles 0.2 package`_ from the Python
85
Package Index. This will get you a file named
86
"django-profiles-0.2.tar.gz" which you can unpack (double-click on
87
the file on most operating systems) to create a directory named
88
"django-profiles-0.2". Inside will be a script named "setup.py";
89
running::
90
91
    python setup.py install
92
93
will install django-profiles (though keep in mind that this
94
defaults to a system-wide installation, and so may require
95
administrative privileges on your computer).
96
97
98
Installing from a Mercurial checkout
99
------------------------------------
100
101
If you have `Mercurial`_ installed on your computer, you can also
102
obtain a complete copy of django-profiles by typing::
103
104
    hg clone http://bitbucket.org/ubernostrum/django-profiles/
105
106
Inside the resulting "django-profiles" directory will be a
107
directory named "profiles", which is the actual Python module for
108
this application; you can symlink it from somewhere on your Python
109
path. If you prefer, you can use the setup.py script in the
110
"django-profiles" directory to perform a normal installation, but
111
using a symlink offers easy upgrades: simply running ``hg pull -u``
112
inside the django-profiles directory will fetch updates from the
113
main repository and apply them to your local copy.
114
115
116
.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall
117
.. _pip: http://pypi.python.org/pypi/pip/
118
.. _django-profiles 0.2 package: http://pypi.python.org/pypi/django-profiles/0.2
119
.. _Mercurial: http://www.selenic.com/mercurial/wiki/
120
121
42
122
Basic use
43
123
=========
44
124
@@ -106,3 +186,12 @@ to prevent public display of their profi
106
186
107
187
.. _the list_detail.object_list generic view: http://www.djangoproject.com/documentation/generic_views/#django-views-generic-list-detail-object-list
108
188
189
If you spot a bug
190
=================
191
192
Head over to this application's `project page on Bitbucket`_ and
193
check `the issues list`_ to see if it's already been reported. If not,
194
open a new issue and I'll do my best to respond quickly.
195
196
.. _project page on Bitbucket: http://www.bitbucket.org/ubernostrum/django-profiles/overview/
197
.. _the issues list: http://www.bitbucket.org/ubernostrum/django-profiles/issues/

Up to file-list profiles/urls.py:

@@ -5,6 +5,21 @@ Recommended usage is to use a call to ``
5
5
root URLConf to include this URLConf for any URL beginning with
6
6
'/profiles/'.
7
7
8
If the default behavior of the profile views is acceptable to you,
9
simply use a line like this in your root URLConf to set up the default
10
URLs for profiles::
11
12
    (r'^profiles/', include('profiles.urls')),
13
14
But if you'd like to customize the behavior (e.g., by passing extra
15
arguments to the various views) or split up the URLs, feel free to set
16
up your own URL patterns for these views instead. If you do, it's a
17
good idea to keep the name ``profiles_profile_detail`` for the pattern
18
which points to the ``profile_detail`` view, since several views use
19
``reverse()`` with that name to generate a default post-submission
20
redirect. If you don't use that name, remember to explicitly pass
21
``success_url`` to those views.
22
8
23
"""
9
24
10
25
from django.conf.urls.defaults import *