How to map url **kwargs

2010-06-21 Thread Sells, Fred
First I'm new 2 django and have made rapid progress building my app based on the tutorial. As soon as I get it a little better, I'll clean it up and remove the "mysite/polls" references. I have a series of url's like this /mysite/myapp/datagrid/clients?letter=A /mysite/myapp/datagrid/reports /my

RE: Django-Mysql

2010-06-22 Thread Sells, Fred
I had no problem configuring it under CentOs, have not tried Windows (yet) but here's my settings file DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mds30', 'USER': '', # Not used 'PASSWORD'

test; pls accpt apologies

2010-07-03 Thread Sells, Fred
I receive the normal django email, but have never received a reply to any of my questions. I apologize for clutting the mailing list we "test" but need to know If my company server is blocking my outgoing or what. If you wouldn't mind replying to this and cc'ing bu4f...@yahoo.com I promise to nev

Field Subclassing, or setter help needed.

2010-07-03 Thread Sells, Fred
I need to override the setter behavior of all the fields in all my models. They all subclass from the same abstract model. Specifically if the fields already contains a special character (used to indicate "Not Applicable") I don' want to allow it to be changed. The same field will be applicable

RE: Field Subclassing, or setter help needed.

2010-07-03 Thread Sells, Fred
, Sells, Fred wrote: > I need to override the setter behavior of all the fields in all my > models. They all subclass from the same abstract model. > > Specifically if the fields already contains a special character (used > to indicate "Not Applicable") I don'

How can I Insert multiple records in one statement

2010-07-08 Thread Sells, Fred
I know how to do this in raw MySQLdb and have been trying to find a way to do it with the Django models but with no success. Can it be done and if so, can someone point me to a link in the docs please? Everything looks so elegant with the models, I hate to drop into SQL if I don't have to. -- Y

RE: How can I Insert multiple records in one statement

2010-07-08 Thread Sells, Fred
:django-us...@googlegroups.com] On Behalf Of Kenneth Gonsalves Sent: Thursday, July 08, 2010 8:46 PM To: django-users@googlegroups.com Subject: Re: How can I Insert multiple records in one statement On Friday 09 July 2010 06:03:09 Sells, Fred wrote: > I know how to do this in raw MySQLdb and have been try

defining custom attributes for a model

2010-07-09 Thread Sells, Fred
I've got a model as illustrated below. Is there any way I can define my own attributes that are not columns like the "fredsstuff" below? class A(MDSSection): A0100A= models.CharField(max_length=10, help_text='''Text : Facility National Provider Identifier (NPI)''') A0100B=

How to access help_text attribute of model field

2010-07-11 Thread Sells, Fred
I would like to access the help_text attribute of my model fields when responding with XML like this class A(MDSSection): A0100A= models.CharField(max_length=10, help_text='''National Provider Identifier (NPI)''') A0100B= models.CharField(max_length=12, help_text='''CMS Certi

RE: How to access help_text attribute of model field

2010-07-11 Thread Sells, Fred
> I would like to access the help_text attribute of my model fields when > responding with XML like this > > I'm nut using Django forms but responding to Flex with XML.  There must > be some way to access this information, but I've been through the docus > and google with no luck. > > Does anyone

Get all tables in one query that use OneToOne relationship

2010-07-16 Thread Sells, Fred
I've got a logical record 0f 500 columns that is broken up into about 20 tables based on an implicit logical grouping of the data. Most of the time this works well and the code is clean; but there are a few use cases where I need to get all the equivalent fields for a single record from all the ta

RE: Get all tables in one query that use OneToOne relationship

2010-07-18 Thread Sells, Fred
at use OneToOne relationship On 7/16/2010 7:28 PM, Sells, Fred wrote: > I've got a logical record 0f 500 columns that is broken up into about 20 > tables based on an implicit logical grouping of the data. Most of the > time this works well and the code is clean; but there are a few use > c

RE: Help and Training

2010-07-21 Thread Sells, Fred
FWIW I'm an old time Pythonista who was also forced into a Java world, but the pendulum has now swung back to Python. I would agree with the advice of others, but also offer the following: It is very hard to debug program logic in a web environment. I have my Django view convert anything I need

how to concatenate 2 columns in query

2010-07-21 Thread Sells, Fred
My queries return XML similar 2 this . . . I would like to return name="Jones, Mary" instead. The template that I use to convert the list of dictionaries to xml is used for many different "datagrid" types of queries so I don't really want to change it. I suppose I could use list comprehensi

overriding model.save()

2010-08-04 Thread Sells, Fred
I would like to prevent saving a new value if the database contains a specific value. This is on a per field, per record basis. If I override the save() method; is there a way to find the existing (in the DB) values and the new (to be stored) values? -- You received this message because you are

RE: overriding model.save()

2010-08-05 Thread Sells, Fred
lto:django-us...@googlegroups.com] On Behalf Of Sam Lai Sent: Thursday, August 05, 2010 7:58 AM To: django-users@googlegroups.com Subject: Re: overriding model.save() On 5 August 2010 03:05, Sells, Fred wrote: > I would like to prevent saving a new value if the database contains a > specific

using adobe forms (fdf) to create PDF

2010-08-14 Thread Sells, Fred
Does anyone have experience doing this and can share a link or a snippet. I've got a multi page PDF with editable fields, but I want to fill the whole thing in from my DB and then print it. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" gro

using acrobat fdf in templates

2010-08-16 Thread Sells, Fred
I'm trying to use the Django template system to render PDF's from .fdf's. The PDF's are provided by client and I can generate a dummy .fdf from them and edit that. I can use pdftk to merge the two, but it seems like the template system does something similar. My first problem is that the .fd

RE: manage.py syncdb not working

2010-08-24 Thread Sells, Fred
During development phase, I actually drop and recreate my database, then run syncdb etc to make sure I've got a clean start. Probably not practical once I get into production. From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Nick Arnett Sent: Tuesday, Aug

Get request path without having a request object

2010-08-27 Thread Sells, Fred
I've looked at http://www.djangobook.com/en/beta/chapter12/ and the section on Using sessions outside of views which shows: >>> from django.contrib.sessions.models import Session >>> s = Session.objects.get_object(pk='2b1189a188b44ad18c35e113ac6ceead') But where does that pk come from? I'm down

Models, nulls and default values confusion

2010-09-02 Thread Sells, Fred
I've got several tables like the one below, where I initialize it with "template" values that I copy when I create a new record. INSERT INTO A VALUES (19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ., 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '&', '&'), (20, 0, 0, 0,

RE: model across several databases

2010-09-09 Thread Sells, Fred
I've had success using sql to define views to other databases and then linking an "unmanaged" model to the view. This is with MySQL where different "databases" are really on the same db server. -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com]

RE: Tools to ease template/ui development

2010-09-15 Thread Sells, Fred
Perhaps I'm fighting the trend, but I like Flex -- XML ---DJango best. -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of bruno desthuilliers Sent: Tuesday, September 14, 2010 4:20 PM To: Django users Subject: Re: Tools to ease templa

RE: adding process_exception() to middleware; newbie needs help

2010-10-06 Thread Sells, Fred
Thanks to Daniel and Bruno, will try your suggestions soonest. -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsu

RE: Django and Flux

2010-10-24 Thread Sells, Fred
Agree. We do the same. It's much easier if you have a dual monitor setup and flex on one and django on the other. I use XML rather than pyAMF because it was easier to debug. Just create an xml file and set your HttpService.url to that in Flex; then later make Django generate the same thing. I

newbie having trouble with conversion to south

2010-10-28 Thread Sells, Fred
I’m using django 1.2.1, Python 2.4 and MySQL 5.0 and south 0.7.2 I’ve got an existing app, aptly named “app” which I’m am trying to convert to south so I can make some DB changes. It seemed to install OK and I get to here. At which point I’m lost. Could it be that Python 2.4 logging is not

