mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-05-16 03:23:10 +00:00
Merge pull request #8 from robertour/patch-2
Calling syncdb in the usage instructions
This commit is contained in:
commit
74356dbd79
1 changed files with 7 additions and 3 deletions
|
|
@ -38,7 +38,11 @@ that are required. A minimal integration can work like this:
|
|||
'avatar',
|
||||
)
|
||||
|
||||
2. Add the avatar urls to the end of your root urlconf. Your urlconf
|
||||
2. Update your database::
|
||||
|
||||
python manage.py syncdb
|
||||
|
||||
3. Add the avatar urls to the end of your root urlconf. Your urlconf
|
||||
will look something like::
|
||||
|
||||
urlpatterns = patterns('',
|
||||
|
|
@ -46,12 +50,12 @@ that are required. A minimal integration can work like this:
|
|||
(r'^avatar/', include('avatar.urls')),
|
||||
)
|
||||
|
||||
3. Somewhere in your template navigation scheme, link to the change avatar
|
||||
4. Somewhere in your template navigation scheme, link to the change avatar
|
||||
page::
|
||||
|
||||
<a href="{% url 'avatar_change' %}">Change your avatar</a>
|
||||
|
||||
4. Wherever you want to display an avatar for a user, first load the avatar
|
||||
5. Wherever you want to display an avatar for a user, first load the avatar
|
||||
template tags::
|
||||
|
||||
{% load avatar_tags %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue