Re: re-direction after login successfully

2008-09-05 Thread Ken
You have two options. 1) You can write your own view. 2) You can pass a GET parameter to the login view: /accounts/login?next=/redirect/to/custom/path/ and put this in your form in the login template: Cheers, Ken On Sep 5, 12:07 am, zissan <[EMAIL PROTECTED]> wrote: > It

Newbie - Model column arithmetic

2009-08-24 Thread Ken
Apologies if this is in an FAQ somewhere, but I've been unable to find it... As a complete newcomer to Django (and Python, for that matter), I'd like to present my users with an HTML table that contains columns a, b and c from my table in the database, and then do arithmetic on the Model columns

Re: Newbie - Model column arithmetic

2009-08-24 Thread Ken
Excellent. Many thanks! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to django-u

Command "python manage.py runserver" causes import error

2009-10-03 Thread Ken
e in C: \Python24\Lib\. Why is the "import" is not finding it? ~ TIA ~ Ken PS This is similar to another post in this forum, at http://groups.google.com/group/django-users/browse_thread/thread/1959f1635c89d8b2/38464d1999e43303?lnk=gst&q=python+manage.py+runserver#38464d1999e433

Re: Command "python manage.py runserver" causes import error

2009-10-13 Thread Ken
:\python26\Scripts;, and 2. put %PYTHONPATH%; into the system PATH var. These were done at Control Panel \ System \ Advanced tab \ Environment Variables button \ system variables field. ~ Ken On Oct 3, 8:42 pm, Karen Tracey wrote: > On Sat, Oct 3, 2009 at 4:19 PM, Ken wrote: > > I

How to create multiple 'submit' buttons using 'forms' package

2009-12-05 Thread Ken
ther 'sell'). Actually, I can't even figure out how to get a single standard submit button to show up-- there doesn't seem to be a 'submit widget' listed in the Django book. Or perhaps I'm just not seeing it? As you can tell, I'm an absolute newbie. First

Re: How to create multiple 'submit' buttons using 'forms' package

2009-12-05 Thread Ken
Never mind, got it. the forms package merely provides the interior of the ; the markup, plus any submit buttons, are the responsibility of the template (or other code). Thanks, Ken On Dec 5, 8:55 pm, Ken wrote: > I have the following form, which displays nicely: > > class Bu

Re: How to create multiple 'submit' buttons using 'forms' package

2009-12-05 Thread Ken
Sorry for repeating what you said Shawn, but for some reason your reply wasn't showing up in my browser until after I had answered the question for myself. Thanks, Ken -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Need Help!

2010-07-29 Thread Ken
Looking for a django developer in the NYC area! I would appreciate any help, if you know of anyone! Thank you! Ken -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegrou

What does an ideal django workflow setup look like?

2010-10-22 Thread Ken
*I've Googled, but have not found any really organized and layman- friendly overview, which is why I came here* I know how to get python/django working on my computer (PC or Mac) and have developed simple test apps using django's built-in dev server and a mysql back-end. So I can get things to wor

Re: What does an ideal django workflow setup look like?

2010-10-27 Thread Ken
_django_git_and/ On Oct 26, 8:26 am, Celso González wrote: > On Fri, Oct 22, 2010 at 08:02:56AM -0700, Ken wrote: > > Hi > > > I understand there are many different ways and products to use to > > setup a great workflow for developing in django, but would like to > > he

How to pass raw sql results (cursor.fetchall()) to the template?

2010-01-14 Thread Ken
Newb question here. How do I pass raw sql results to my template? The sql results contains a two column queryset with several rows . Below doesn't work. How do I make this work? Do I need to parse the results into an array and then pass to the template? IN THE VIEW: cursor = connection.cursor(

Update a single column of a row in a Model

2010-03-02 Thread Ken
tables have many columns (>50) with a lot of floating point data and I certainly don't want my users inadvertently deleting data. Do I need to specify something in my Model columns to get Django to behave the way I want it to...? I really don't want to have to resort to a bit of cust

Re: Update a single column of a row in a Model

2010-03-04 Thread Ken
the Django site). Cheers, Ken On 3 Mar, 00:31, Shawn Milochik wrote: > Use a forms.ModelForm and exclude all the fields except one, or use a   > forms.Form with one field and use its value in a queryset .update()   > call. > > Shawn > > Sent from my iPhone > > On Mar 2, 201