RE: newbie having trouble with conversion to south

2010-10-28 Thread Sells, Fred
I have played with VirtualEnv, but not really applied it. My biggest concern would be automating a Restart if the server reboots. Also since I'm "old school" and using Apache with mod_python for Django, I'm not if that's a problem. To be honest, I have not researched VirtualEnv much because my M

RE: newbie having trouble with conversion to south

2010-10-28 Thread Sells, Fred
I noticed that easy_install left south as an egg. Can I just unzip that or is there some ezsetup I have to use to expose the files so I can edit that line. I have not needed to "look under the hood" of easy_install's before, so this is probably a RTFM question, but... Sorry to be so "needy" b

manage.py sqlall and db upgrade

2010-11-02 Thread Sells, Fred
I've got my first major django production app deployed and have to upgrade my DB to meet some new requirements. I've tried South, but got into a death spiral and my changes are not so significant that I can't do it by brute force. In researching brute force, it seems like syncdb loads my initial

RE: manage.py sqlall and db upgrade

2010-11-02 Thread Sells, Fred
nd/or models. -- Michael On Tue, 2010-11-02 at 15:27 -0400, Sells, Fred wrote: > I've got my first major django production app deployed and have to > upgrade my DB to meet some new requirements. I've tried South, but got > into a death spiral and my changes are not so significant

RE: Sample Auto Log Out Code

2010-11-03 Thread Sells, Fred
I'm running on Windows 7, Python 2.4 and Django 1.2.1 I'm trying to change one table "facility" by dropping it and then letting syncdb recreate it. I thought syncdb was supposed to ignore already created tables, but that does not appear to be the case. What am I doing wrong? >python manage.p

RE: Django mod_python under apache

2010-11-16 Thread Sells, Fred
I find that flushing stdout sometimes crashes the dev server -- weird. Anyway, if you make a minor mod to any file and save changes it flushes stdout. But the guys who suggested python logging are right on for doing it the "right way" -Original Message- From: django-users@googlegroups.

settings.DEBUG=False in django 1.2.1 and no mail connection

2010-11-25 Thread Sells, Fred
I'm trying to get django to email exceptions to me, now that my app is in production. I'm testing under Windows7 but will deploy under Linux CENTOS The following code works as a test (server names changed to protect the innocent: from django.core.mail import EmailMessage import os def run():

RE: settings.DEBUG=False in django 1.2.1 and no mail connection

2010-11-27 Thread Sells, Fred
Please ignore previous, it was working but getting lost in my spam filter. -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-

RE: Django book

2010-11-28 Thread Sells, Fred
Check amazon.com I like the definitive guide to Django, but it's pretty much what you find online. Pro Django was not very useful to me. There are others now listed and I just ordered 2 of them, based on reader's comments. I'm using django with flex, so I don't get into the template stuff much F

DEBUG=False and emailing pretty html

2010-11-29 Thread Sells, Fred
Is there an easy way to get django to email error tracebacks in the pretty html format that it uses when Debug=True? I've got it emailing plain text, but that requires I "reconstruct" the url from the query string while the html version had it nicely presented -- not the end of the world, but woul

RE: Django in production on Windows

2010-12-05 Thread Sells, Fred
I don't know about IIS, but use django and windows with Apache. See "LAMP" for windows or just install pieces which is easy too. -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of ashdesigner Sent: Wednesday, December 01, 2010 6:44 A

RE: Django in production on Windows

2010-12-06 Thread Sells, Fred
lto:django-us...@googlegroups.com] On Behalf Of ashdesigner Sent: Monday, December 06, 2010 2:43 AM To: Django users Subject: Re: Django in production on Windows Thanks Fred, we'll try it. Anthony On Dec 5, 7:16 pm, "Sells, Fred" wrote: > I don't know about IIS, but u

