Changeset 2266 in main for trunk/docs


Ignore:
Timestamp:
03/28/13 15:45:47 (6 years ago)
Author:
pcosquer
Message:

add ability to set an avatar

A user can set his avatar by editing his data (name, email)
The avatar is shown instead of the user icon in the reference area and
in each identity card (navigate & browse)

UserProfile? model: user key is now a one to one field (no real schema change, it was a unique foreign key)

Avatar size is limited to 100KB (MAX_AVATAR_SIZE settings)

Migration required (./manage.py migrate plmapp)
Apache must be able to read/write in the media/avatars directory

see #151

Location:
trunk/docs/en/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/en/admin/apache/simple_1.3.conf

    r2081 r2266  
    33WSGIPassAuthorization On  
    44 
    5 <Location /media/thumbnails> 
     5<Location /media/> 
    66    WSGIAccessScript /var/django/openPLM/trunk/openPLM/apache/access_restricted.wsgi 
    77</Location> 
  • trunk/docs/en/admin/apache/ssl_1.3.conf

    r2081 r2266  
    3030 
    3131    WSGIScriptAlias / /var/django/openPLM/trunk/openPLM/apache/django.wsgi 
    32     <Location /media/thumbnails> 
     32    <Location /media/> 
    3333        WSGIAccessScript /var/django/openPLM/trunk/openPLM/apache/access_restricted.wsgi 
    3434    </Location> 
  • trunk/docs/en/admin/ht_2_install_server.rst

    r2163 r2266  
    178178Change rights for the directory where thumbnails will be stored: 
    179179     
    180     * ``chown www-data:www-data /var/django/openPLM/trunk/openPLM/media/thumbnails`` 
    181     * ``chown www-data:www-data /var/django/openPLM/trunk/openPLM/media/public/thumbnails`` 
    182  
     180    * ``chown -R www-data:www-data /var/django/openPLM/trunk/openPLM/media/`` 
    183181 
    184182Collect staticfiles 
  • trunk/docs/en/admin/upgrade/upgrade-1.3.rst

    r2163 r2266  
    135135static files 
    136136 
     137avatars directory 
     138 
     139 
Note: See TracChangeset for help on using the changeset viewer.