Re: Update a single column of a row in a Model

2010-03-04 Thread Ken
erson_form = PersonForm(request.POST, instance = person) if person_form.is_valid() person_form.save() Would that work...? I'll attempt to hack an example in my code and tell you what happens... Thanks for your time... Ken On 4 Mar, 17:28, Shawn Milochik wrote: > Here's a s

Re: Update a single column of a row in a Model

2010-03-04 Thread Ken
x27;Bad Candidates' WHERE `tcs_detection_lists`.`id` = 0 We shouldn't be updating the 'description' column. If my security settings were in place, this query would fail, because my DB user only has update access to the 'name' column. Ken On 4 Mar, 18:35, Shawn

Django and database user column update privileges

2010-03-04 Thread Ken
' column for this table. The actual table that will be updated eventually has a much larger set of columns, with lots of doubles & floats. I really don't want to be re-writing the entire row and I really don't want to have to resort to raw SQL. Any ideas (preferably with an exa

Re: Update a single column of a row in a Model

2010-03-05 Thread Ken
Many thanks Karen. This worked perfectly (though the 'name' attribute is just name without the quotes). Cheers, Ken On 5 Mar, 01:42, Karen Tracey wrote: > On Thu, Mar 4, 2010 at 2:24 PM, Ken wrote: > > Thanks for your example, but whilst you're correct about P

Re: Django and database user column update privileges

2010-03-05 Thread Ken
Cheers Karen. I just wanted to make sure that all aspects of my question were answered, so I separated the second problem into this thread. Thanks for your help. (See other thread.) Ken On 5 Mar, 02:17, Karen Tracey wrote: > I answered your question in the other thread you had asking

advice on table joins

2008-01-09 Thread Ken
I need some advice. I'm struggling with a query that spans 4 tables. "Struggling" is a bad word; I'll explain later. Django uses a model- oriented query system together with a Foreign Key manager to get to the "next" joining table. A query that spans several tables results in a deeply nested lo

guidance on sub-classing models

2008-04-22 Thread Ken
I have added similar method to my models and forms and would like to factorize them into base classes. The forms part has been straightforward. But, it seems that models is little harder to sub- class. I need some guidance on sub-classing a model or if it's too complicated, that I shouldn't bot

I think psyco breaks Django trunk (post qs-rf merge)

2008-04-29 Thread Ken
the wiki, using psyco.full()). Just thought I'd give people a heads-up. Is psyco+Django dead? -Ken PS - The reason this didn't go through the error handling for me is that I have a module-level model object retrieved from the database at import time. Bad idea f

Re: Suggestions on UI (client side web) framework to complement Django