newbie seeks relevant examples

2007-06-14 Thread Sells, Fred
I've got a java webstart app that I would like to rebuild in django. It is basicly a simple structured text editor where the user can select employees and update goals/scheduled tasks/accomplishments with some industry specific details that are not too important for this discussion. So I need so

newbie django vs. djangoamf

2007-07-10 Thread Sells, Fred
I'm a Pythonista, but new to django. I am building my first Flex app. Using Flex 3.0Beta. This is a rewrite of an Ajax prototype built with dojotoolkit. I have completed the flex side, using static url's that point to xml files with expected responses. When I google 'flex python' I get alot of

RE: newbie django vs. djangoamf

2007-07-10 Thread Sells, Fred
r Django web framework written > in Python. > > It enables Flash/Flex applications to invoke Django's view functions > > using AMF(Action Message Format). > > > > A MiddleWare is a piece of code that is hooked in an HTTP request. > > > > The answer is you n

MySQLdb rpm for CENTOS 5

2007-07-10 Thread Sells, Fred
I'm trying to port my django demo to Apache/mod_python on a CENTOS 5 linux 32bit machine. I'm getting an error message that I need MySQLdb 1.2.1p2 or newer and have only 1.2.1 I've tried googling for an rpm with no success, anyone no where I can find one. My sysadmin dude is out this week, so I

Eclipse and PyDev setup

2007-07-11 Thread Sells, Fred
I'm using Eclipse 3.2 and latest PyDev. I'm a django newbie, just finished the tutorial. I would like to do my development under Eclipse. PyDev want to have a "src" folder under the project, which does not really fit the django default directory structure. mysite (an Elcipse project) poll

Flex integration, best practices?

2007-07-12 Thread Sells, Fred
I'm a django newbie and only a little further along with flex but an old time Pythonista, plus tomcat servlets. I'm very impressed with django; great work. I'm evaluating flex for my presentation layer because of the way it separates view and logic on the client side and it's robust widget set.

Apache Config; newbie confused

2007-07-12 Thread Sells, Fred
I'm a django newbie. I worked through the 4 part tutorial, and then got the mysite demo working under Apache. I went through a lot of trial and error to get it working under Apache, and am concerned that even though it works, I'm missing the big picture. I have to admit that I'm a little confuse

RE: is there any host servers that supports Django based sites?

2007-07-16 Thread Sells, Fred
I suggest you contact webfaction or others and ask them to give you 1 month of free hosting of a developed site, with the plan that your client would then pay to have his stuff hosted there if he liked it. After a few successes, you might get them to give you a generic beta site. > -Original

RE: Time Tracking Tool

2006-06-27 Thread Sells, Fred
I thought I saw something like this on sourceforge -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Ian Holsman Sent: Tuesday, June 27, 2006 6:26 AM To: django-users@googlegroups.com Subject: Re: Time Tracking Tool Importance: Low On 27/06/200

compare two querysets

2012-02-11 Thread Sells, Fred
I've got a use case where I need to find the fields that are different between two querysets in the same model and then use those fields to modify another queryset in that model. The first two represent "masks" of allowed fields for a specific version while the third is the actual data. Assessmen

RE: Streamed file upload without form from actionscript

2012-02-23 Thread Sells, Fred
Here's some snippets from my code that work. I had to remove a lot that is specific to my organization, so no guarantees... -from xmitzipfile.py-- def processZipfileBuffer(user, buffer): email = create_mail_object()

RE: Going crazy with WSGI

2012-03-01 Thread Sells, Fred
I paid my dues, here are a few working files from my system that may help you. Note that I use flex for my frontend and thus don't use all the django features as intended. Some of these files may be out of date with latest practice and current docs. So use them as you will. -- You received th

RE: Looking for Django IDE

2012-04-01 Thread Sells, Fred
Is there a Django 1.4.1 in the works that would solve this problem? I also use Eclipse+PyDev and am planning to upgrade to Django 1.4 shortly. However my management is not going to allow using a nightly build in a production system regardless of the justification. I guess my options are to stick

