intra server communication using django channels

2019-04-25 Thread Ulises Jimenez
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

Re: Extending the User model

2008-10-17 Thread Ulises
> 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

Re: form fields

2008-10-10 Thread Ulises
> 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

Re: Django book says MSSQL works with 1.0...?

2008-10-09 Thread Ulises
> 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

Re: Django book says MSSQL works with 1.0...?

2008-10-09 Thread Ulises
> "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'

Re: Generating widget based on class type for a Custom Form

2008-10-07 Thread Ulises
> 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

Re: Access logged in user in models?

2008-10-04 Thread Ulises
> 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 --~--~-~--~~~---

Re: Access logged in user in models?

2008-10-04 Thread Ulises
> 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