Integration with Legacy DB

2015-01-14 Thread Sells, Fred
Although I have not tried it, the docs are pretty clear about how to sync a django model to an existing legacy DB (sqlserver08 in this case). But is there a way to sync to a select statement with multi-table joins without first creating a View? I know that creating a view would be easiest, but

centos 6 python 2.6 django 1.7 install problem

2014-10-14 Thread Sells, Fred
Downloaded the gz file, unzipped and ran python setup.py install Note, due to network security settings, I cannot use pip or any similar tool that needs external web access I get the following errors, any advice on how to fix? …snip…. creating

RE: [ELI5] how to deploy django

2014-03-18 Thread Sells, Fred
The latest “Two Scoops of Django” book claims to have good info on deploying; I’ve not read it yet. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Walter Wang Sent: Tuesday, March 04, 2014 11:54 AM To: django-users@googlegroups.com Subject: Re: [ELI5]

RE: big legacy database with complex many to many relationships

2014-02-24 Thread Sells, Fred
database with complex many to many relationships On Mon, Feb 24, 2014 at 2:54 PM, Sells, Fred <fred.se...@adventistcare.org> wrote: > I have to integrate to a large read only legacy mssql database . while certainly it's possible to configure this as a second database and use the ORM, I

big legacy database with complex many to many relationships

2014-02-24 Thread Sells, Fred
I have to integrate to a large read only legacy mssql database . The many-to-many tables have a lot of additional fields like start/end dates of the relationship and their own naming conventions Can anyone point me to some links that treat this topic in depth. I've looked at the django book

RE: need django.cache advice

2014-01-09 Thread Sells, Fred
: Re: need django.cache advice On Thu, Jan 9, 2014 at 4:43 PM, Sells, Fred <fred.se...@adventistcare.org> wrote: > > Fred: I was unclear. The initial join is 1 x 1000 x 20 x 100 ... which > gets reduced to about 1000 records. A few records are changed every second. are the 'inte

RE: need django.cache advice

2014-01-09 Thread Sells, Fred
Thanks Erick, I was not aware of Varnish. Erik wrote: 1000 records from 6 tables shouldn't be a problem if your database is properly indexed. Databases are good at caching query results and not doing excess work when the data hasn't changed. Maybe the first request from a terminal will be

need django.cache advice

2014-01-09 Thread Sells, Fred
I've got a queryset that is ~ a 6 table join of a lot of data that generates about 1000 records with about 25 fields each I've got ~100 terminals hitting this query every 1 minute looking for a subset of 25 records ~20 records change every minute I was thinking about updating the data

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

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.

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,

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:

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: 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

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

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

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

RE: Apache JQuery deployment advice

2013-03-21 Thread Sells, Fred
, 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 or 3 pa

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

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.

RE: installing django extensions

2012-08-16 Thread Sells, Fred
roups.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 see what response you get, the INSTALLED_APPS dictionary is correct , seems more like a corr

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

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-

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: 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:

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

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.

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: 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' %

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

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

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

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

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

RE: Looking for Django IDE

2012-04-02 Thread Sells, Fred
ot;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 to

RE: Looking for Django IDE

2012-04-02 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: 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

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()

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.

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

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

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

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

MyISAM vs InnoDB; was Django 1.2.1 strange problem

2011-12-16 Thread Sells, Fred
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 On Thu, Dec 15, 2011 at 5:56 AM, Sells, Fre

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

RE: rendering CSV in response; need a little help

2011-12-11 Thread Sells, Fred
, 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 <fred.se...@adventistcare.org> wrote: > I'm getting an http request from another server in our system and I need > to respond using

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

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):

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

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

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

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

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

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

RE: Alternative to the .using() method

2011-10-12 Thread Sells, Fred
, Oct 11, 2011 at 3:47 PM, Sells, Fred <fred.se...@adventistcare.org> 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

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: 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 = ''

RE: Need advice on ForeignKey query problem.

2011-10-11 Thread Sells, Fred
. 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" <fred.se...@adventistcare.org> wrote: > I've got th

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: Django for a front end designer

2011-08-05 Thread Sells, Fred
I think many of the members of this group have a pro-python bias for a good reason. Most of us have had to work with many other frameworks and languages and Python is the only one I would use to "unwind". Sometimes it's worth "paying your dues" -- You received this message because you are

RE: Run an application periodically on django

2011-08-04 Thread Sells, Fred
You can run a django module directly if you do something like: if __name__ == '__main__': sys.path.append( '/all/projects/one-up-from-site directory) #may not be needed in all cases. os.environ['DJANGO_SETTINGS_MODULE'] = 'mds30.settings' The problem I just encountered using

RE: Django for a front end designer

2011-08-03 Thread Sells, Fred
I had to learn basic Php for a class. It's worth it to subscribe to Lynda.com for a few months to get their online training videos. Removes much pain. Like all training, it covers the basics and you really don't know what you don't know until you try to do something. -Original Message-

RE: Django and Rich Client

2011-06-09 Thread Sells, Fred
FWIW I use flex for the rich client and get xml out of django which flex handles nicely. I use Ldap for Authorization (had to use legacy junk for authentication to be compliant) and I have a cron job that loads the ldap groups I need and there members into my db. Solves speed and reliability

RE: This section is converting database table to excel file

2011-04-28 Thread Sells, Fred
Since Excel will import a csv file, why not just write a csv file. In mysql, while ugly, you could shell down and use the mysql command line options to export a query to csv. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Od-Erdene Ch Sent:

RE: Please Help a django Beginner!

2011-04-19 Thread Sells, Fred
I received this helpful hint from Shawn M. when faced with the same issue: import os os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' #whereever your settings.py is located. >From the docs: http://docs.djangoproject.com/en/dev/topics/settings/ -Original Message- From:

RE: Best Practice for Raw SQL

2011-04-13 Thread Sells, Fred
: Re: Best Practice for Raw SQL On Wed, Apr 13, 2011 at 1:38 PM, Sells, Fred <fred.se...@adventistcare.org> wrote: 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 conn

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]

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

RE: [Suspected Spam] mysql problems after upgrading to django 1.3

2011-04-10 Thread Sells, Fred
Try mysql from the command line, make sure the service is running. Sometimes the install does not set it up to start on a reboot. Make sure you did not specify the port (socket) either when you installed or in django -- usually it's 3306 on a pc, don't know about mac. -Original Message-

RE: LDAP and 1.2

2011-04-05 Thread Sells, Fred
Because our active directory contains many more users than are allowed to use my django app, I have a cron job that runs every 5 minutes and updates a mysql database with the subset I care about. That way if AD is offline at the time, I'm not hosed. From: django-users@googlegroups.com

RE: [Suspected Spam] Django app for data management and visualization

2011-04-05 Thread Sells, Fred
There are guys in this group who are much more sophisticated meta programmers than I. But here's a very simple method: It is easiest if each unique module has the same class name, such as "class Controller:" Then define and import all your plugins (does not allow uploading plugin, but that's

RE: Advice: project hosting apps

2011-04-04 Thread Sells, Fred
I've seen a lot of chatter about Eclipse mylyn which can be integrated with trak. Not used it however. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Javier Guerra Giraldez Sent: Monday, April 04, 2011 10:21 AM To:

RE: staticfile app question

2011-03-30 Thread Sells, Fred
This may be using a canon to swat a fly, but... I had a project some time ago where I needed a very repetitive java/swing UI. I ended up creating python classes that had a __repr__ method that generated the java source code. Then I was able to have very concise python files that instantiated

RE: Django IDE : how to start the devserver in an editor?

2011-03-30 Thread Sells, Fred
Using eclipse you can create a run configuration that starts the dbserver and it will auto-reload whenever you change a file. Of course since the dbserver auto restarts when it detects a file change, the command line is not all that bad. -Original Message- From:

noobie cannot get mod_wsgi to import settings

2011-03-30 Thread Sells, Fred
I've been googling and trying this for 2 days now, I'm sure I'm just confused about something basic because it cannot be that hard. I've tried all the hints I found via google and they made sense but no success. I'm running RHEL 6 Python 2.6.5, django 1.2.4 and mod_wsgi 3.2. I'm trying to

wsgi config question

2011-03-29 Thread Sells, Fred
I'm just converting from mod_python to mod_wsgi and making progress. I would like to be able to deploy multiple independent webapps without having to edit the apache configs each time. I'm thinking of something like /var/www/wsgi-scripts App1.wsgi App2.wsgi

