aamalig / django-profile

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

django-profile and python-profile #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
django-profile an the python-profile package, has the same name.

With python-profile installed
In [79]: !python manage.py syncdb
Creating table account_lostpassword
Creating table account_emailvalidate
Installing index for account.LostPassword model
Installing index for account.EmailValidate model

Without python-profile installed
In [80]: !python manage.py syncdb
Creating table profile_profile
Creating table profile_country
Creating table profile_continent
Creating table profile_avatar
Installing index for profile.Profile model
Installing index for profile.Country model
Installing index for profile.Continent model
Installing index for profile.Avatar model

My fix, was uninstalling python-profile

Original issue reported on code.google.com by marioces...@gmail.com on 14 Apr 2008 at 4:45

GoogleCodeExporter commented 8 years ago
Sorry Mario, I don't understand this report.
On django-profile you have 2 apps: "account", which is the responsable of 
dealing
with account utilities, and "profile", which is the responsable of the profile 
managing.

Don't known about python-profile module.

I'm from Spain, do you prefer that we talk in Spanish? 

Original comment by david.ru...@gmail.com on 14 Apr 2008 at 6:46

GoogleCodeExporter commented 8 years ago
David, sucede que uso la librería de profiler[1] en mis aplicaciones.

Ya que las aplicaciones tienen el mismo nombre, hay conflictos al llamarla. 
Puedes
fijarte en http://packages.ubuntu.com/gutsy/python-profiler que se cargan con el
mismo nombre (/usr/lib/python2.5/profile.py).

entonces hacer: import profile, puede cargar la app de django-profile o la
python-profiler, de acuerdo a que path de python esta primera en cargarse. En 
este
caso puedo usar una o la otra, no ambas. :(

Si estas en Ubuntu, se puede fácilmente repetir el error. Solo instala: sudo 
apt-get
install python-profiler. Y trata de hacer syncbd

[1] http://docs.python.org/lib/profile.html

Original comment by marioces...@gmail.com on 15 Apr 2008 at 6:01

GoogleCodeExporter commented 8 years ago

Original comment by david.ru...@gmail.com on 14 Jun 2008 at 11:21