if this is possible and if so where I
could find an example or documentation about this use case?
Thanks,
Ulises
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an em
> AFAICT, there's some work going on to allow to replace the default
> User model with a custom one. But so far, the recommended solution is
> indeed to use a UserProfile. Else, there's the hackish (IOW : *not*
> recommended) solution - monkeypatching the User model
> http://www.amitu.com/blog/200
> class GameForm(ModelForm):
>class Meta:
>model = Game
>time_days_W = forms.CharField(max_length=128, verbose_name="time")
>fields = ('white', 'black', 'time_days_W', 'inc_time')
The field definition should be in the scope of the main class definition as in:
class Ga
> What server did you use?
>
> If not Apache + mod-python or mod-wsgi, please say more about your
> setup?
I haven't deployed just yet as I'm still developing. I'm open to
suggestions really :)
U
--~--~-~--~~~---~--~~
You received this message because you are sub
> "As of version 1.0, Django supports five database engines:
> [...]
>* Microsoft SQL Server (http://www.microsoft.com/sql/)"
>
> I also see these seemingly-active django + MSSQL projects in Google
> code:
>
> http://code.google.com/p/django-mssql/
> http://code.google.com/p/django-pyodbc/
I'
> and for other controls, I need to generate
>
How about using widget.attrs?
http://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms.Widget.attrs
Best,
U
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
> Accessing the user from within the model seems somehow like a bad
> idea, but I can't see an other way to do this.
How about doing it in a view where you have access to the user object?
I reckon this is the type of stuff you normally do in views?
U
--~--~-~--~~~---
> If I would do this in the view, I couldn't do something like this in
> the template:
>
> {% for category in categories %}
> {% for expense in category.get_monthly_expenses %}
> ...
> {% endfor %}
> {% endfor %}
>
> If I do it in the view, the only way I can think of it could be
> accomplished by
8 matches
Mail list logo