Added-value over PHP?

2010-02-02 Thread Fred
Hello I'm no expert on web applications, and have a couple of questions about Djanjo: 1. What are the advantages of using a framework like Django over writing the same type of database-driven in PHP? 2. Is Django domain-agnostic, or are there applications for which it's a better idea to use some

adding process_exception() to middleware; newbie needs help

2010-10-06 Thread Fred
My django app is working great with Debug=True. But now I'm in production and I want to email exceptions to me and print them to my logfile. I've been googling and searching the docs for the last 2 hours and what I really need is a snippet that shows how to do it in middleware/settings.py. I've

Noobie and MySQL Latin1

2010-06-07 Thread Fred
I'm just converting to Django and man is it cool. Please accept my appreciation for a job well done and my apologies for taking your time with such beginner questions as: I have searched the group and found excellent information about converting latin1 to utf8, but that's not my issue. I've got

confused over use of XYZ.objects.get() method

2011-06-04 Thread Fred
according to the docs, .get(**kwargs) is the signature. I have a model where I have 2 foreign keys that are unique together: class CaaAnswer(models.Model): question = models.ForeignKey(CaaQuestion) assessment = models.ForeignKey(Assessment) mds = models.CharField(max_length=3, b

Puzzled about WSGI vs. FastCGI

2012-10-24 Thread Fred
Hello I'm trying to find how to install Python on a Lighttpd server that currently runs PHP scripts. This articlesays: > Although WSGI is the preferred deployment platform for Django, many people > use shared hosting, on which p

Re: Puzzled about WSGI vs. FastCGI

2012-10-24 Thread Fred
Thanks guys for the infos. It makes a lot more sense now. So it looks like Lighttpd does not support the equivalent of mod_wsgi, so requires a second server that speaks either FastCGI or HTTP/WSGI. On Wednesday, October 24, 2012 5:58:21 PM UTC+2, Fred wrote: > > Hello > > I'm t

Re: Puzzled about WSGI vs. FastCGI

2012-10-25 Thread Fred
nginx, and it requires very little all around configuration. I would expect > Gunicorn with lighttpd to be similar. > > _Nik > > On 10/24/2012 3:11 PM, Fred wrote: > > Thanks guys for the infos. It makes a lot more sense now. > > So it looks like Lighttpd does not suppo

Cannot import mypackage with code in the __init__.py file

2013-06-19 Thread fred
but cannot find a phrase that gives me anything useful. I would really appreciate some advice on what I'm doing wrong. Thanks, Fred. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

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

2013-06-19 Thread fred
a quick update, if I use >python manage.py shell everything works as I would expect, no problems. also I tried removing all code from my __init__.py (yes I'm grasping at straws) and that did not help. -- You received this message because you are subscribed to the Google Groups "Django users

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

2013-06-20 Thread fred
don't have this problem with other django 1.3 wsgi projects. I posted my wsgi.conf earlier and would appreciate any suggestions. Fred. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

django deploy structure

2013-06-26 Thread fred
ers in the community. 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 from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group,

Map Django Model to Legacy multi-join query

2015-01-20 Thread Fred
I've got a complex 1000+ table vendor read-only MS SqlServer database and only have SELECT privileges. I can connect with pymssql no problem. Of all these tables, I probably care about 50 or less. I cannot create views unless I introduce another physical server and use the "Linked Server" opti

SQL Server performance problem

2015-01-28 Thread Fred
I'm on a W7 32bit virtual machine with python 2.7 and SQL Server 2008 with local views referencing Linked Server where the real data resides. My setup is Django (1.7.4) django-pyodbc (0.2.6) django-pyodbc-azure (1.2.3) not using this, it was a false start that did not pan out. mysql

Re: Multiple sites on a single server

2015-04-06 Thread fred
d and don't have any resources I can go to in my company. Thanks, Fred. On Thursday, November 19, 2009 at 7:55:38 PM UTC-5, Graham Dumpleton wrote: > > > > On Nov 20, 4:33 am, Stodge wrote: > > I got this working with several sites using Apache. I just created a > > c

Re: DjangoCon Philly July 17-22. See you there?...

2016-05-31 Thread fred
in developing countries: benefits and challenges. (Aisha Bello & Ibrahim Diop) See my earlier email appended below for more details and what I like about Django. See you at DjangoCon? --Fred ----- Fred Stluka -- mailto:f...

Geodetic software development

2007-12-26 Thread Fred
. Clother information you can find on the site http://www.killetsoft.de/p_gdla_e.htm. Fred --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

'blog entries' with multipe inline images

2007-01-18 Thread Fred
I think I might be seeing more probblems than there really are, time for a reality check. I'd like to use Django for a small newsblog, but I know for sure that I'll need to put a number of pictures into each newsentry. I can create a model for news/blog-items, add an imagefield to such a newsitem

Re: using dev version, just ran update, still getting "cannot import name newforms"

2007-01-23 Thread Fred
Are you sure you don't have both a Django python egg and a django dir in site-packages when you'r installing from source/SVN? I had similar problems, removed the first installed egg (I think it was installed using setuptools) and re-installed from sou

Re: Should newforms security fixes be posted to django-announce?

2007-02-09 Thread Fred
+1. I switched halfway my first project to using newforms in new views/ forms I'm creating. The old manipulator functiosn for custom forms are 'cumbersome' to say it nicely compared to the enlightened newforms way of django

svn co fails with "501 Not Implemented"

2006-06-26 Thread fred
I'm newbie to svn and to django; plan to use dojo, so need to checkout "trunk" per the download page. I just installed svn 1.1.4 using apt-get on a Lineox workstation. I tried the command "svn co http://code.djangoproject.com/svn/django/trunk/"; as described on the download page and get an error

Re: Django Gebruikers Groep

2006-11-12 Thread Fred
Me too, count me in. +1 Eh. Ik ook :-) 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.com To unsubscribe

Tutorial of creating a Poll

2009-03-12 Thread Fred Chevitarese
Hello all ... It´s my first post on here... So, i´ve got a little problem when i follow the instructions to create an app on Django. I´ve created the Poll like the tutorial, and it´s all ok . But when i try to put this on a view to show in a template i´ve got the problem. I´m from Brazil so, my m

Re: Tutorial of creating a Poll

2009-03-13 Thread Fred Chevitarese
l): enquete = models.ForeignKey(enquete) opcao = models.CharField(verbose_name = u'Opção', max_length = 200) votos = models.IntegerField(verbose_name = 'Votos', default = 0) def __unicode__(self): return self.opcao* ** *Thanks for help ;) * ** *** * 2009/3/12 Kar

