ShaastraWebops / ERP14

The Enterprise Resource Planner for Shaastra 2014
0 stars 0 forks source link

Bug in Profile #22

Closed AbdealiLoKo closed 11 years ago

AbdealiLoKo commented 11 years ago

I pulled code right now, and it is giving some error. First error was "settings" not found in users/models.py .. when i put from erp import settings, that error went away.

Then got the error : Error: One or more models did not validate: users.userphoto: "photo_path": FileFields require an "upload_to" attribute. when i did syncdb

Could you fix ?

samirotiv commented 11 years ago

Error caused due to empty MEDIA_ROOT. Added to local_settings.

AbdealiLoKo commented 11 years ago

I'm still getting the error

Error: One or more models did not validate: users.userphoto: "photo_path": FileFields require an "upload_to" attribute.

While trying to "Validate models"

samirotiv commented 11 years ago

Like I said, don't leave your MEDIA_ROOT blank.