Re: What do you use for design interface / mockup

2008-10-23 Thread Peter Herndon
At the risk of being flamed, I'd say that nothing is better than OmniGraffle. That aside, both Gimp and Dia are cross-platform and very reasonable choices. They may not fit the Mac gui, but they work well enough if cross-platform is a higher priority than best-of-breed. You can get the job done

Re: Noon Help

2008-10-27 Thread Peter Herndon
I might also suggest django-registration (http://code.google.com/p/django-registration) to handle your user registration needs. On Mon, Oct 27, 2008 at 2:34 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > Johnny Utah wrote: >> Thanks for the input. >> >> When you say Django.admin would be useful,

Re: psycopg2 Visual Studio installation error on XP

2008-11-17 Thread Peter Herndon
Hi DJ, Psycopg2 has a C extension wrapped by Python. That C extension must be compiled with the same compiler used to compile the Python compiler itself. This is not a Django issue, this is a psycopg issue. You should ask for assistance on the psycopg mailing list, they'll be better able to he

Re: Setting Up Django on Vista and Creating a Database

2008-11-17 Thread Peter Herndon
The other thing that comes to mind is, have you installed the MySQLdb python library? If you want to connect to a database from a Python app, you must also install a library that bridges Python and the database. (I apologize in advance if you've already done so). ---Peter On 11/17/08, Karen Tr

Re: django and favicon.ico problem

2008-12-17 Thread Peter Herndon
I've done favicons as per Malcolm's suggestion, with a link in my base template to e.g. /media/images/favicon.ico, and that works satisfactorily for most cases. The favicon shows as expected in browser address bars, etc. However, since favicons arose via convention, where the convention was to p

Re: Do you recommend "Practical Django Projects"?

2009-01-05 Thread Peter Herndon
"Practical Django Projects" is a bit dated at the moment -- Django has been moving very quickly. However, there's a lot to learn from it, particularly regarding structuring your applications to be reusable, and lots of other best practices. I'm in the middle of "Python Web Development with Djang

Re: static html

2008-10-13 Thread Peter Herndon
On Mon, Oct 13, 2008 at 8:36 AM, Alfredo Alessandrini <[EMAIL PROTECTED]> wrote: > > ok...it's work. > > but If I want customize the url by url.py? > > > Alfredo > If you really want to customize the URL with urls.py, then go ahead. But for URL customization with Apache, use mod_rewrite. It may

Re: trying unsuccessfully to access django admin

2009-01-22 Thread Peter Herndon
Well, first things first: set DEBUG=True in your settings. The traceback you got there is saying there's an HTTP 500 error somewhere, so it's looking for a 500.html template to use to display that error. Django only tries to show that page if you have set DEBUG=False. In this case, you need to

Re: Some questions on using Django

2009-02-11 Thread Peter Herndon
On Wed, Feb 11, 2009 at 9:39 AM, koranthala wrote: > (1) >Could somebody let me know whether this is usual? Am I missing > some basic viewpoints which is causing me to write far too much code > than necessary? i.e. Am I or am I not following Django framework > properly? No, this app

Re: Charts for Admin Interface

2009-02-15 Thread Peter Herndon
I don't have the URL handy, but the admin docs contain pointers on how to add extra URLs to your admin site. Create a view, make a template, add the URL, profit!! So if you want charts in your admin, such a task is well within the capabilities of Django for you to add. On 2/13/09, Robert wrote

Re: Mutli-Assignable Models

2009-02-15 Thread Peter Herndon
Hi Justin, I can't view your code at the moment, but it seems to me you want a ForeignKey on Article to Show, another FK on Photo to Show, an M2M from Article to Photo, and a custom manager on Show, or some other custom method, that returns both Articles and Photos. The latter might best be acco

Re: Mutli-Assignable Models

2009-02-17 Thread Peter Herndon
On Mon, Feb 16, 2009 at 1:20 PM, Justin Lilly wrote: > > Hi Peter, > > While your proposed solution would work for the prototyping example > I've given, I have 3 more arching themes like Show and probably > another 4-5 content types like photo and articles. The main idea here > is to be able to

Re: Django Transaction Management

2009-02-26 Thread Peter Herndon
>   Django Reference suggests that we use Transaction Middleware in the > web applications. Mm, the documentation doesn't suggest you use it, it merely details how to use it if you in fact need it. Whether you need it or not is a design decision you must make. >   What is the usual practice fol

Re: Django Certifications

2009-03-06 Thread Peter Herndon
In short, no.If you are looking to create one, feel free, there's no competition. There's also been no discernible demand, from what I've seen. On 3/6/09, Praveen wrote: > > Is there any Django certification as others like SCJP, MCSE, CCNA and > more on? > > > --~--~-~--~~-

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Peter Herndon
is still disclosure, and subject to penalties. And since security policy enforcement is usually less on a test system ("Oh, sure, I'll show you how it works on test, no problem!"), the chances of disclosure are higher. ---Peter Herndon http://spookypony.com --~--~-~--~

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Peter Herndon
> You speak > of HIPAA which translates to FISMA requirements. I suspect they are complementary, not equivalent. > I assume your web > application i.e  MYSQL will be storing Personal Identifiable > Information (PII) such SSN, etc... In this case, you may have tough > battle getting your web appl

Re: Memory error

2009-08-05 Thread Peter Herndon
On 08/05/2009 12:26 PM, drakkan wrote: > No I'm not serving static file I have a very large json file > dinamycally generated (based on a db query) > Please post the relevant view and model code, so we can see what's happening. Also, if your db query is actually a really large number of db

Re: Memory error

2009-08-05 Thread Peter Herndon
On 08/05/2009 04:09 PM, drakkan wrote: > The code is something like this > > obj=DBModels.objects.filter(somefilter) > results=[] > for o in obj: >results.append({'field1':o.field1,'field2':o.field2}) > > return JsonResponse(results) > > where JsonResponse is a class derived from HttpResponse

Re: adapt admin interface

2009-08-05 Thread Peter Herndon
On 08/05/2009 03:36 PM, sveri wrote: > Hi, > > i wonder if it is possible to change the admin interface of an app > like that: > Yes, it is very possible. > Now i go to the admin interface of Entries and want to add a new > Entry. > Then i select a party for the new entry. > After having that

Announce: django-ldap-groups

2009-08-05 Thread Peter Herndon
osoft Active Directory and Novell eDirectory. Other LDAP servers will probably work using the eDirectory backend, but none have been tested at the time of writing. Please let me know if you have any questions or comments. Regards, ---Peter He

Re: python md5

2009-08-06 Thread Peter Herndon
On 08/06/2009 01:55 PM, Asinox wrote: > Hi guys, please i need to know why md5 return this: > > > > > the way that im using: > > def encriptar(): > toEncode = pickle.dumps(datetime.now) > encoded = md5.new(toEncode) > > return encoded > Because encoded is an md5 hash *object*.

Re: how to deploy Django on the web server?

2009-08-07 Thread Peter Herndon
On 08/07/2009 05:25 PM, Milan Andric wrote: > Justin, it's not. Have you seen the deployment docs? > > http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index > > -- > Milan > > On Aug 7, 1:56 pm, justin jools wrote: > >> thanks for the reply but I have access to a serv

Re: apps that relate to each other

2009-08-07 Thread Peter Herndon
On 08/07/2009 05:33 PM, Milan Andric wrote: > Hello I have two apps that have foreign keys to each other. Like: > > people.models: > >class Profile(Model): > secondary_email = CharField() > >class Staff(Profile): > office = ForeignKey(Room) > > > resources.models: > >class

Re: Strange problem with LDAP authentication backend

2009-08-12 Thread Peter Herndon
ry to the list of supported servers. It is very new (about a week old or so), and has boogs, but I'd love to see if it helps your problem. (Of course, the fun part about LDAP is that my diagnosis may be entirely wrong, too... ;) Regards, ---Peter Herndon --~--~-~--~~-

Re: Theory: Models/Apps

2009-08-14 Thread Peter Herndon
. And when you start thinking that your models.py, or views.py, is getting too big, you should probably start asking yourself if you split a related set of functionality out into its own app. ---Peter Herndon --~--~-~--~~~---~--~~ You received this message b

Re: how much python do i need to know to learn/use Django?

2009-08-14 Thread Peter Herndon
leties of the language. Yes, Python is designed to be easy to learn and easy to read, but understanding the possibilities inherent in the language will help you grasp more of Django more easily than if you just dive into web programming. Listen to the instru

Re: Eric Evans Value Objects

2009-08-17 Thread Peter Herndon
Hi Tibor, On Mon, Aug 17, 2009 at 4:17 AM, gentlestone wrote: > > I'm looking for a support for something like Eric Evans Value Objects > (http://domaindrivendesign.org/). For example, if I have a Person > model like > > class Adress(models.Model): >    street = ... >    city = ... >    postal_co

Re: custom authentication backend not being used...

2009-08-19 Thread Peter Herndon
On 08/19/2009 02:04 PM, Jay wrote: > Sorry, nevermind. I finally figured this out right after I posted > this. > > What was the solution? Both for posterity, and because I'm personally curious. Thanks, ---Peter --~--~-~--~~~---~--~~ You received this messa

Re: Ajax TreeList with Django

2009-08-26 Thread Peter Herndon
On 08/26/2009 03:52 PM, Dirso wrote: > I'd like to create a dynamic treelist (using Ajax, Django and > Postgres). Did anyone know tutorial ou code piece that could do this > magic? > > Hi Dirso, I've done something similar to what you are describing, using jQuery, the dynatree jQuery plugin,

Re: Fulltext searching

2009-03-28 Thread Peter Herndon
In addition, full text indexing with Sphinx has been shown to be faster than the same using MySql'ls fulltext search. Django-NYC recently had some talks on search, and the gentleman who presented on David Cramer's django-sphinx module had run some rough timing tests. On 3/27/09, Antoni Aloy wro

Re: Mysterious "=32" for all strings extracted from list showing up via send_mail

2009-03-28 Thread Peter Herndon
The answer is here: http://www.faqs.org/rfcs/rfc2045.html Specifically, section 6.7, "Quoted-Printable Content-Transfer-Encoding". If you take a tour through Python's email module in the standard library, you'll find some bits for handling decoding. On Thu, Mar 26, 2009 at 4:11 PM, NoviceSortO

Re: TreePanel in Django

2009-04-14 Thread Peter Herndon
I've done something similar using jquery and the dynatree plugin, though the directory "structure" doesn't actually exist on the file system of the server. I'm building my tree from relationships stored in the db. Works for me so far, though I've yet to test with large quantities of objects. --

Re: Newb with some questions ...

2009-06-16 Thread Peter Herndon
For REST in Django, there are a number of options, but django-piston is a front-runner. ---Peter On 6/14/09, Gunnar wrote: > > Good Day, > > I'm an 'ol VB6/SQL Server client-server programmer who has moved > into .NET, Silverlight and has done some websites with Joomla. I've > also done a LOT o

Re: Beginners question: select box with very much options

2009-06-18 Thread Peter Herndon
Jannis Leidel implemented autocomplete in admin, and I've done it a few times in user forms. Jquery has a nice autocomplete plugin (http://bassistance.de), plus I think there's one in the next Jquery UI beta/trunk. IIRC, there's a current GSoC project to add autocomplete to admin. In short, the

Re: Custom Authentication Backend

2009-12-03 Thread Peter Herndon
On Dec 3, 2009, at 3:29 PM, bfrederi wrote: > I'm not looking to avoid effort. I just don't want a bunch of extra > users cluttering up my system if I don't need to. I have no desire for > them to exist in my system for any reason. I want to keep the number > of django users limited in my system

Re: LDAP-groups problem

2009-12-18 Thread Peter Herndon
s behavior difference is known, and whether the fix is to never use unique=True on a TextField (a bug in my code), or something that needs to be smoothed over in the SQL generation for Oracle specifically (a bug in the underlying Django behavior). Let me know if you have further questions, I&#x

Re: LDAP-groups problem

2009-12-18 Thread Peter Herndon
On Dec 18, 2009, at 10:15 AM, Peter Herndon wrote: > > On Dec 17, 2009, at 7:32 PM, Wayne wrote: > >> Hi, > > This error arises from an inconsistency between the behavior of Oracle and > the behavior of PostgreSQL, as Mike noted. It works under Postgres. I'll

Re: LDAP-groups problem

2009-12-19 Thread Peter Herndon
On Dec 18, 2009, at 10:15 AM, Peter Herndon wrote: >> >> The error message came from command: python manage.py syncdb >> Creating table ldap_groups_ldapgroup >> Traceback (most recent call last): >> > [snip] >> cx_Oracle.DatabaseError: ORA-02329: column o

Re: LDAP-groups problem

2009-12-22 Thread Peter Herndon
On Dec 22, 2009, at 10:40 AM, Wayne wrote: > Thanks for the prompt reply. Yes, unique=True was the problem. Now I > passed the "run syncdb" and new tables were created. However, I still > could not "contact LDAP". Could somebody help me with this? That would be me. > > Thanks! > > My settin

Re: LDAP-groups problem

2009-12-23 Thread Peter Herndon
On Dec 23, 2009, at 3:00 PM, Wayne wrote: > Hi, > > Many thanks for your reply. > > I did the test and it seemed that our network is working fine and I > could telnet to the directory with "Connected" feedback. What other > things we could try next? > Our next step is to work out how to make

Re: Problem with letters like ÄÖÕÜ in dja ngo admin

2010-04-15 Thread Peter Herndon
during installation. ---Peter Herndon On Apr 15, 2010, at 11:54 AM, zayatzz wrote: > Hello > > I recieve this kind of error message when in admin: > > Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k > \xc3\xbcpsetatud stressivaba sea par

Re: usage of TIME_ZONE and zone-to-zone conversion

2010-04-27 Thread Peter Herndon
useful that is, but for what it's worth, *whump*, there it is. :) ---Peter Herndon On Apr 27, 2010, at 3:09 PM, Shawn Milochik wrote: > Given a date/time value and a value that is valid for the TIME_ZONE setting > in settings.py, how do I convert that date/time to the time zone

Re: Noob questions: Syntax, Python listserv, utility/helper methods?

2010-05-04 Thread Peter Herndon
gt; + > > Sorry if silly questions. :( Not silly, just new. You would do well to read some good Python code, to get a feel for how things are done. For instance, take a look through Django's source code, not so much to understand what it does, but just to get a feel for

Re: permissions at per specific object instance

2010-05-05 Thread Peter Herndon
http://packages.python.org/django-authority/ or, an alternative: http://pypi.python.org/pypi/django-objectpermissions/ ---Peter Herndon On May 5, 2010, at 4:09 PM, zweb wrote: > "Permissions are set globally per type of object, not per specific > object instance. For example, it&#x

Re: OneToOneField usage

2010-05-13 Thread Peter Herndon
es not exist. This should be: kitty = Pet.objects.get_or_create(user=joe) > > It's the getter of "joe.pet" which fails. Is it that OneToOneField is > not popular enough to receive such an implementation, or is there a > deeper philosophical reason I don't see? No

Re: Tree view me

2010-05-14 Thread Peter Herndon
omfortable with PHP, then PHP may be the better choice for your needs. On the other hand, if you continue to build web applications, you will need to develop a certain expertise with HTML, CSS and JavaScript, in addition to your server-side framework and its language, so you may want to put t

Re: OneToOneField usage

2010-05-14 Thread Peter Herndon
On May 14, 2010, at 5:43 AM, Tom Evans wrote: > On Thu, May 13, 2010 at 7:31 PM, Daniel Roseman wrote: >> >> >> On May 13, 5:35 pm, Peter Herndon wrote: >>> On May 13, 2010, at 10:29 AM, TallFurryMan wrote: >>> >>>> Hello Django users,

Re: How to do select from table where something in ('What','When','Where')

2010-06-24 Thread Peter Herndon
tableA.objects.filter(columnA__in=['Value1', 'Value2', 'Value3']) http://docs.djangoproject.com/en/1.2/ref/models/querysets/#in On Jun 24, 2010, at 4:18 PM, thusjanthan wrote: > Hi, > > Can someone provide the syntax for doing the following in django > queries: > > Select * from tableA where c

Re: How to do select from table where something in ('What','When','Where')

2010-06-24 Thread Peter Herndon
t; Select * from tableA where columnA not in >> ('Value1','Value2','Value3') >> >> On Jun 24, 1:23 pm, Peter Herndon wrote: >> >> >> >>> tableA.objects.filter(columnA__in=['Value1', 'Value2', 'Val

Re: Django bases blog solutions

2010-07-16 Thread Peter Herndon
—-no-site-packages > > What am I doing wrong... > > thanks for your help > > On 4 Feb, 17:09, Peter Herndon wrote: >> On Feb 4, 2010, at 10:02 AM, Joel Stransky wrote: >> >>> Hi all, >>> I'm brand new to Django/Python but not software developme

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread Peter Herndon
>From the virtualenvwrapper instructions: "First, some initialization steps. Most of this only needs to be done one time. You will want to add the command tosource /usr/local/bin/virtualenvwrapper.sh to your shell startup file, changing the path to virtualenvwrapper.sh depending on where it was

Re: install django-mingus blog / http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ pls help

2010-07-17 Thread Peter Herndon
Try "pip install ElementTree", your version of python does not include e-tree. Sent from my external cortex. On Jul 17, 2010, at 11:45 AM, justin jools wrote: > Trying to install django-mingus (see bottom, not easy at all!) > When installing * 6 pip install -r stable-requirements.txt > > iro

Re: Django persistent database(postgres) connection.

2010-08-27 Thread Peter Herndon
On Aug 27, 2010, at 1:17 PM, jai_python wrote: > Hi friends, >My django application runs in red hat server with apache & > mod_wsgi. We have several request which interacts with > database(postgresql), so database interaction is huge. i found that > every time django application establishing

Re: Deleting a Django project/ app

2010-10-03 Thread Peter Herndon
On Oct 3, 2010, at 4:04 PM, Sithembewena Lloyd Dube wrote: > Howdy, fellow Djangites, > > This is going to sound downright loony - but is there a special method to > delete Django projects and apps, or is it fine to just delete the > directories? I know that most third party Python packages ca

Re: minimum system requirements

2010-10-31 Thread Peter Herndon
on that knowledge. As with many questions regarding deployment, the answer is "It depends". ---Peter Herndon -- 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 uns

Re: minimum system requirements

2010-11-01 Thread Peter Herndon
On Oct 31, 2010, at 9:50 PM, Javier Guerra Giraldez wrote: > On Sun, Oct 31, 2010 at 12:10 PM, Peter Herndon wrote: >> but I would not expect that single VPS to be able to handle more than a very >> small number of visitors at once. > > only if you consider several

Re: Django auth tutorial

2010-11-03 Thread Peter Herndon
ieces as you find you need them (for instance, a logout page, groups and permissions are the common ones). Hope that helps, ---Peter Herndon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: error haven't set the DATABASE_ENGINE setting

2009-12-30 Thread Peter Herndon
On Dec 30, 2009, at 2:22 PM, gintare wrote: > Hello, > > OS Debian Gnu Linux Lenny > Python 2.5 > Installed python-django_1.0.2-1+lenny2_all.deb with K-package instead > of Django-1.1.1.tar.gz, > > it was configured according instalation site: > http://docs.djangoproject.com/en/dev/topics/ins

Re: Announce: django-ldap-groups

2010-01-20 Thread Peter Herndon
On Jan 19, 2010, at 9:11 PM, Mike Dewhirst wrote: > On 6/08/2009 10:15am, Peter Herndon wrote: >> >> I'm pleased to announce the release of django-ldap-groups. Of special >> interest for building intranet sites, django-ldap-groups allows Django >> users to authe

Re: Django bases blog solutions

2010-02-04 Thread Peter Herndon
n near everyone writes their own at some point), but django-mingus is both easy to use and provides an excellent example of both good software engineering and good deployment practices. ---Peter Herndon -- You received this message because you are subscribed to the Google Groups "Djang

Re: django and ldap

2010-02-05 Thread Peter Herndon
On Feb 5, 2010, at 5:45 AM, andreas schmid wrote: > ok django-ldap-groups works perfectly now! > That's great to hear! If you run into any issues, I'll be happy to help troubleshoot. ---Peter -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Sort by attribute not in database

2010-02-05 Thread Peter Herndon
hat's not in the database is that the order_by method is SQL and is executed in the database as part of the query. The reason you can't sort() a queryset is that it's a generator, not a list, so it only lazily instantiates your model objects. ---Peter Herndon -- You received

Re: Flat file application for binary data?

2010-02-05 Thread Peter Herndon
hould give you at least a starting point. With ImageKit, for example, you create a "spec" for your image fields, and part of the spec is a means of determining the filesystem storage location (including a method you can define if you need to). ---Peter Herndon -- You received this m

Re: Slugify() and Clean form data Questions

2010-02-18 Thread Peter Herndon
he prepopulated_fileds[] trick either. I do indeed use the slugify() function for precisely that pattern. I override the model's save method, and populate the slug field prior to allowing the save to proceed. I picked up that trick from some other code somewhere; it isn't uncom

Re: Slugify() and Clean form data Questions

2010-02-18 Thread Peter Herndon
Perfect example! On Feb 18, 2010, at 4:09 PM, Matt McCants wrote: > Here's a stripped down example. I've messed with using signals instead > of overriding the save method for all the models that need a slug. But > this is quick and easy. > > http://gist.github.com/308068 > > Matt > > On Thu, 2

Re: Database relations concepts

2010-02-18 Thread Peter Herndon
tail. Great detail. Ye be warned. ;) I hope this helps, though the Date book probably won't, at least not without long and sustained study. There are likely other books on RDBMSs that folks can recommend. Other than that, my apologies, it's late and I no longer have a functioning

Re: Generate random data for Django models

2010-02-19 Thread Peter Herndon
urai". That command would use the same logic as I outlined for the view, and create Samurai via the ORM and assign them to random Rooms. ---Peter Herndon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: django and ldap

2010-02-22 Thread Peter Herndon
On Mon, Feb 22, 2010 at 9:40 AM, andreas schmid wrote: > im experiencing strange problems now. the user is able to authenticate > against ldap only if in the active directory the displayName == username > why this? i dont get any error or traceback, the user only isnt able to > get logged in > I

Re: Slugify() and Clean form data Questions

2010-02-22 Thread Peter Herndon
On Mon, Feb 22, 2010 at 12:32 PM, Jon Loeliger wrote: > I get is_valid() and the notion of cleaned data.  I *think*, > though, that I am asking for something more robust. > > Will some_form.is_valid() will, say, remove (or identify) > embedded SQL hacking attempts from a plain text field input? >

Re: django and ldap

2010-02-22 Thread Peter Herndon
On Feb 22, 2010, at 3:13 PM, andreas schmid wrote: > Peter Herndon wrote: >> On Mon, Feb 22, 2010 at 9:40 AM, andreas schmid wrote: >> >> >>> im experiencing strange problems now. the user is able to authenticate >>> against ldap only if in the activ

Re: transaction in django app desktop

2010-02-25 Thread Peter Herndon
al to generate an HTTP request, and the view function will run inside its transaction just fine. So yes, it is possible. Does that answer your question? ---Peter Herndon -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread Peter Herndon
On Mar 4, 2010, at 2:56 PM, aditya wrote: > I would like to add a new filter for models to my django build that > can be used as follows: > > tags = ['tag1','tag2','tag3''tagn'] > i = Image.objects.filter(tags__contains_any=tags) > > > Essentially, instead of passing a string, I pass a list

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread Peter Herndon
On Mar 4, 2010, at 6:07 PM, Phlip wrote: > Peter Herndon wrote: > >> Won't the "in" filter do exactly what you need? >> >> http://docs.djangoproject.com/en/1.1/ref/models/querysets/#in > > Why do you need even __in? Given... > > Entry.o

Re: Adding a new convenience filter 'contains_any'

2010-03-05 Thread Peter Herndon
On Mar 4, 2010, at 7:37 PM, Phlip wrote: > > Sorry, I didn't say "operator overload" (which are either spot-on or > sophomoric, when they work). I'm using "operator overloading" in this case because "id=" already has a specific function, and you would have it do something in addition to that f

Re: Adding a new convenience filter 'contains_any'

2010-03-05 Thread Peter Herndon
On Mar 5, 2010, at 1:03 PM, Phlip wrote: > On Mar 5, 8:41 am, Peter Herndon wrote: > >> On Mar 4, 2010, at 7:37 PM, Phlip wrote: > >>> (I also disagree with leaving out the spaces around =, but obviously >>> obeying a team style guide supersedes improving it..

Re: Multi-cores & Django

2010-04-01 Thread Peter Herndon
t gunicorn is a very speedy moving target. But if you use pip to install it, and pip -U to keep on top of new releases, you'll be fine. The above server runs us about $5k, your mileage will inevitably vary. If you don't require SAN, you can chop ~$1500 off by dropping the HBAs. Hop

Re: PK and FK questions

2010-04-07 Thread Peter Herndon
needing to modify the database table structures -- assuming you allow Django's ORM to manage your tables, which is a common case. In that situation, the changes to the underlying DDL can be automated using a Django-aware schema migration tool. South (http://south.aeracode.org/) is one s

Re: how to use IPC in Django??

2010-04-11 Thread Peter Herndon
On Apr 11, 2010, at 5:52 AM, vishwanath b wrote: > I have developed an application in django which has to send or receive > requests from/to a server.These requests have to be sent or received > through sockets.how do i achieve this? Python socket programming: http://docs.python.org/library/sock

Re: how to use IPC in Django??

2010-04-11 Thread Peter Herndon
On Apr 11, 2010, at 10:20 AM, vishwanath b wrote: > thanx for the reply...peter i am new to django so i am a bit confused > regarding implementing this...will i have to write python socket > client code in views which would interact with server c code rite? > > On Apr 11, 7:11 pm

Re: Django... False promises?

2008-01-04 Thread Peter Herndon
On Jan 4, 2008 2:26 AM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > forget running the debian version - it will always be way out of > date. Use the latest svn trunk as described in the tutorial. Also > forget about using the django book - use the latest docs on the web > site. The latest svn h

Re: IDE

2008-03-06 Thread Peter Herndon
I use vim a lot for, as Michael says, quick editing tasks. For longer coding sessions, I use Coda (http://www.panic.com/coda/). It's payware, and it's OS X only, but it is so easy and amazingly productive. You have a terminal session, WebKit-based browser, (S)FTP client, and a really decent tex

Re: Access control

2008-03-29 Thread Peter Herndon
http://www.djangoproject.com/documentation/authentication/ On Sat, Mar 29, 2008 at 1:04 PM, Wilson Acha <[EMAIL PROTECTED]> wrote: > > Hello, django have any library that allows include a login and enable > restrict access to different parts of the application according to > roles and / or p

Re: Fedora Core 4 - Django-dev & Mysql

2008-04-14 Thread Peter Herndon
The immediate solution is to download the source and compile. A better solution, i.e. a prebuilt RPM, might be available from somewhere, I haven't searched. ---Peter On 4/14/08, martyn <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using Fedora Core 4 and MySQL as my database for Django. > I inst

Re: getting a problem while using templates

2008-06-04 Thread Peter Herndon
You need to set an environment variable DJANGO_SETTINGS_MODULE that points to your settings.py. Look up the documentation on settings for more detail. This isn't necessary when running the development server, IIRC, but becomes necessary when running under Apache/mod_python. On 6/4/08, Sandy <

Re: Importing data from 'MS Access' .mdb files

2008-06-10 Thread Peter Herndon
Two possibilities come to mind. First, is the Python ADODBAPI module: http://sourceforge.net/projects/adodbapi Second, as an *extremely* useful tool for this sort of thing, may I suggest Navicat for MySQL on Windows? The Windows version allows you to import .mdb files and do data transfers dire

Re: Django and Fliqz

2008-06-11 Thread Peter Herndon
Hi Julie, Django doesn't speak SOAP out of the box. You could use one of the Python SOAP libraries that are out there (ZSI comes to mind) to build your own, though. And perhaps someone has already built such an interface to Fliqz, but if so, you'd perhaps be better off asking on the mailing lis

Re: Django and Fliqz

2008-06-11 Thread Peter Herndon
for the various SOAP > libraries > also in googlegroups? > > Best, > Julie > > On Jun 11, 7:56 am, "Peter Herndon" <[EMAIL PROTECTED]> wrote: >> Hi Julie, >> >> Django doesn't speak SOAP out of the box. You could use one of the >> Python SOAP

Re: Handling unknown data

2008-06-12 Thread Peter Herndon
Or better yet, normalize first. A given Winner can have one or more Fields, so build a Field model with a ManyToMany relationship to the Winner model, and make it unique=True and asymmetric. Work backwards in a similar chain all the way to Event. On the other hand, that this set of models will

Re: pluggable django ticketing app?

2008-07-07 Thread Peter Herndon
on the app. It was started both to scratch an itch, and as a training exercise for our new-to-Django members. Thanks, ---Peter Herndon http://spookypony.com On 7/6/08, Milan Andric <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 6, 2008 at 12:05 AM, chefsmart <[EMAIL PROTECTED]> w

Re: looking to override some admin save features

2008-07-07 Thread Peter Herndon
Bumping doesn't help, and just makes you look impatient. If you want a more immediate answer, log in to the #django IRC channel on freenode. Aside from that, it sounds like you want the newforms-admin branch. Search for that on the wiki. ---Peter Herndon On 7/7/08, [EMAIL PROTECTED] &l

Re: Inserting html into a page dynamically

2008-07-07 Thread Peter Herndon
a database, or something like that, you can write your AJAX to call a Django view. You would write that view to do the calculations required, and return the data as XML or JSON. ---Peter Herndon On Mon, Jul 7, 2008 at 4:48 PM, Bear <[EMAIL PROTECTED]> wrote: > > Hi > > I

Re: "ColorField"?

2008-07-08 Thread Peter Herndon
You'll want to check out django.db.models.fields, django.db.models.fields.subclassing, and django.core.validators as starting points for creating a new Field type with a custom validator. In addition, there's a js attribute for class Admin you can use to bring in the necessary JavaScript into adm

Re: Issue with django-tagging 0.3 (svn) with models definition

2008-07-08 Thread Peter Herndon
For a more immediate answer, ask on #django on IRC. Mailing list may not answer as quickly as you'd prefer. Or at all, if nobody has the time to answer. You should look at the model documentation for specifics, but you likely need null=True as a param in your tags=Tagfield() declaration. ---Pet

Re: "ImportError No module named django"

2008-07-09 Thread Peter Herndon
Yes, the install worked. If you can import a module without error, it's installed successfully. Mostly. ;) You can also successfully import a module even if it is not on PYTHON_PATH, if you are in the same directory as the module. ---Peter Herndon On 7/9/08, MadMax007 <[EMAIL P

Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread Peter Herndon
Hi Michael, > I've been wanting to get into Python, thinking it could be good for > certain interactivity which I haven't implemented really in my sites, > DB access, forms. Indeed, Python in general and Django in particular are quite good for these sorts of features. > But I have a site design

Re: Form result notices

2007-12-20 Thread Peter Herndon
Hi Julien, > I'd like to hear your advice on the best way to go with displaying > form result notices. > > For example, after editing an object via a newform, the following page > displays a notice that says "Object successfully updated". There is no canonical "best way". There are, instead, a

Re: Beginner a bit lost - need some pointers please

2011-10-05 Thread Peter Herndon
e short version is that the built-in server was built as a just-good-enough-to-use-while-developing solution, and is not sufficient to handle more than a minimal load. The trade-off is that configuring apache2 + mod_wsgi, or nginx + gunicorn, is more complex than just running the devserver. Hope this

Re: FAQ app 2011

2011-11-07 Thread Peter Herndon
ic requirements that could be addressed. Were I to need an app for FAQs in a new project, I'd probably use django-fack at this point, as the code base is a little cleaner. Hope that helps, ---Peter Herndon On Nov 5, 2011, at 12:37 PM, Mike wrote: > I've been searching for a

Re: List of Django release dates?

2011-12-10 Thread Peter Herndon
The info is available in the Django project blog (https://www.djangoproject.com/weblog/), though you will need to do some spelunking to find the release dates. You can also find the release dates in the mailing list archives, for example, search for "released" in the Django-developers Google group.

Re: Multiple versions of Django

2013-09-30 Thread Peter Herndon
I would suggest using separate virtual environments, each with gunicorn (http://gunicorn.org/) installed into the venv. Run gunicorn listening on a different port per venv, start all your venvs under supervisord (http://supervisor.org/), and proxy them behind nginx (http://wiki.nginx.org/). On

  1   2   >