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
something. var flashvars = {}; flashvars.hostname = window.location.hostname; flashvars.host = window.location.host; flashvars.port = window.location.port; flashvars.mode = "fred put this in to test";

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

Easiest way to access MySQL from Django on Mac OS X?...

2012-09-22 Thread Fred Stluka
x27;s an easier way for Mac OS X also? Did some more Googling and found: http://stackoverflow.com/questions/1448429/how-to-install-mysqldb-python-data-access-library-to-mysql-on-mac-os-x which is a longish manual set of inst

Re: Easiest way to access MySQL from Django on Mac OS X?...

2012-09-23 Thread Fred Stluka
2.3 % python setup.py build % sudo python setup.py install Success! Now I can access MySQL from my Python/Django apps. BTW, I also downloaded and installed PyCharm. Nice Python IDE! --Fred ---- Fred Stluka -- mailto:f

Re: Easiest way to access MySQL from Django on Mac OS X?...

2012-09-23 Thread Fred Stluka
build % sudo python setup.py install Thanks! --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fence

Re: Easiest way to access MySQL from Django on Mac OS X?...

2012-09-23 Thread Fred Stluka
build % sudo python setup.py install --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fence

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-27 Thread Fred Stluka
How current is this book? Intro says it may not be. It seems to be very well-written, but I don't want to be reading stuff that is too old. I find more recent reference info, as well as good overviews, guides, etc. at: https://docs.djangoproject.com/ -

Re: send_mail on MAC OS X 10.7

2012-10-03 Thread Fred Stluka
like smtp.googlemail.com as you do with your Apple Mail client. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without wall

Re: Edit two related models on one form

2012-10-06 Thread Fred Stluka
ou'll have to enhance the above to support multiple answers. Also, to allow editing of existing questions and answers. I have code for that scenario too, if you can't figure it out, but this should get you started. Anyone else have improvements on this? --Fred --

Re: Help me choose OS for django server

2012-10-30 Thread Fred Stluka
+1 for fail2ban It's surprising that a 3-year attack eventually succeeded if you had fail2ban installed, which should have blocked the attack after just a couple tries. Or had you not yet learned about fail2ban? I got hacked once too, before I learned about fail2ban. Never since. -

Re: Help me choose OS for django server

2012-10-30 Thread Fred Stluka
/Tips/Unix.htm#tripwire and 9 other security tips: http://bristle.com/Tips/Unix.htm#unix_security --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad

Re: Location of non-app-specific static files?

2012-11-04 Thread Fred Stluka
Yeah, I do the same with STATIC and COLLECTED_STATIC. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without

Re: initializing virtualenvwrapper on Mac (10.6.8) for Django

2012-11-06 Thread Fred Stluka
Nice! Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or

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
the same examples that are close but not quite what I need. If someone can clarify how to eliminate the trailing ","I would really appreciate it. Thanks, Fred. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

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'm being anal about this whole pk issue and need to just bite the bullet, so be it. Any sage advice? Fred. -- 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.

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

Re: Incorrect Python Version Being Used

2012-11-15 Thread Fred Stluka
Tom, Excellent article! Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we

Re: MySQL Connector/Python Django 1.4

2012-11-22 Thread Fred Stluka
OS X. I can give you instructions for those platforms. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without wall

Re: difficulty with static files

2013-01-16 Thread Fred Kingham
not sure if this is the right place to post this, but doesn't this - https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-development "If using *runserver*for local development (an

static files, runserver debug=True

2013-01-16 Thread Fred Kingham
hanks for your help Fred -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Q5LVGSzbZdsJ. To post to this group, send email to django-users@googl

Re: difficulty with static files

2013-01-16 Thread Fred Kingham
ah ok cool thanks On Thursday, November 29, 2012 6:00:26 PM UTC, Sammy wrote: > > Hello django experts > I am unable to get my static files to work. Here are my settings: > > projectfiles > | > |-myproject > | | > | |-static > | | | > | | |-css > | | |-

Re: difficulty with static files

2013-01-16 Thread Fred Kingham
ok, I do think its confusing, but I'm happy to admit it might just be me. On Thursday, November 29, 2012 6:00:26 PM UTC, Sammy wrote: > > Hello django experts > I am unable to get my static files to work. Here are my settings: > > projectfiles > | > |-myproject > | | > | |-static

