Re: LiveServerTestCase change in Django 1.11 means can't run functional tests against external server?

2016-10-18 Thread Harry Percival
drew Wall wrote: > > Very much appreciate the Django framework. > > I noticed in the docs > <https://docs.djangoproject.com/en/dev/releases/1.11/#liveservertestcase-binds-to-port-zero> > for Django 1.11 that the *DJANGO_LIVE_TEST_SERVER_ADDRESS* environmental > variable is slat

Re: Migrations in Django 1.7 make unit testing models harder

2014-04-02 Thread Harry Percival
y" to "ignore it completely", probably also in 1.9. > > Andrew > > > On Mon, Mar 31, 2014 at 4:15 PM, Harry Percival > > > wrote: > >> Just found out that you can make Django behave in the "old way" by just >> deleting the migrations f

Re: Migrations in Django 1.7 make unit testing models harder

2014-03-31 Thread Harry Percival
rations should correctly detect this and insert blank strings for > you then. If not, open a bug report! > > Andrew > > > On Sun, Mar 30, 2014 at 5:13 AM, Shai Berger wrote: > >> On Sunday 30 March 2014 15:08:17 Harry Percival wrote: >> > Ah, so the reason I was c

Re: Migrations in Django 1.7 make unit testing models harder

2014-03-30 Thread Harry Percival
l&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- -- Harry J.W. Percival -- Twitter: @hjwp Mobile: +44 (0) 78877 02511 Skype: harry.percival -- You received this message because you are subscribed to the

Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-30 Thread Harry Percival
sactionTestCase? The first will work in 90% of cases, the latter you can use if you have some more specialised requirements... On 29 March 2014 23:55, Carl Meyer wrote: > On 03/29/2014 02:36 PM, Shai Berger wrote: > > On Saturday 29 March 2014 19:11:17 Harry Percival wrote: > >>

Re: Migrations in Django 1.7 make unit testing models harder

2014-03-29 Thread Harry Percival
Provide a one-off default now (will be set on all existing rows) 2) Quit, and let me add a default in models.py I thought TextField did have a default, the empty string? On 29 March 2014 19:15, Harry Percival wrote: > I suspect you're probably right. Having to run makemigrations i

Re: Migrations in Django 1.7 make unit testing models harder

2014-03-29 Thread Harry Percival
ashmigrations exists to deal with this > problem and move on. > > Andrew > > > On Sat, Mar 29, 2014 at 9:42 AM, Harry Percival > wrote: > >> Am just working on updating my book on TDD to django 1.7 based on the >> beta. Currently half-way thru, not run into a

Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-29 Thread Harry Percival
StaticLiveServerCase. On 29 March 2014 18:10, Ramiro Morales wrote: > On Sat, Mar 29, 2014 at 1:26 PM, Harry Percival > wrote: > > > > > [...] > > > > But I just wanted to express the fact that it feels a little > > counter-intuitive. I don't

Re: Migrations in Django 1.7 make unit testing models harder

2014-03-29 Thread Harry Percival
Am just working on updating my book on TDD to django 1.7 based on the beta. Currently half-way thru, not run into any problems because I don't use migrations until a later chapter, but when I do I will run into the same problems Bernie mentions. Will share more once I've finished the rewrites

LiveServerTestCase vs StaticLiveServerCase

2014-03-29 Thread Harry Percival
Just updating my book to using the django 1.7 beta. I use LiveServerTestCase a lot. I used to rely on the fact that LiveServerTestCase "magically" serves static files from app folders. I see the default functionality is that this no longer works, but I can get it by switching to StaticLiveS

Re: Should exceptions in dev server appear as tracebacks in the console by default?

2014-01-15 Thread Harry Percival
command, and only if DEBUG* is set to True. Is that correct? On 3 January 2014 15:44, Harry Percival wrote: > Thanks Tim, let me make sure I understand the current functionality: > > - django.request is the logger for views (broadly speaking) any logging > "elsewhere" woul

Re: Should exceptions in dev server appear as tracebacks in the console by default?