RE: Looking for Django IDE

2012-04-02 Thread Sells, Fred
"management" that they should get out of > your way and let you do your job. > > > On 2/4/2012 7:17 πμ, Sells, Fred wrote: >> >> Is there a Django 1.4.1 in the works that would solve this problem?   >> I also use Eclipse+PyDev and am planning to upgrade

RE: [JOB] Django Programmers

2012-04-24 Thread Sells, Fred
I think he meant "persecute" From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Mark Phillips Sent: Thursday, April 12, 2012 11:44 PM To: django-users@googlegroups.com Subject: Re: [JOB] Django Programmers That's not very nice to prosecute potential empl

RE: [JOB] Urgent - PHP/Python Developer needed

2012-04-24 Thread Sells, Fred
Baby sitters in Manhattan get that much and lawn care workers in FL with no teeth and a leaf blower get $15. You get what you pay for. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Cal Leeming [Simplicity Media Ltd] Sent: Thursday, April 12, 2012 3:2

RE: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-24 Thread Sells, Fred
Finding a "good consultant" is non-trivial. The A and B+ consultants are generally expensive and in high demand. It is very hard to identify a good consultant if you are not one already. Most people will no longer provide a recommendation of substance because of the potential backlash of a bad r

template logic vs AJAX newbie seeks advice

2012-05-04 Thread Sells, Fred
Up to now, I've been using Flex for my client side and having Django return xml for the last 2 years. With Adobe's policy changes regarding Flex support, I need to shift future efforts to HTML5. I'm seeking some general advice from the group on basic technology/techniques. My specific question i

alternative to .values(*fieldnames)

2012-05-18 Thread Sells, Fred
I'm using Django 1.3 but plan toupgrade to 1.4 later this month. I generally return XML which is consumed by a Flex HttpService in the client so I only use the django template to convert a dictionary to XML. My application is strictly intranet with limited data and users so efficiency considerat

RE: Webservice return pdf

2012-05-31 Thread Sells, Fred
Here's how I merge .fdf with pdf def getPDFContent(assessment): completedfdf = getCompletedForm(assessment) pdffilename = getFilename(assessment, 'forms') +".pdf" pdftk = ["/usr/bin/pdftk" ,'pdftk'][os.name=='nt'] cmd = '%s %s fill_form - output - flatten' % (pdftk

django 1.4, wsgi, flex deploy best practices

2012-05-31 Thread Sells, Fred
I use Flex for the client side and XML between client and server. I am a "one man team" and so elegance sometimes gets sacrifices for "it works". My typical deploy has been /var/www/html/my flex swf and html code And /home/projectname/current/djangositename This works well, except that I

RE: django 1.4, wsgi, flex deploy best practices

2012-06-04 Thread Sells, Fred
That's a nice clean solution requiring only a minimal edit on a redeploy(server move). I had previously tried to semi-automate this using the javascript code below; but that did not provide a host or hostname; however I'm not really a javascript guru and may have missed something.

RE: PyPm / Django 1.4?

2012-06-04 Thread Sells, Fred
I just use MySQL. Better the devil you know ... -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Aaron C. de Bruyn Sent: Monday, June 04, 2012 3:41 PM To: django-users@googlegroups.com Subject: Re: PyPm / Django 1.4? On Sun, Jun 3

RE: Django mod_wsgi + No data received in browser

2012-06-08 Thread Sells, Fred
You may need to "view source" in your browser; also attached is a snippet I used to test mod_wsgi but does not really use django. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jose Sent: Thursday, June 07, 2012 4:35 PM To: Django

RE: DRY violation using get_or_create with defaults

2012-06-12 Thread Sells, Fred
My application is VERY low volume, so I just do this to KISS (resident, created) = models.Resident.objects.get_or_create(pk=resid, defaults=r) resident.__dict__.update(r) resident.save() From: django-users@googlegroups.com [mailto:django-users@googlegroups.com]