Re: Django blog for google app engine

2009-03-13 Thread Fred Chevitarese
f. Here's a place to start: > http://www.42topics.com/dumps/appengine/doc.html > > Jacob > > > > -- Fred Chevitarese - GNU/Linux --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Flatpages only works when settings.DEBUG = True

2009-06-24 Thread Fred Chevitarese
What you´ve done? I´m getting this problem and, try all the following steps like you, but still not working ! Can you help me ?? On 5 maio, 04:07, Ronghui Yu wrote: > It works now. That's because a typo error happens in my 404.html page. And > it introduces 500.Thanks all. > > > > On Tue, May 5

Re: DjangoCon '09

2009-07-13 Thread Fred Chevitarese
It apears to be cool!!! I´m in Brazil! Maybe someone can record and put it on youtube!! Hugs... Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2009/7/13 Robert Lofthouse > > Hi all, > > DjangoCon '09 will be in Portland, Oregon at the DoubleTree Gre

Re: Running the site

2009-07-13 Thread Fred Chevitarese
In tis package, you have the database? If yes, you can setup your settings.py poiting to this database. After that, you can run the command python manage.py inspectdb sending the result to a txt file. Then, you can "refactory" the models file ;) Fred Chevitarese - GNU/

How to add a new button near to "Add a new article"

2009-07-14 Thread Fred Chevitarese
Hello! I´m needing to add a button near to the button to add another object. For example, there´s a app called Articles... When i´m in the admin interface, i can see all the articles that i have in the database in a grid. In the top, i have a button to add a new article. So, i want to put another

Re: Style sheet not working after shifting from desktop to laptop

2009-07-14 Thread Fred Chevitarese
Use the Chrome Browser to see the source code generated by Django, and then you can follow the css of your page. Than, you can see if this is pointing to the rigth place ;) http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux On Jul 14, 9:55 am, Lakshman Prasad wrote: > Either

Re: Forms: Set default value

2009-07-15 Thread Fred Chevitarese
title = models.CharField(max_length = 80) search_engine = models.CharField(max_length = 1, choices = SEARCH_CHOICES, default = 'google') Hope it help!! Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2009/7/15 Wiiboy > > Hi, > I'm defining a form model, and I have a

Re: DjangoCon '09