Re: static files, runserver debug=True

2013-01-16 Thread Fred Kingham
perfect thanks Javier. I guess my question should have been phrased, if debug = False, does the runserver serve static files from the STATIC_ROOT. Clearly that's no. Thanks again. Fred On Wednesday, January 16, 2013 7:19:01 PM UTC, Javier Guerra wrote: > > On Wed, Jan 16, 2

Re: ANNOUNCE: Django 1.5 released

2013-03-13 Thread Fred Stluka
Good idea! I donated $100. Excellent product. Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without

Apache JQuery deployment advice

2013-03-20 Thread Sells, Fred
e Flex IDE and the server was built using Eclipse/PyDev. But now that I'm abandoning Flex, I think there should be a better way. Perhaps my lack of experience with staticfiles is a factor in not seeing the light, but I would appreciate some insight into a sound deployment strategy. Thank

RE: Apache JQuery deployment advice

2013-03-21 Thread Sells, Fred
head around staticfiles in django. I guess I need to try it before I can ask intelligent questions. Thanks for the eye opener. Fred. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Michael Pimmer Sent: Wednesday, March 20, 2013 6:34 PM To: django-

General Apache Deploy Strategy

2013-04-02 Thread Sells, Fred
x27;t live with copying the project in its entirety, but is there a better, more django-esque way? Thanks, Fred. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

how to combine multiple related applications in one project/site

2013-05-01 Thread Sells, Fred
and cannot devote much time to "infrastructure tangents" no matter how good they might be. I would appreciate a little advice on the good, bad and ugly solutions to the above, based on the communities more extensive experience. Thanks, Fred. -- You received this message because you are

RE: Deployment Conundrum

2013-06-08 Thread Sells, Fred
r own" but sometimes management can be difficult ;) good luck. Fred. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Daniel Braun Sent: Tuesday, June 04, 2013 8:21 AM To: django-users@googlegroups.com Subject: Re: Deployment Conundrum Thanks for

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

2013-06-19 Thread Sells, Fred
19, 2013 at 2:51 PM, fred mailto:fred.se...@adventistcare.org>> wrote: I'm upgrading to django 1.5.1 on CentOs 6.4 with python 2.6.6 although I'm developing on a W7 with the django debug server. I am getting executing my view.py and most of the modules it uses. But in one scena

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

2013-06-20 Thread Sells, Fred
ers@googlegroups.com Subject: Re: Cannot import mypackage with code in the __init__.py file On Wed, Jun 19, 2013 at 7:51 PM, fred wrote: > I'm upgrading to django 1.5.1 on CentOs 6.4 with python 2.6.6 > although I'm developing on a W7 with the django debug server. > > I a

Re: django dynamic template tag

2013-07-03 Thread Fred Stluka
Fadi, You need to {% load %} the file that defines the tags. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source

Re: CSRF in javascript

2013-07-20 Thread Fred Stluka
lots of other convenient options. See: - https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ and especially: - https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax Also, you can find tons of working examples by Googling: django csrf ajax --Fred

Re: CSRF in javascript

2013-07-20 Thread Fred Stluka
7;show_edit':True, 'show_tags':True } return render_to_response('bookmark_list.html', variables, RequestContext(request)) --Fred ---- Fred Stlu

Re: How to force modelForm.is_valid() to use a specific database?

2013-07-23 Thread Fred Stluka
Fellipe, See: https://docs.djangoproject.com/en/dev/topics/db/multi-db/ There are a number of ways for force use of a specific database. You can force it per query, per table, or by any other criteria you like. You may need to set up a simple "database router"

Re: multiple templates fro single view

2013-08-01 Thread Fred Stluka
Can also use render_to_string(). --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we

Re: implement gmail type address adding functionality in django

2013-08-05 Thread Fred Stluka
Roopa, The word to search is "autocomplete". Check out: http://api.jqueryui.com/autocomplete/ It is a JavaScript widget. We use it with Django. It runs in our Web page, and does an Ajax call to our Django code, which pulls the list of completions from our D

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: Why is RequestContext used in this way?

2013-11-15 Thread Fred Stluka
;ve always passed the dictionary directly to render_to_response(). --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Wit

Re: mod_wsgi setup

2013-11-15 Thread Fred Stluka
odwsgi/wiki/QuickConfigurationGuide - http://code.google.com/p/modwsgi/wiki/ConfigurationIssues - https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/

