Strange behaviour while deleting related object

2015-12-31 Thread Dheerendra Rathor
Hello All, I have a model like this: class Concept(models.Model): tag = models.ForeignKey(Tag, null=True, on_delete=models.SET_NULL) Now, I've a piece of code in my view: if concept.tag: concept.tag.delete() concept.save() I'm getting this error in line concept.save() ValueError:

Re: Working with Django signals

2015-12-31 Thread Luis Zárate
I suggest you to change the user creation form to set the three attributes that you need (Is medical, is physuitherapist, is patient), so in the first form (when you create the user) you will have usernarme, password, Is_medical, is_physuitherapist, is_patient. Take a look -

Re: wsgi.py apache segmentation fault

2015-12-31 Thread Sergiy Khohlov
Is code working right via manage runserver? 30 груд. 2015 13:59 "Baris Adrian" пише: > hi Eugenio, > > Did you get a solution to this problem. > > If so what? because i am stuck and i could appreciate the help. > > Kindest REgards > > On Thursday, October 8, 2015 at

Re: No such table error when using threads

2015-12-31 Thread Elad Silberring
Thank YOU!!! On Thursday, November 5, 2009 at 10:58:55 AM UTC+2, BlueBird wrote: > > > Ok, I found a way around the problem, in case anyone ever has the same > problem. If you specify TEST_DATABASE_NAME in your settings, it will > force sqllite to use a file database instead of in-memory

Re: how to restrict responses to a single server/domain ?

2015-12-31 Thread Billu
Thanks for recommendation. On Thursday, 31 December 2015 12:54:33 UTC+5:30, James Schneider wrote: > > > > I suppose my answer did leave out the ability to check the IP at the > Django level and make decisions based on that information. Given the > multiple ways that an IP address may be made

Re: how to restrict responses to a single server/domain ?

2015-12-31 Thread Avraham Serour
You may simple use nginx and have multiple server blocks, one for each domain, all listening on the same port (80 or 443) On Dec 30, 2015 10:11 AM, "Abraham Varricatt" < abraham.varric...@googlemail.com> wrote: > I'm trying to build something similar to a microservice using Django and > can't

Delete confirmation page in Django admin not displaying child records

2015-12-31 Thread Derek
Using Django 1.6.11 I have just noticed for a few cases (at least) that, while delete confirmation page in Django admin shows as usual in my app, it does not also show the related child records that will be deleted when a parent record is selected (the confirmation page only shows the parent