Parent-child-grandchild list

2019-11-05 Thread Terry Sankar
*class Per*son(models.Model):"""Class that manages the person model fields"""first_name = models.CharField(max_length=40)last_name = models.CharField(max_length=45) def __str__(self):return self.first_name class Order(models.Model): po = models.CharField(nul

Re: user Form error

2019-06-06 Thread terry frank
Hello, from which repos ? On Thu, Jun 6, 2019 at 7:50 PM anchal agarwal wrote: > Hello, > I am making a simple user form but my form data is not saving.It is > showing this error > 'UserForm' object has no attribute 'save' > Here is my code. Please tell me where i am wrong > views.py > class Us

Re: How to start Django app with apache server

2016-08-06 Thread Terry Sankar
, August 5, 2016 at 5:12:11 PM UTC-4, Tim Graham wrote: > > Are you following these instructions? > https://docs.djangoproject.com/en/stable/howto/deployment/wsgi/modwsgi/ > > On Friday, August 5, 2016 at 3:44:27 PM UTC-4, Terry Sankar wrote: >> >> apache2.4 working , postg

list item names in ForiegnKey tab ?

2016-08-05 Thread Terry Sankar
Adding an entity : .. Adding connected foriegnkey iems : --- Adding connected foriegnkey iems : --- Would like to see: item name instead of after adding -- You received this message because you are subscribed to the Google Groups "Django users" grou

How to start Django app with apache server

2016-08-05 Thread Terry Sankar
apache2.4 working , postgresql working , the django app is working - how do I start the app in apache instead of the test server -- 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,

customize project templates

2015-09-05 Thread Terry Chia
Hello, I am doing "Writing your first Django app, part 2" provided by Django Documentation part 2 and is stuck at customising your project's template. I am trying to customise the project template by copying the base_site.html from th

Re: Abridged summary of django-users@googlegroups.com - 45 updates in 28 topics

2015-01-28 Thread Rosie Terry
How to create a Django Blog Post? On Thu, Jan 29, 2015 at 12:13 AM, wrote: > django-users@googlegroups.com > > Google > Groups >

Re: Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not found.

2014-12-02 Thread Terry Lang
That fixed it. I guess my eyes are getting bad. Thanks for the help. On Tuesday, December 2, 2014 6:39:46 AM UTC-8, Terry Lang wrote: > > I am in the middle of tutorial 4, but am getting an error. > What did I do wrong? > > NoReverseMatch at /polls/3/vote/ > > Rever

Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not found.

2014-12-02 Thread Terry Lang
I am in the middle of tutorial 4, but am getting an error. What did I do wrong? NoReverseMatch at /polls/3/vote/ Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'polls/(lP\\d+)/results/$'] Request Method: POST Request URL: http://www.

Re: What is a good source code control software?

2010-07-17 Thread Terry Schmitt
not as strong. If everyone is comfortable with a command line client, then this is not an issue. Good luck! Terry On Jul 16, 4:56 pm, Hooshyar wrote: > Hello Django users, > > My Django-driven web application has grown fast and large enough and > more programmers are contributing

Re: ManyToManyField m2m_changed signal issue

2010-05-22 Thread terry
it seems add duplicate user object to friends set , return an empty pk_set. since the m2m_changed 'post_add' action received why did not return an pk_set On May 22, 3:34 pm, terry wrote: > i have an model > > class People(models.Model): >      friends = models.ManyToMany

ManyToManyField m2m_changed signal issue

2010-05-22 Thread terry
i have an model class People(models.Model): friends = models.ManyToManyField(User, blank=True) and i use m2m_changed signal m2m_changed.connect(m2m_people_handle, People.friends.through) and the m2m_people_handle function is def m2m_people_handle(sender, instance, action, reverse, model,

Re: how to set some global constant in my Django project?

2006-10-30 Thread Terry
NIT_FOR_ONE_USER not > defined", etc... This works, but when you use the constants, you first have to import the settings, by doing: from django.conf import settings and then you when you use it, you need to refer to it as "settings.MAX_UNIT_FOR_ONE_USER". - Terry --

Re: print_r

2006-10-16 Thread Terry
Don Arbow wrote: > The method is actually called pdb.set_trace(). Whoops! So it is. Sorry for the confusion. - Terry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: custom-query or redundant-data, which is worse? :)

2006-10-16 Thread Terry
the next time something needs to find out how many Recipients are pending, it would recalculate it the expensive way and cache the results for the next time someone needed it. - Terry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: print_r

2006-10-16 Thread Terry
in more? No, that was the method. I admit that I am using python2.5, but according to http://www.python.org/doc/2.3.5/lib/module-pdb.html , this method is in 2.3.5 as well. - Terry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: print_r

2006-10-16 Thread Terry
ant to debug: import pdb pdb.run_trace() Then, when you attempt to load the view, you will get the (pdb) prompt at your development server, and you can print variables, single step, set breakpoints, etc. - Terry --~--~-~--~~~---~--~~ You received this messa

Re: Mysql 3.23.xx

2006-10-10 Thread Terry
SQL that uses subselects. Subselects are not available until MySQL4.1, so I think you need at least that. - Terry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se