Re: mod_wsgi setup

2013-11-15 Thread Fred Stluka
tino, Didn't need the WSGIPythonHome setting in Apache, eh? Interesting... --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of se

Looking for Django consultants near Philadelphia PA...

2013-11-17 Thread Fred Stluka
in western Philly suburbs - Full time (30+ hours/week) consultant - 6+ months Interested? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of

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

RE: Best Practice for Raw SQL

2011-04-13 Thread Sells, Fred
om Subject: Re: Best Practice for Raw SQL On Wed, Apr 13, 2011 at 1:38 PM, Sells, Fred 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 connection using MySQLdb modul

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

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

json serialization question

2011-05-24 Thread Sells, Fred
I'm using AJAX, jquery and JSON for the first time, having used templates to render XML for Flex/Flash in all my previous Django work. My code looks like this records = models.Residents.objects.extra( where=[], params=[...]) data = serializers.serialize('json', records, ensure_ascii=False, fie

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 pro

Re: ANN: django-iadmin

2011-07-04 Thread Fred Chevitarese
*Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer momento.* " Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2011/7/4 creecode > Sounds interesting! Thanks! > > > On Monday, July 4, 2011 11:06:44 AM UTC-7, sax wrote: >> >&g

Re: ANN: django-iadmin

2011-07-04 Thread Fred Chevitarese
tempo, pois o relógio pode parar a qualquer momento.* " Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2011/7/4 sax > yep, but more test needed > > sax > > > > > 2011/7/4 Fred Chevitarese > >> Hmmm I like it ! &

Re: unique_together in 1.2: does it need a syncdb and does it work when saving the model?

2011-07-26 Thread Fred Janon
That explains and helps a lot, thanks Javier. On Tue, Jul 26, 2011 at 20:31, Javier Guerra Giraldez wrote: > On Tue, Jul 26, 2011 at 4:09 AM, fjanon wrote: > > - do I need to update the database schema and how do I get the > > appropriate SQL change/patch from Django? > > - is the unique constra

admin.py: is it safe to store the request in an XXXAdmin object?

2011-07-26 Thread Fred Janon
formfield_for_dbfield() later. self.request = request # <<<<< Safe? return super(OrderAdmin, self).get_form(request, *args, **kwargs) Thanks Fred -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

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

Re: Building app on already existing set of DB tables

2010-12-22 Thread Fred Chevitarese
ant? Hope it help! Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2010/12/22 Vikram > Hi, > > I am working on building an app that reports the data from the already > existing tables in the Oracle DB. These tables are data-dictionary > tables and my application

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 django-users+unsubscr...@googlegroups.co

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 l

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

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: E-commerce site

2011-02-09 Thread Fred Chevitarese
sente é o único tempo que você possui.* *Viva, ame e trabalhe com vontade.* *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer momento.* " Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2011/2/8 Kenneth Gonsalves > On Tue, 2011-02-08 at 05:53

Re: E-commerce site

2011-02-09 Thread Fred Chevitarese
e é o único tempo que você possui.* *Viva, ame e trabalhe com vontade.* *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer momento.* " Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2011/2/9 Fred Chevitarese > I know. Lot of people don´t like

Re: E-commerce site

2011-02-09 Thread Fred Chevitarese
mais cedo ou se mais tarde.* *O presente é o único tempo que você possui.* *Viva, ame e trabalhe com vontade.* *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer momento.* " Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2011/2/9 Kenneth Gonsalves

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread Fred Chevitarese
apenas uma vez.* *Ninguém tem o poder de decidir quando os ponteiros pararão, se mais cedo ou se mais tarde.* *O presente é o único tempo que você possui.* *Viva, ame e trabalhe com vontade.* *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer momento.* " Fred Chevitar

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread Fred Chevitarese
pode parar a qualquer momento.* " Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2011/2/9 Fred Chevitarese > I guess you are making an mistake. > It have to be something like this: {% now "jS F Y H:i" %} > > You can take a look at the table with

Django + FacebookConnect

2011-02-10 Thread Fred Chevitarese
eiros pararão, se mais cedo ou se mais tarde.* *O presente é o único tempo que você possui.* *Viva, ame e trabalhe com vontade.* *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a qualquer momento.* " Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com -- You received th

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

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

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

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: django-users@googlegroups.com

<    1   2   3   4   >