2009-07-15 Thread Fred Chevitarese
Yes!! That will be good!! hello gustavo!! I like your blog very much !!! ;) Fred Chevitarese - GNU/Linux http://chevitarese.wordpress.com 2009/7/14 Gustavo Henrique > > +1, too > > I thinks interesting record in video all about that. > This important for consolidate the

Re: Forms: Set default value

2009-07-15 Thread Fred Chevitarese
look here <http://docs.djangoproject.com/en/dev/topics/forms/modelforms/> There´s an explanation for what you desire! 2009/7/15 Wiiboy > > Sorry, I was little unclear above. I need to set the default for a > form. > > > -- http://chevitarese.wordpress.com Fred

Re: PyOhio - Python Regional Conference

2009-07-15 Thread Fred Chevitarese
s/ > > Hope to see you there! > > Alex > > -- > "I disapprove of what you say, but I will defend to the death your > right to say it." -- Voltaire > "The people's good is the highest law." -- Cicero > "Code can always

Re: Where is the "Else if"... ?

2009-07-29 Thread Fred Chevitarese
Maybe you have to look on the python documentation. http://www.python.org/doc/ 2009/7/29 Asinox > > Hi guy, im looking for the simpley if ...else if but i cant see > in the django documentation > > Thanks :) > > > -- http://chevitarese.wordpress.com Fred

RE: Problem with admin (urls)

2008-06-09 Thread Fred Reillier
+at+%2Fadmin%2F#7 323c1dad954c87b Fred Reillier [EMAIL PROTECTED] http://www.lanquarem.com http://www.musique-electro.net De : django-users@googlegroups.com [mailto:[EMAIL PROTECTED] De la part de ¤ AbdulHafeez Envoyé : lundi 9 juin 2008 12:51 À : django-users@googlegroups.com Obj

Re: Django and ZSI

2009-10-07 Thread Fred Chevitarese
t would be appreciated... Thanks in advance ;) http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux 2009/10/7 Janusz > > HI, > I have an additional question to this topic: how exactly do you deploy > ZSI-generated web services from within Django? > BR/Janusz > > On

Re: where can I find email alert functionality

2009-10-07 Thread Fred Chevitarese
I'm looking for this too, but had no success... I'll have to made your own ... http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux 2009/10/6 Norman > > hello, > > I look for email alert functionality, where readers sign up to get > notifications when news

Re: Model Theory 101 - Video Sharing App

2009-11-12 Thread Fred Chevitarese
Hello ... I've made one app as you like... http://code.google.com/p/django-youtube-syncronizer/ ;) http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux 2009/8/28 thornomad > > Hi thanks for the response - I had looked at oembed, but it didn't > seem like it w

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
hoo.com I promise to never do this again. Thanks Fred Sells -- 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-user

Field Subclassing, or setter help needed.

2010-07-03 Thread Sells, Fred
the docs, books and google with no success. Can someone point me to a snippet or a coherent example/explanation on how to do this. I'm using Django 1.2 with Python 2.4. Thanks, Fred Sells -- You received this message because you are subscribed to the Google Groups "Django users

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
jango 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 know how to access the help_text of the fields, once I have the model instance object? Thanks, Fred. -- You received this

RE: How to access help_text attribute of model field

2010-07-11 Thread Sells, Fred
oogle with no luck. > > Does anyone know how to access the help_text of the fields, once I have > the model instance object? > > Thanks, > > Fred. MyModel._meta.get_field_by_name('fieldname')[0].help_text Although I must say that the examples you give look like they would

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

Re: Django DatabaseError when using sqlall and syncdb

2010-04-27 Thread Fred Chevitarese
Hi! As you said, you´ve created a new database, or you created a database and restore a backup ? Try to create a new and after this, run syncdb. http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux 2010/4/27 larsendt > I'm having issues creating a new database for my app. I

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

2010-11-12 Thread Fred Chevitarese
Look at settings.py and see where in which directory are configured your templates. Then, you can see at the error what file he is searching for... "TemplateNotFound" /home/fred/teste.hlml Something like this :P Hope it helps ;) http://chevitarese.wordpress.com Fred Chevitarese -

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
ettings.py DEBUG = False TEMPLATE_DEBUG = True #also tried False ADMINS = ( ('Fred Sells', m...@mydomain.org'), ) EMAIL_HOST = "mail.mydomain.org" EMAIL_HOST_USER = '' #also tried with my username and password EMAIL_HOST_PASSWORD = '' DEFAULT_FROM_

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

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

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, 20

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: django-users@googl

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 consi

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'] = 'YourDirectoryThatContainsTheSettingsModule.settings

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

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 config

  1   2   3   4   >