Extending the user profile. Admin creation

2012-04-17 Thread abisson
Good evening, Here is my situation: 1. I extended the user profile in order to add custom fields. 2. I added the model to the User Admin Model, so when I am adding a user, I can fill in directly the fields to create the profile. 3. Now, if I don't add ANYTHING in these new custom us

YAML Fixture is not working. DeserializationError

2012-04-09 Thread abisson
Good afternoon, I am trying to do: python manage.py syncdb and I always get this error: Problem installing fixture '.../translations/fixtures/initial_data.yaml': Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/

Fixtures for default user (admin)

2012-04-08 Thread abisson
Hi, So I have the following directories: myproject myproject accounts fixtures initial_data.yaml Now, inside accounts, I have a class called UserProfile. In the fixtures directory, I added initial_data.yaml, but it is not working. Basically, I want to create a defau

Re: Editing custom user profiles information in the admin panel

2012-04-06 Thread abisson
e. Syncdb > and you can edit. > Hth > > On 6 apr, 05:56,abisson wrote: > > > > > > > > > Good evening, > > > I just tried the followinghttps://docs.djangoproject.com/en/1.4/topics/auth/ > > in order to add some custom fields to my users. I just look

Editing custom user profiles information in the admin panel

2012-04-06 Thread abisson
Good evening, I just tried the following https://docs.djangoproject.com/en/1.4/topics/auth/ in order to add some custom fields to my users. I just looked in the DB and admin panel, and these new fields were not added to the auth_user table, nor the User Admin Panel. I created a new app that contai

Why using Generic Views?

2012-04-03 Thread abisson
Good evening, I just finished the Django 1.4 Tutorial, and I really don't understand the point of Generic Views in Django? As far as I can see, we wrote more code than before, and what other example would make the Generic Views better than normal views? Thanks for the clarifications! -- You rec