2008-04-29 Thread Ken
If you're going to use YUI, I'd check out Ojay (http:// ojay.othermedia.org/). Raw YUI is very verbose; Ojay is a convenience layer on top of it. -Ken On Apr 29, 12:09 pm, ydjango <[EMAIL PROTECTED]> wrote: > Thanks, Going ahead with YUI. > > Reasons for choosing yui

displaying/editing multiple records at once

2008-05-16 Thread ken
looking for a full answer, just a place to get started. Thanks, Ken --~--~-~--~~~---~--~~ 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 T

Django bloggers: want to host a series for me?

2008-05-19 Thread Ken
too. Anyone interested in this sort of micro-collaboration? -Ken --~--~-~--~~~---~--~~ 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 To

why HTML output in unicode?

2007-10-12 Thread Ken
Sorry if this is a stupid question, but why do forms output HTML as unicode strings? Is this arbitrary or is there some grand convention we are all supposed to be following? I'm adding bits and pieces to newforms for my application and am wondering if I should follow this convention. If I const

retrieving initial form data

2007-10-17 Thread Ken
Given an instance of a form that was created with initial data, how do I extract a specific field value? For example, a = AForm( initial = {'x': 1} ) How do I find out what value the field named 'x' is? a.fields['x'] gives me a.fields['x'].initial returns None I am not interested in submi

Is posted data always in order?

2007-10-18 Thread Ken
I have a form page that is made up of multiple forms. Think: A has 1 or more B's, each B has one or more C's, and so on... I've tried a couple of test cases and it appears that the data returned in HttpRequest.POST is ordered. That is, for a key with multiple values, the first submitted value i

Re: retrieving initial form data

2007-10-18 Thread Ken
Thanks! Exactly what I needed. I subsequently found it in newforms/ forms.py. Duh! I think my eyes just glazed over when I saw all that complicated new-style Python class stuff. On Oct 17, 1:10 pm, Doug B <[EMAIL PROTECTED]> wrote: > The bound data and initial data dicts are just set on the

Re: newforms: required field mark

2007-10-18 Thread Ken
By default all form fields are required. So, it seems to me that when you define your forms class, you simply define your fields with a 'label' argument with the '*' tacked on. If you specify that the field is not required, define it with a label that doesn't have the '*' tacked on. Does this w

Re: Is posted data always in order?

2007-10-19 Thread Ken
On Oct 19, 10:37 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > [1]http://www.w3.org/TR/html401/interact/forms.html#h-17.13.3 Thanks for your reply. It was a great help. I followed up on reading the HTML spec and the posted data is returned in document order. Next sect

Re: Is posted data always in order?

2007-10-19 Thread Ken
On Oct 18, 8:07 pm, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > request.POST is a python dictionary and the keys need not be ordered. You misunderstand. I know dicts are not ordered in the sense lists are. My question is this: Suppose I have a form that returns multiple values for a give

Re: Is posted data always in order?

2007-10-19 Thread Ken
I would like to add (if anyone who writes django documentation is reading) a statement explicitly confirming or denying this in the documentation would be nice. The fact that django sub-classed a dict to handle multiple values posted by a form seems to suggest that multiple values are returned in

Re: Model Validation - Best practices

2007-10-31 Thread Ken
On Oct 24, 12:11 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > In the interim, doing things in the save() method is possible, although > it's not a brilliantly nice design, since save() should never > raisevalidationerrors and, if it does, you won't get feedback to, say, the > admin inte

Re: Model Validation - Best practices

2007-10-31 Thread Ken
On Oct 31, 6:07 pm, Ken <[EMAIL PROTECTED]> wrote: > > I have a similar thing I wish to accomplish. It's not quite model > validation, rather model completion. The form provides a field that > fills one model field but has to be munged to fill a second model

initial data ignored for Form with __init__

2007-11-13 Thread Ken
I'm using 0.96. I define the following form class TForm(forms.Form): admin = forms.ChoiceField() x = forms.IntegerField() def __init__(self, data=None, **kwargs): super(TForm, self).__init__(data, kwargs) admins = [(a.name, a.name) for a in Admin.objects.all()]

Flat return list from MultipleChoiceField

2007-11-15 Thread Ken
data. As it is, I have to cast the data into a list so that the MultipleChoiceField handles it properly. Is this a feature? If so, why? I'm using 0.96. Thanks! Ken --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: booleanfield and required = true

2007-11-15 Thread Ken
from the data to be validated. Furthermore, when you retrieve the clean_data, the field will come out as False which is what you want. Hope this helps! Ken --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Flat return list from MultipleChoiceField

2007-11-15 Thread Ken
On Nov 15, 2:10 pm, RajeshD <[EMAIL PROTECTED]> wrote: > You could control the names of the multiple choice fields by giving > each form B a prefix[1]. > > [1]http://www.djangoproject.com/documentation/newforms/#prefixes-for-forms Thanks! That will do the trick. I didnt know about the prefi

Re: Flat return list from MultipleChoiceField

2007-11-15 Thread Ken
Just a followup on the prefix hint: By specifying a prefix, say b1, the posted data returns as b1_b = [1, 2] If I try to bind it to the form like so: bdata = {'b1_b': [1, 2]} f = BForm(bdata. prefix="b1") f.is_valid() returns False. I still have to strip off the prefix and do bdata = {'b':

advice on template shortcomings

2007-11-17 Thread Ken
I'm using 0.96 and find django's templates very frustrating. While I find the ability to pass Python objects to the template and accessing object attributes or methods to be really nice, this feature does not extend to basic python objects like lists and dicts. For instance, I cant pass a dict o

Re: advice on template shortcomings

2007-11-17 Thread Ken
Great! I hope you can tell me what I'm doing wrong. Here's the template: {% for k, v in thedict.iteritems %} {{ k }}, {{ v }} {% endfor %} {% for a1, a2 in thelist %} {{ a1 }}, {{ a2 }} {% endfor %} and the views' index function def index(request): thedict = {'a': '1', 'b': '2' }

Does a model have a fields attribute?

2007-11-22 Thread Ken
Does a Model have a fields dict attribute like a Form? I did a dir() on a model and don't see one. I see, instead, that the model fields are themselves attributes. Is this the case? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscrib

html_output, where is BoundField?

2007-11-30 Thread Ken
dField class is defined in forms.py but it still doesnt work. What am I doing wrong? Thanks! Ken --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

pickling and unpickling a model field

2007-12-13 Thread Ken
Does anyone have an example on how to sub-class a model field so that setattr pickles the field and getattr unpickles it? I want to shuffle a query back and forth between the app and the rendered pages. I could urlencode the query but the URL could get potentially rather long so I thought I'd sh

templates couple apps to a site; how do you separate them?

2012-03-13 Thread Ken
I'm struggling with how I should go about writing "pluggable" apps. I haven't found a satisfactory way of decoupling apps from a site and the primary sticking point is templates. I've combed through some discussions but have not found any that have helped. A site's templates determine the look a

load-on-startup equivalent in django?

2011-10-20 Thread Ken
Thank you in advance. Ken -- 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. To unsubscribe from this group, se

model: how to reference to the model itself?

2011-10-23 Thread Ken
= models.ManyToOneRel(Catalog) but when syncdb i got: File "/home/ken/sites/mysite/catalog/models.py", line 12, in Catalog parentcatalog = models.ManyToOneRel(Catalog) NameError: name 'Catalog' is not defined It seems like I cannot ref to a model which is not completely defin

Re: model: how to reference to the model itself?

2011-10-23 Thread Ken
oh, I found the answer: use ForeignKey('self') to a many-to-one ref to model self please ignore my former post. >_< On 10月24日, 下午12时47分, Ken wrote: > I want to create a parent-child like catalog system. > > from django.db import models > > class Catalo

runserver namespace problem?

2011-11-10 Thread Ken
hi all I have a django website dir tree like this: mysite - app1 - tasks.py - tests.py - views.py - models.py there is a function *outprint* in tasks.py In shell one, I use command "python manage.py celeryd -B -l info" to run ce

Re: runserver namespace problem?

2011-11-13 Thread Ken
Does anybody have any idea? -- 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. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more op

django templates and tex/latex

2013-03-13 Thread Ken
I would like to write a tex/latex file with django tags in it. Load it with the template loader and render it with a context. The problem is that my tex/latex file has quite a few '{%' in them. They are conventional in TeX for writing readable macros and are used to escape the newline. I c

Re: django templates and tex/latex

2013-03-13 Thread Ken
legant but it works. I have a single replacement string between \begin{document} and \end{document} and I simply replace this one token with a string.replace() On Wednesday, March 13, 2013 11:39:18 AM UTC-5, Drew Ferguson wrote: > > On Wed, 13 Mar 2013 07:01:45 -0700 (PDT) > Ken >

django_tables2: Unable to manually iterate through column values in template

2017-10-06 Thread Ken
_tables to django_tables2 is now misleading. Cheers, Ken -- 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. T

BaseListView's get_context_data is missing kwargs?

2015-07-31 Thread Ken
I created a class FilteredListView(BaseListView, FormMixin) so I can have a filter form in my list view. The form submits filters via GET. I have it working. But there is a piece of the code that I feel ought to be handled by django. In order to get the form into the context, I duplicated B

Re: BaseListView's get_context_data is missing kwargs?

2015-08-03 Thread Ken
@Jordi, Thanks for tip on self.kwargs in View. That should work. I'll rewrite my get(). @James - No, no reason in particular. Wasnt paying attention, I guess. I was just staring at the get() method in BaseListView and thinking, ah, this is the place I want to inject my filter form into the

Re: BaseListView's get_context_data is missing kwargs?

2015-08-04 Thread Ken
t; > -James > On Aug 3, 2015 7:37 PM, "Ken" > wrote: > >> @Jordi, Thanks for tip on self.kwargs in View. That should work. I'll >> rewrite my get(). >> >> @James - No, no reason in particular. Wasnt paying attention, I guess. >> I was

testcase argument via manage.py

2015-12-05 Thread Ken
Is it possible to pass options or arguments to a testcase? The docs talk about subclassing DiscoverRunner and over-riding add_arguments but does not indicate how the arguments are retrieved in a test module. Thanks -- You received this message because you are subscribed to the Google Groups

Custom Form Widget that can render different HTML form elements?

2008-11-07 Thread Ken Cochrane
at I can use any of the django form stuff when I do it this way. Or could I? Has anyone done something like this before? Does anyone have a better way to do this? Any advice that you could give, would be great. Thanks, Ken Cochrane Note: In my real life example I get my Product Size from a R

Fatal Python error: Inconsistent interned string state.

2009-07-27 Thread Ken Schwencke
I'm working with GeoDjango and PostGIS, and I'm getting "Fatal Python error: Inconsistent interned string state." errors randomly while using the development server. It doesn't happen on any specific view (it's happened on the two main views), it doesn't happen while doing any specific query, it

use of HttpResponseForbidden(), etc.

2009-05-23 Thread ken keller
When my view returns: return HttpResponseForbidden() the browser doesn't show the non-200 status. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: Trying to get tinyMCE working on an admin page

2009-09-21 Thread Ken MacDonald
Thanks, got this working and handed it off to the production folks. On Sat, Sep 19, 2009 at 5:02 AM, Joost Cassee wrote: > > On 8 sep, 22:14, DrKen wrote: > > > Hi, new to Django and tinyMCE. I'm trying to get the tinyMCE HTML > > editor working on the admin page, so started out by doing the Dj

autogenerated 'id' field from Django model doesn't autoincrement?

2009-11-19 Thread Ken MacDonald
27;integer' rather than 'serial' type? 2) Is there a way to get Django's model to generate a 'serial' 'id' column that is designated as the PK, so I don't have to explicit specify the 'id' value in my INSERT? 3) Failing that, is there

Re: autogenerated 'id' field from Django model doesn't autoincrement?

2009-11-19 Thread Ken MacDonald
integer as shown by pgadmin III. > > > 3) Failing that, is there a better way to do the raw SQL steps outlined > > above? > > > http://docs.djangoproject.com/en/dev/ref/django-admin/#sqlsequencereset-appname-appname > > Thanks, that's a bit nicer! Ken -- You