RE: Filter by today

2012-06-12 Thread Sells, Fred
You probably want __gte in your filter, if your timestamp field is a datetime field, otherwise plain old = should work. When in doubt, you can always print (result.timestamp, date.today() ) or even use the type() function to make sure you're comparing apples to apples. -Original Message- F

installing django extensions

2012-08-16 Thread Sells, Fred
I'm running python2.6 and django 1.3 I've installed django_extensions using easy_install and verified it as shown. Directory of C:\alltools\python26\Lib\site-packages 08/16/2012 07:59 AM . 08/16/2012 07:59 AM .. 03/12/2012 11:19 AM django 05/28/2011 10:

RE: installing django extensions

2012-08-16 Thread Sells, Fred
Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Amyth Arora Sent: Thursday, August 16, 2012 11:10 AM To: django-users@googlegroups.com Subject: Re: installing django extensions As Alexis said, Try importing it in a shell and se

RE: installing django extensions

2012-08-16 Thread Sells, Fred
Thanks, that last post was the clue I needed. I have 2 independent, active django projects and was erroneously editing the settings.py in the wrong project. Just plain old stupid error, but I may have not seen it for days without all your help. Thanks and apologies for taking up your time. --

Need advice on ForeignKey query problem.

2011-10-10 Thread Sells, Fred
I've got these two tables defined where a Facility can have multiple schedules but a schedule can have only one facility. class Facility(models.Model): id = models.CharField(max_length=2, primary_key=True) name = models.CharField(max_length=30) class Schedule(models.Model):

RE: Need advice on ForeignKey query problem.

2011-10-11 Thread Sells, Fred
ry problem. What your looking for is here in the documentation: https://docs.djangoproject.com/en/1.3/topics/db/queries/#related-objects records = models.Facility.objects.get(pk=62).schedule_set.all() On Oct 10, 8:19 pm, "Sells, Fred" wrote: > I've got these two tables define

RE: Sample Custom Decorator

2011-10-11 Thread Sells, Fred
I'm no expert but this is what I built to log all user actions -- warts and all def decorate(func): ##print 'Decorating %s...' % func.__name__ def wrapped( *args, **kwargs): request = args[0] if len(args)>1: command=str(args[1]) else: command = ''

Alternative to the .using() method

2011-10-11 Thread Sells, Fred
I'm using a MySQL database and one table resides in a separate database than all the others. It's a generic logging table. I understand the use of the .using() method, but I wonder if there is a way to specify the alternative model in the model definition so I don't have to depend on remembering

RE: Alternative to the .using() method

2011-10-12 Thread Sells, Fred
, Oct 11, 2011 at 3:47 PM, Sells, Fred wrote: > I'm using a MySQL database and one table resides in a separate database > than all the others.  It's a generic logging table. > > I understand the use of the .using() method, but I wonder if there is a > way to specify the alter

RE: Ajax replacement in django

2011-10-13 Thread Sells, Fred
> On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 wrote: > >  I am developing a web application where i need ajax like features. > > But I don't want to use ajax, so my question is- "is there any way to > > perform ajax like functions in django?" > Use Flex, it's easier. -- You received this message

RE: configuring

2011-10-13 Thread Sells, Fred
>From command line, launch python then try Import MySQLdb If that fails, you've not installed MySQLdb module. Check docs or google; it's a separate install since django is db agnostic. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Kurtis Mullins S

project architecture question

2011-11-14 Thread Sells, Fred
I build healthcare applications and the gov't regs require we log most user access to patient info. Since I've only built one (rather large) Django app, my logging is in the same DB as my data and I use decorators in views.py to log all access. There is only one table in it's own schema that is u

site organization best practices

2011-11-14 Thread Sells, Fred
Please accept my apologies for "hijacking" a previous thread. Offense was unintentional. My original question is: I build healthcare applications and the gov't regs require we log most user access to patient info. Since I've only built one (rather large) Django app, my logging is in