2014-01-03 Thread Harry Percival
hat added that documentation and the related > ticket helpful: > https://github.com/django/django/commit/f0f327bb > https://code.djangoproject.com/ticket/18993 > > Documentation improvements would be welcome if you feel they are > appropriate. > > > On Saturday, Decembe

Should exceptions in dev server appear as tracebacks in the console by default?

2013-12-28 Thread Harry Percival
django-users/60d3c4c6-22f8-4de6-a376-6230c33ad0a9%40googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out. -- -- Harry J.W. Percival -- Twitter: @hjwp Mobile: +44 (0) 78877 02511 Skype: harry.perciva

Re: LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-19 Thread Harry Percival
Thanks gang. @Russell, I assume you meant set MEDIA_URL = "/media/" That works if I do it in settings.py. Interestingly, it doesn't work if I try and do it via override_settings? On Thursday, 19 December 2013 08:16:59 UTC, Aymeric Augustin wrote: > > On 19 déc. 2013, at 02:14, Russell Keith-

Re: Creating a minimal custom user model. Seems last_login is required. Should it be?

2013-12-18 Thread Harry Percival
ord field. >> Yes, he could just have the password and last_login fields and not use it, >> but why should he need to carry around he extra weight when Django doesn't >> need it. >> > > @Harry, just out of curiosity, may I ask how you *do* authenticate your

LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-18 Thread Harry Percival
Django's test runner overrides your settings to force DEBUG to be True, which I understand the intention behind, but it is occasionally annoying. One solution for those cases is to use `override_settings`, but that has very weird effects when using `LiveServerTestCase`. Minimal repro: dja

Creating a minimal custom user model. Seems last_login is required. Should it be?

2013-10-20 Thread Harry Percival
I'm trying to create a minimal custom user model. The only thing I care about is email. But it seems Django really wants me to set a last_login field. Can I avoid it somehow? Here's the minimal repro: https://github.com/hjwp/minimal-django-custom-user-model/commit/377a83a9c995b2346b79458dcb5

Re: I'd like to make a contribution to the wiki

2012-11-30 Thread Harry Percival
ion -- 404 On Thursday, November 29, 2012 11:29:29 PM UTC, Russell Keith-Magee wrote: Hi Harry, That particular page has been locked down due to problems we've had with spam. If you let us know what you want to add, I can add an entry to the list on your behalf. Yours, Russ Magee

Re: I'd like to make a contribution to the wiki

2012-11-29 Thread Harry Percival
nywhere.com/ (user/pass: test/test) it went pretty > well. Great work ! > > One question thought, most of the time, free accounts disappear at some > point, when the company grows. Are you committed to maintaining free > accounts ? > > Thanks for answering > > &g

I'd like to make a contribution to the wiki

2012-11-28 Thread Harry Percival
on the trac instance. my username is hjwp. rgds, Harry -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/h6XZT7_QucIJ. To post to this gro

How To Create A Form With Generic Relations In Django

2010-09-24 Thread Harry
Hi, How can I create a Form with normal form elements and generic elements together as ModelForm For using frontend CRUD. For example; Generic Model: class Todo(models.Model): user = models.ForeignKey(User, related_name="todo") title = models.CharField(max_length=100, unique=False) slug =

Multiple attach files...

2009-02-02 Thread Marcello(Harry)
Hi every one, my name is marcello, i'm from brazil, i'm new here and i'm not expert with django but i try! =) So... i have some question about multiple attach files, if multiple attach file have discussed here before!? Can i try dev this new models class or classes!? sorry about my english... a

BlogRush: a best way to increase your blog traffic

2007-09-24 Thread harry
Join here: http://www.blogrush.com/r18502062 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from thi

Cashcrate: A Good Paid Online Surveys

2007-09-20 Thread harry
To make money online survey taking, I have found that Cashcrate has been the best use of my time and efforts. Not only are the surveys frequent and ongoing, and you don't have to earn much to get your first bank deposit/check, but their referral program is great. You can find out more by clicking