Re: autogenerated 'id' field from Django model doesn't autoincrement?

2009-11-20 Thread Ken MacDonald
ey yes not NULL yes ... So, it has a sequence, but the sequence is out-of-sync (value=7) with the actual DB (max id is 92,000+), thus the code to first setval() the sequence. Anyway the code seems to work, but it's still odd that the type isn't serial. Ken -- You received this message be

Re: autogenerated 'id' field from Django model doesn't autoincrement?

2009-11-20 Thread Ken MacDonald
umbers and did not use 'nextval' to generate them. I've changed the initial data loader to use nextval instead of the data's sequence numbers, so shouldn't have this problem again. I'm leaving the setval() in my code (modified as in a prev. reply) so that the sequence w

Re: how to symlink to django-admin.py from some place on path?????.

2009-11-23 Thread Ken MacDonald
pplied files such as django-admin.py and manage.py) can be run from the command prompt directly, and include support for command-line parameters as well. Looking at the output from "assoc", you'll find that even ".bat" and ".exe" extensions are defined in this manner

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread Ken MacDonald
our ftype is messed up (missing the "%*" maybe), you wouldn't see the args. Ken C:\>*assoc .py* .py=Python.File C:\>*ftype Python.File* Python.File="C:\Python25\python.exe" "%1" %* On Tue, Dec 1, 2009 at 7:18 AM, Rodrigo Cea wrote: > Thanks for the