wsgi, URL patterns and standard deploy practices

2011-11-16 Thread Sells, Fred
I'm setting up a standard deploy on a CentOS 6 system that I hope will be the template for all applications for my small company. We tend to put only 1 or 2 applications on a VMware image more for administrative purposes and to avoid a problem/debugging on one system from impacting other unrelated

RE: MS Access integration with DJango through conversion to (Postgres or MySQL) xor direct interaction

2011-11-30 Thread Sells, Fred
There's a free access to mysql converter; try google; I forgot the name and have it on a different computer than this one. Contact list again if you cannot find it and I'll look harder. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf

select_related, need reverse foreighn key help

2011-12-01 Thread Sells, Fred
I've got a model structure like this class Order(models.Model): id = models.CharField(max_length=10, primary_key=True) # like OT-6212345 facility = models.ForeignKey(Facility) therapy = models.CharField(max_length=2, blank=True) . . . class Schedule(models.Model):

rendering CSV in response; need a little help

2011-12-09 Thread Sells, Fred
I'm getting an http request from another server in our system and I need to respond using a csv format. I've seen the example in the docs where the template looks like this: {% for row in data %}"{{ row.0|addslashes }}", "{{ row.1|addslashes }}", "{{ row.2|addslashes }}", "{{ row.3|addslashes }}"

RE: rendering CSV in response; need a little help

2011-12-11 Thread Sells, Fred
er 09, 2011 11:18 AM To: django-users@googlegroups.com Subject: Re: rendering CSV in response; need a little help On Fri, Dec 9, 2011 at 4:12 PM, Sells, Fred wrote: > I'm getting an http request from another server in our system and I need > to respond using a csv format.  I've seen th

Django 1.2.1 strange problem

2011-12-15 Thread Sells, Fred
I've got an older app that's been running in production for about 2 years on RedHat 4, MySQL 5.0.77 with MyISAM tables, Django 1.2.1 and Python 2.4. This app is used heavily by internal users, which is a relatively light load compared to public sites. I actually use Flex for the client side an

MyISAM vs InnoDB; was Django 1.2.1 strange problem

2011-12-16 Thread Sells, Fred
ql = 'ALTER TABLE %s ENGINE=INNODB' % t print Cursor.execute(sql) From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Ian Clelland Sent: Thursday, December 15, 2011 1:02 PM To: django-users@googlegroups.com Subject: Re: Django 1.2.1 strange problem

django 1.4 timeline

2011-12-25 Thread Sells, Fred
While I realize that release schedules are flexible until near then actual release date, I would appreciate a "best guess" on 1.4 beta. I have to complete a major upgrade of a mission critical app by 1 april. Since I use flex for my client side and have django just return XML, It's not like I n

model for legacy table without primary key

2011-12-30 Thread Sells, Fred
I thought I had read somewhere that it was possible to have a model for a legacy table without a primary key as long as the useage was read only and that the method was "filter" and not "get". I've been searching for quite a while now and all I can find indicates a primary key is mandatory for any

RE: model for legacy table without primary key

2011-12-30 Thread Sells, Fred
Thanks, that's the hack I was trying to remember. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of akaariai Sent: Friday, December 30, 2011 1:06 PM To: Django users Subject: Re: model for legacy table without primary key On De

RE: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-14 Thread Sells, Fred
You referenced Graham's "The Perfect Config". I've been googling without success to find that. Do you have a link? From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Stuart Laughlin Sent: Friday, January 13, 2012 12:52 PM To: django-users@googlegroups.com

Apache JQuery deployment advice

2013-03-20 Thread Sells, Fred
I'm converting a Java jnlp app with a tomcat backend to an HTML5/jQuery/AJAX UI with a Django/Apache backend. This is an intranet application with <50 users and a very light workload. Idle 90% of the time and ~5 users active at a time. There are only 2 or 3 pages in the entire project. I don

