Chepkeitany / django-profile

Automatically exported from code.google.com/p/django-profile
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Demo not working in ubuntu, possibly doesn't install media #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I checked out django-profile and installed it in ubuntu with

sudo python setup.py install

When I ran the demo server and went to localhost:8000/accounts  it gives the 
error pasted at the end of the message.

I put some debug into views.py, and line 60 is raising UserProfileMediaNotFound.

[code]
if not os.path.isdir(os.path.join(settings.MEDIA_ROOT, "userprofile")):
    raise UserProfileMediaNotFound
[/code]

I put in some instrumentation:
print os.path.join(settings.MEDIA_ROOT, "userprofile")
/usr/local/lib/python2.6/dist-packages/userprofile-0.6-py2.6.egg/media/userprofi
le

The egg folder exists, but not media.   To fix this, I recommend putting the 
media inside the egg.

[Side note:  if I put the instrumentation into settings.py, MEDIA root points 
to where I have the project, not the egg folder(!?)]

UserProfileMediaNotFound at /accounts/

Request Method:     GET
Request URL:    http://127.0.0.1:8000/accounts/
Django Version:     1.2.3
Exception Type:     UserProfileMediaNotFound
Exception Value:    

Exception Location: 
    /usr/local/lib/python2.6/dist-packages/userprofile-0.6-py2.6.egg/userprofile/vi
ews.py in <module>, line 60
Python Executable:  /usr/bin/python
Python Version:     2.6.6
Python Path:    ['/home/stu/develop/python/django-profile-read-only/demo', 
'/usr/local/lib/python2.6/dist-packages/django_profiles-0.2-py2.6.egg', 
'/usr/local/lib/python2.6/dist-packages/django_json_rpc-0.6.1-py2.6.egg', 
'/usr/local/lib/python2.6/dist-packages/userprofile-0.6-py2.6.egg', 
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', 
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', 
'/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', 
'/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', 
'/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', 
'/usr/lib/python2.6/dist-packages/gtk-2.0', 
'/usr/lib/pymodules/python2.6/gtk-2.0', 
'/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode']

Original issue reported on code.google.com by stu.a...@gmail.com on 15 Nov 2010 at 11:44

GoogleCodeExporter commented 9 years ago
It should probably be noted in the documentation that google data api is needed 
for the demo too.

Original comment by stu.a...@gmail.com on 15 Nov 2010 at 11:57