RE: How to run a file.py in the django environement

2011-03-28 Thread Sells, Fred
It was explained very clearly to me, I believe by shawn, but I've lost the original reference. If the file you want to run is in your django app directory you just need import datetime, sys, os, logging os.environ['DJANGO_SETTINGS_MODULE'] =

RE: Rewriting Java UI for Django?

2011-03-25 Thread Sells, Fred
I also have made the conversion from Java/Swing/Webapp(jnlp) to Django, but I used Flex (a.k.a. Flash) for my UI because I've got a rich client background and did not want to deal with Browser inconsistencies. I'm happy with that choice. I use a very simple django template to render a very

RE: Implementing a ldap db backend

2011-03-22 Thread Sells, Fred
I'm using my own auth and ldap via python-ldap as a query only; others maintain it. My only issue is that of response. I query all the groups I care about and get all their members and keep that in a MySQL db that I refresh every 5 minutes of an unrelated cron job. From:

RE: Django on Windows 7

2011-03-22 Thread Sells, Fred
It's painless. I'm no sysadmin but I just followed the instructions and everything worked. I'm even using python 2.4 due to some outside issues. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Vladimir Sent: Tuesday, March 22,

RE: Django on EC2

2011-03-22 Thread Sells, Fred
I'm using a redhat enterprise 6 and all these are standard or available as standard installs. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Eric Chamberlain Sent: Tuesday, March 22, 2011 12:31 PM To:

deploying flex and django

2011-03-21 Thread Sells, Fred
I would appreciate some guidelines on a better way to deploy a flex/flash frontend with a django backend. I've got flex and django working nicely using the Flex HTTPService and XML and the message content. Probably not as efficient as other methods but this is an intratnet and performance is not

user confused with select_related and a one_to_one field

2011-03-16 Thread Sells, Fred
I'm using python 2.4 and django 1.2.4 with MySQL 5.0 FWIW I have the following models (code deleted to simplify) class Message(models.Model): facility= models.CharField(max_length=2, null=True, blank=True) msgtype = models.CharField(max_length=3) class Pv(models.Model):

RE: using Django from cron

2011-03-16 Thread Sells, Fred
Thanks to all who responded and especially Shawn who said much the same thing in a way I could grasp. ... import os os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' >From the docs: http://docs.djangoproject.com/en/dev/topics/settings/ Shawn -- You received this message because you

using Django from cron

2011-03-10 Thread Sells, Fred
I'm sure the solution is out there somewhere, but my google search is giving me too many false positives. I have a stand along python program that will be run as a cron job and I don't know how to launch it so it picks up the django settings, etc. I can run it like this >python manage.py shell

RE: ReportLab and Django - templates? ; FK object has no attribute split

2011-01-07 Thread Sells, Fred
Depending on what you need to do You could shell down and run FOP from Apache foundation which is xml, xslt to pdf Or if you are filling in a form, you can use Adobe LiveCycle to define a form and use code like below to fill in the form def getPDFContent(id): values = getAllValues(id)

RE: an error happened to apache2and wsgi

2011-01-06 Thread Sells, Fred
I've seen similar errors if I left in print >>sys.stderr statements, although that was using mod_python. From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Graham Dumpleton Sent: Thursday, January 06, 2011 2:23 AM To: django-users@googlegroups.com

RE: RE: The Django-CMS 2.1 Release Candidate 1 has been released!

2010-12-26 Thread Sells, Fred
Thanks. From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Jonas Obrist Sent: Sunday, December 26, 2010 5:29 AM To: django-users@googlegroups.com Subject: Re: RE: The Django-CMS 2.1 Release Candidate 1 has been released! Hi fred There's a lot of

RE: The Django-CMS 2.1 Release Candidate 1 has been released!

2010-12-25 Thread Sells, Fred
Are there any example sites running this? -- 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

RE: Django in production on Windows

2010-12-06 Thread Sells, Fred
-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" <fred.se...@adventistcare.org> wrote: > I don't know

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

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

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

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

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: 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:

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

RE: manage.py sqlall and db upgrade

2010-11-02 Thread Sells, Fred
and/or models. -- Michael <mhall...@gmail.com> 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

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: 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"

  1   2   >