REMOTE_ADDR

2010-03-15 Thread Ken Lacey
Hi I am trying to access the remote addr in a view. Using request.META['REMOTE_ADDR'] I get an error Exception Type: TemplateSyntaxError Exception Value: Could not parse the remainder: '['REMOTE_ADDR']' from 'request.METTA['REMOTE_ADDR']'

Re: REMOTE_ADDR

2010-03-16 Thread Ken Lacey
return None else: # HTTP_X_FORWARDED_FOR can be a comma-separated list of IPs. The # client's IP will be the first one. real_ip = real_ip.split(",")[0].strip() request.META['REMOTE_ADDR'] = real_ip but s

checking an IP range

2010-04-09 Thread Ken Lacey
ot; "192.168." %} do something {% endifequal %} the same results appaear whether the ip_address is 192.168. or any other range. Thanks Ken -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

django + sqlalchemy = ?

2007-09-12 Thread Ken Kuhlman
year. Was the original goal of the branch [1] too aggressive? Thanks in advance. -Ken [1] Integrating Django and SQLAlchemy, Aug 29, 2006: http://groups.google.com/group/django-developers/browse_thread/thread/5149e1c60dc65bff --~--~-~--~~~---~--~~ You received this m

Re: django + sqlalchemy = ?

2007-09-13 Thread Ken Kuhlman
Are these primary topics of the upcoming sprint? (Sorry if these are FAQs -- I don't keep up on the django list). Thanks for the reply! -Ken [1] http://adam.gomaa.us/blog/sqlalchemy-with-django/ [2] http://www.b-list.org/weblog/2007/sep/04/orm-wars/ On Sep 12, 1:13 pm, "James Bennett&qu

Re: Django and MS SQL

2006-01-12 Thread Ken Kennedy
Jeremy Dunck wrote: > On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > think adodbapi DOES use parameterization. It's just slightly > > non-standard. (thus, the %s -> ? stuff above) > > I was surprised by this, by the Python DB API allows for parameters in > the string supplied to the

Re: socialistsoftware.com source is now available

2006-02-18 Thread Ken Kennedy
Cool...thanks! (I have my own, wimpier implementation, so let's see what I can stea...er, learn from!) One note: It appears (and you've probably already noticed) that there's a typo in the Technorati xmlprc ping: reply = technoratiServer.weblogUpdate.ping('Socialist Software','http://www.sociali

Re: Various problems porting to Magic Removal

2006-04-24 Thread Ken Kennedy
Yes, we're discussing the SQL migration steps over in dev right now. Among other things, the change in auth_permission (adding content_type_id as the referencing field, rather than the reference to the deleted package field) requires some DML (UPDATEs) to be added to the migration steps. I'm testi

Re: MR - MySQL database upgrade column rename

2006-04-24 Thread Ken Kennedy
At this point, the various differences in SQL capabilities between the backends have resulted in a split of the migration DDL/DML into a separate list for each engine. I'm working on tweaking them, but I'll probably get to MySQL last, so feel free to pitch in! --~--~-~--~~---

Re: MR - MySQL database upgrade column rename

2006-04-24 Thread Ken Kennedy
You may want to compare those field sizes to a "clean" install of M-R...if I remember correctly, one or both have been increased in size in a new install. We'll need to make sure that migrated field sizes match newly created ones, or we'll end up with WEIRD errors that only occur with migrated dat

Re: MR - MySQL database upgrade column rename

2006-04-24 Thread Ken Kennedy
Cool. I'm going the same thing (DDL diffs) tonight or tomorrow with the SQLite stuff first, and then PosgreSQL. We'll get this knocked out! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Ken Kennedy
I'd say put 'em there! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PR

Bug Request!

2022-07-25 Thread Ken Booo
Here, I caught a one bug on Django-->4.0.6 There is no argumented support and base_dir is having exemptions causing warnings![image: WhatsApp Image 2022-07-18 at 11.59.01 AM.jpeg] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: group

2022-09-28 Thread Ken Booo
Plss add me in the official group of django pls. I am having 2+ yrs 0f exp . -- 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...@googlegrou

What persists in memory across requests?

2012-05-18 Thread Ken J
Howdy, I'm quite curious as to what persists in memory across requests in terms of django application variables. I'm currently running a django app in mod_wsgi daemon mode. Because of performance concerns when dealing with large numbers of concurrent requests, I wanted to modify django to keep p

Re: What persists in memory across requests?

2012-05-18 Thread Ken J
er of concurrent connections we expect to see, and persistent DB connections do seem to make a dramatic difference. Over the course of tens going on hundreds of thousands of requests, it can save mins worth of processing time. On May 18, 1:52 pm, akaariai wrote: > On May 18, 7:54 pm, Ken J

Re: Implementing a monitoring system with django.

2012-12-12 Thread Ken Hill
I've been considering a very similar Django to help simplify some of my daily server system admin tasks (e.g. monitor and trend CPU uase, memory usage, disk space, etc.). I'd like to try CouchDB to store the data with a Django UI to make the app usable to non-technical users. On Monday, Decembe

getting same order in SQL as ManytoMany selection in Admin

2013-01-30 Thread Ken Ricci
I have a Django/Grappelli admin form for job postings which has a manytomany relationship for job requirements (using filter_horizontal). In the admin form, the order chosen stays constant when I save the job posting and display it again later. I'm trying to repeat the order in another app th

creating dynamic forms with django

2011-07-20 Thread ken paul
hey can anyone get a way of writing dynamic form classes with django. I have tried but putting the attributes became a bit hard. Kenneth -- 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@googlegrou

Re: creating dynamic forms with django

2011-07-20 Thread ken paul
isa.balakrish...@gmail.com> wrote: > may be dis link helps u: > > http://uswaretech.com/blog/2008/10/dynamic-forms-with-django/ > > On Wed, Jul 20, 2011 at 12:46 PM, ken paul wrote: > >> hey can anyone get a way of writing dynamic form classes with django. I >> have

Re: creating dynamic forms with django

2011-07-20 Thread ken paul
Hey you know the link actually has what I want thanks Kenneth On Wed, Jul 20, 2011 at 3:27 PM, ken paul wrote: > Thank man but what I mean is like you create a dynamic class > ||new_class=type('myform',(forms.Form),{attrib})|| but the dict with attribs > is a bit c

Re: How to get a web development job (i.e. Django/Python) if someone is an amateur programmer?

2010-12-17 Thread Ken Huang
OP here. I've got a still-live Digg-like PHP site that I built two years ago with a few buddies. How much cred does that buy me if I'm looking for a Django job? Do I need to specifically build and/or open source Django? Thanks for the advice guys - much appreciated! On Fri, Dec 17, 2010 at 1:10

Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Ken Chida
ctive when the user clicks the login submit button. This method would work, but it goes against DRY best practices. Is there a better way to do this? Maybe I can use a custom template tag? Thanks in advance!! Ken -- You received this message because you are subscribed to the Google Groups &q

Re: Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Ken Chida
Hey - Thanks for replying. So I'm thinking that the method that I originally described would amount to only a few lines of code. A decorator would look nicer, but i'd have to remember to add it for future views, which is kinda annoying. Also, I wouldn't have a login URL because all pages will

Re: Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Ken Chida
Because I will have the login form on each page, I will not have a separate login URL. That's why I'm having difficulties with organizing the business logic code (i.e. view). It's almost as if I need to have two view functions -- one for login and another for the current page -- for the URL for

Re: Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Ken Chida
A global context processor would probably work, but is it kosher to put business logic in a context processor? To me it seems that the whole point of a context processor is to simply take a piece of data and extract/format information from it to form a context dictionary. -- You received this

Re: Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Ken Chida
Hi James - I want to point out that I will not have a dedicated login URL, as the functionality will be available on each page (not just a link to the login page, but the actual form). Previously, I had a dedicated login URL and link to the login page, but my frontend guy made a slick jQuery d

Re: Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Ken Chida
Yes, I think I have it figured out now. Sorry for asking such a newb question. If I understand correctly, all I need to do is change the form action to the login URL. Then, url.py will direct the request to my existing login view function. I bet you guys were all bashing your heads against t

2 Python/Django Developers Needed ASAP

2011-03-30 Thread Ken Zinchiak
hearing from you soon. Thanks, Ken Zinchiak Moore Associates 973-560-4830 973-296-5787 Cell -- 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. To unsubscribe from

Reading Dynamic Checkbox in Django

2015-04-28 Thread Ken Nguyen
Hi Folks, First time posting on here so if I violate any laws, please forgive me. I also posted the same question on StackOverflow but didn't get any answers so I'm hoping this place will get more attention. I'm having a

Django BooleanField Checkbox Returns Empty

2015-04-29 Thread Ken Nguyen
I read every corner of the documentation but couldn't figure out why the BooleanField Form doesn't return 'True' when the checkbox is checked. Is this a valid test? Shouldn't formset.cleaned_data = [{True}, {False}]? >>> from django import forms >>> from django.forms.formsets import formset_fa

How to Process Multi Step Forms in Django?

2015-05-01 Thread Ken Nguyen
I've made some attempted to use formwizard but there wasn't much documentation about it so I decided to stay with the basic. I've successfully obtained and display the data from the first form to the second form and added some checkbox next to the data to allow user to choose whether to overw

  1   2   >