Re: Inconsistent Django test results depending upon how the test is called in Django 1.5.1 running on Python 2.7.4

2019-03-27 Thread Ruben Alves
I had a similar problem and I solved it by making all tests inherit from `django.test.TestCase`. I had some tests inheriting from `unittest.TestCase`, which doesn't reset the database after the test is finished. I found the answer on https://stackoverflow.com/a/436795/6490637 Em segunda-feira

Re: Looking for a Django co-founder

2019-03-15 Thread Ruben Alves
Hi Zack I see you sent a similar email like a month ago (or at least was another user with the same idea) Back then I didn't reply, but one month later I see you are still talking about that, so you seem to be persistent, which I believe is the key for success. I have been working with Django

Re: Single Sign On (SSO) across multiple django projects

2019-01-16 Thread Ruben Alves
I had to do the same in the company I work for recently and after some investigation we decided to use OpenID Connect: http://django-oidc-provider.readthedocs.io Em quarta-feira, 16 de janeiro de 2019 04:14:18 UTC, Dennis Sepeur escreveu: > > Hi, I've developed an monolithic django project over

Re: tutorial on mongodb and django

2017-12-11 Thread Ruben Alves
I've seen someone posting here some time ago the Djongo (Django + Mongo): https://github.com/nesdis/djongo Em domingo, 10 de dezembro de 2017 19:34:18 UTC-2, Krishna Neupane escreveu: > > Hey I am trying to learn Django and wanted to implement it with mongoDB. > Are there any pointers where I co

Re: How to store a key to a something that can be either a person or an organization?

2017-10-20 Thread Ruben Alves
You can use Generic Key: https://docs.djangoproject.com/en/1.11/ref/contrib/contenttypes/ Em sexta-feira, 20 de outubro de 2017 07:59:35 UTC-2, Antonis Christofides escreveu: > > Hello, > > Two real examples that I've faced: > > class MeteorologicalStation(models.Model): > ...

Re: Django admin raises CSRF verification failed when changing from DEBUG True - > False

2017-08-11 Thread Ruben Alves
Same problem here. I've created a ticket: https://code.djangoproject.com/ticket/28488 -- 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 email to django-users+unsubscr...@g

Re: Django admin raises CSRF verification failed when changing from DEBUG True - > False

2017-08-11 Thread Ruben Alves
Same problem here. -- 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 email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@g

Re: TypeError: view must be a callable or a list/tuple in the case of include()

2016-02-19 Thread ruben . charleville
Many thanks Tim! Problem solved. Best Regards, Ruben -- 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 email to django-users+unsubscr...@googlegroups.com. To po

TypeError: view must be a callable or a list/tuple in the case of include()

2016-02-19 Thread ruben . charleville
in url(r'^$', 'TasksManager.views.index.page'), File "/usr/local/lib/python2.7/dist-packages/Django-1.10.dev20160212033127-py2.7.egg/django/conf/urls/__init__.py", line 85, in url raise TypeError('view must be a callable or a list/tuple in the case of inclu

oauth & django for a private server

2011-02-15 Thread Ruben Benarroch
hi, i am developing an application for my university, they asked me for an authentication logarithm, in this case OAUTH to be the one who authenticates the web application that im developing which will show the schedule for the students and teachers, im in need of a good tutrotial for developing an

Re: Generating slugs

2009-08-28 Thread Ruben Knol
That is excellent! thanks for pointing this out!! On Fri, Aug 28, 2009 at 11:04 AM, esatterwh...@wi.rr.com < esatterwh...@wi.rr.com> wrote: > > You might look in to the Autoslug field in django command extensions > http://code.google.com/p/django-command-extensions/ > > the autoslug field is neve

Re: Many2Many to same table w. intermediary table - admin problems

2006-08-24 Thread Ruben
to my first ForeignKey, I get exactly your Traceback with the KeyError. Django Team, please point to a place where we can start to debug, or workaround. Regards, Ruben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Can I use an __init__ method on a model ?

2006-07-25 Thread Ruben
e. I assume I can -and have to- override __init__ as usual, call models.Model.__init__(self, *args,**kwargs), and add my own attributes. At least, the nice Wiki article above (thank you!) looks like there is no "Magic" in the models, that could become de

Re: Can I use an __init__ method on a model ?

2006-07-24 Thread Ruben
Hope this makes sense, it's late and I had too much heat ;-) Ruben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Can I use an __init__ method on a model ?

2006-07-23 Thread Ruben
I'd like to initialize additional members of a model object. Is there a method similar to__init__() ? I.e. a method that is called by Django, when a model instance is created ? Or is it safe/recommended to use __init__() ? Thank you,

Impossible to have a ManyToManyField _only_ ? Raises Exception.

2006-03-21 Thread Ruben
ve() the article a single time, but then nevermore. The second save() will raise the exception (I added below). Note that the Article is still created with an argument (id=None) but it does not help. Versions: Django rev.2536 (but same with older rev23xx),Python 2.3. Regards. Ruben Here'