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
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
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
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
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):
> ...
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
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
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
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
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
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
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
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
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
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,
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'
16 matches
Mail list logo