RE: Apache JQuery deployment advice

2013-03-21 Thread Sells, Fred
3/13 05:28, Sells, Fred wrote: I'm converting a Java jnlp app with a tomcat backend to an HTML5/jQuery/AJAX UI with a Django/Apache backend. This is an intranet application with <50 users and a very light workload. Idle 90% of the time and ~5 users active at a time. There are only 2

General Apache Deploy Strategy

2013-04-02 Thread Sells, Fred
We use django for intranet applications. There is minimal coupling between applications and we generally dedicate a virtual server for each application. Perhaps not the most efficient, but it works for our environment. In django 1.3 I just copied the "site" directory to the deploy location and

how to combine multiple related applications in one project/site

2013-05-01 Thread Sells, Fred
We're a small organization with limited sysadmin support and a low thruput requirement. I've got some common features that are evolving that are used in all projects, even though the projects themselves are unrelated and on different servers. I have a very specific logging function to a mysql

RE: Deployment Conundrum

2013-06-08 Thread Sells, Fred
Once you get the configuration kinks worked out, using a script to copy a directory is brute force but easy. You can always download XAMP to get the apache/mysql stuff in windows. Also it's hard to argue the cost of a discount service like Webfaction against the labor to "roll your own" but

RE: Cannot import mypackage with code in the __init__.py file

2013-06-19 Thread Sells, Fred
Thanks Bill, I've tried all but the __future__ option. I'll give it a try. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Bill Freeman Sent: Wednesday, June 19, 2013 3:03 PM To: django-users Subject: Re: Cannot import mypackage with code in the __init__.p

RE: Cannot import mypackage with code in the __init__.py file

2013-06-20 Thread Sells, Fred
Yes, the files exist and they have read access and are owned by apache. I do use a symlink of "current" to point to my actual project directory to facilitate testing. I ported this from 1.3 by creating a new 1.5 project and then moving the contents of the old to the new. The error looks like

RE: How do I create a standalone python application that uses the django environment (e.g. the ORM etc...)?

2013-09-23 Thread Sells, Fred
Creating django management commands is easy and then all works nicely. Assuming you're at 1.5, not sure about older ones. Just google it. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of DJ-Tom Sent: Monday, September 16, 2013 10:26 AM To: django-users@go

multiple databases and syncdb problem

2013-10-29 Thread Sells, Fred
I can syncdb OK if I don't add allow_syncdb to my router, but if I add the allow_syncdb to the router, only my default db is synced. Any idea what I'm doing wrong, code is: def allow_syncdb(self, db, model): print 'allow syncdb for* Inserv Router', db, model._meta.a

Problem with syncdb and multiple databases

2013-11-11 Thread Sells, Fred
I'm using Django 1.5 and Mysql 5.1 and am in the early stages of a multiple app development and the schema is changing frequently as "hidden" requirements emerge. I cannot get syncdb to sync anything other than my default db, and when I change my default, it still seems to see the old one. He

wsgi vs. debug server URL's

2013-11-12 Thread Sells, Fred
We deploy with Apache and it serves both django and generic html. We are a small shop with internal applications and minimal server load and we are not ready to have a django server and an html server. I use the /wsgi prefix in my url's to identify what goes to django (via the httpd wsgi.conf

RE: [Suspected Spam] Redoing a C/CGI web app in Python/Django?

2011-04-13 Thread Sells, Fred
That's essentially what google does. I would suggest dealing with the Python~C integration/test as a command line execution and when that works, learn to call the python wrapper from django. It's been 15 years since I actually did any of this, but it is pretty straight forward with SWIG. There a

RE: Best Practice for Raw SQL

2011-04-13 Thread Sells, Fred
In my case I had to read some legacy data from a different schema on the same MySQL server and it was easy (but perhaps not elegant) to just establish a separate connection using MySQLdb module. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] O

  1   2   >