Re: why not django's default server?

2008-10-25 Thread Alex Ezell
On Sat, Oct 25, 2008 at 12:27 AM, gniquil <[EMAIL PROTECTED]> wrote: > The reason I don't want to use apache is primarily due to 1. restarts Why not use Apache with mod_wsgi? Then, you just touch a file to reload your new code. No restart needed. /alex --~--~-~--~~~

Re: Can this be solved without hardcoded SQL?

2008-10-06 Thread Alex Ezell
On Mon, Oct 6, 2008 at 6:36 PM, Kasper Grubbe <[EMAIL PROTECTED]> wrote: > I have a date in my database. And i want to list all years and months > in that, without duplicates. > I can get the data out without duplicates with this SQL query: > SELECT DATE_FORMAT(my_date_field, '%Y %m') AS year_mo

Re: Automatic Image Resizing upon Upload

2008-07-13 Thread Alex Ezell
On Sat, Jul 12, 2008 at 6:37 AM, TheBoff <[EMAIL PROTECTED]> wrote: > > Photologue is perhaps a bit heavyweight for my current purposes, > although it looks like an extremely impressive bit of kit, and were I > to make a dedicated photo gallery etc app with django, I would > certainly use it. Th

Re: Django as front-end for php- and zope2-based apps?

2008-06-29 Thread Alex Ezell
On Sun, Jun 29, 2008 at 12:41 PM, spacetaxi <[EMAIL PROTECTED]> wrote: > > On 29 Jun., 18:44, "Alex Ezell" <[EMAIL PROTECTED]> wrote: >> It's pretty simple to get Django and PHP to share the same >> session information once a user has been logged in

Re: Django as front-end for php- and zope2-based apps?

2008-06-29 Thread Alex Ezell
On Sun, Jun 29, 2008 at 11:31 AM, spacetaxi <[EMAIL PROTECTED]> wrote: > Additionally I'd implement a "authentication bridge" between the > different apps to share the login information with django. This is the only part I've had any experience with. We have a legacy PHP app that we are rewritin

Re: Django custom middleware question

2008-06-25 Thread Alex Ezell
On Tue, Jun 24, 2008 at 11:14 PM, csmith <[EMAIL PROTECTED]> wrote: > > How can I add an attribute or variable? to the request object in > middleware, where I can use it in other views via the request object. > This is my custom middleware code so far: > > class AliasMiddleware(object): >def p

Re: memchached issue on ubuntu

2008-06-24 Thread Alex Ezell
On Tue, Jun 24, 2008 at 11:01 AM, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > On Tue, Jun 24, 2008 at 9:29 PM, Michael Wieher <[EMAIL PROTECTED]> > wrote: >> >> now I would just run the same test you ran earlier, try to set data in >> the cache, now that the cache itself exists > > The memcached se

Django and Memcache

2008-06-20 Thread Alex Ezell
We recently had an interesting problem. We have an app which shares session with a PHP app. These sessions live in memcache. So, in php.ini, we might have memcache pointed to: php.ini = session.save_path = "tcp://10.0.0.10:11211, tcp://10.0.0.9:11211" And in settings.py for Django, we might hav

Re: Need an example of how to use TagField in a template

2008-05-31 Thread Alex Ezell
On Sat, May 31, 2008 at 12:46 PM, M Godshall <[EMAIL PROTECTED]> wrote: > > I was hoping someone could show me an example of how to use django- > tagging's TagField to submit tags from a template. I have the > TagField setup in my model that I can edit in the admin, but I am > having trouble figu

Re: django-tagging problem

2008-05-27 Thread Alex Ezell
a page to show all models with that tag), the django-tagging app has methods for that as well. /alex > On 28 Mai, 08:05, "Alex Ezell" <[EMAIL PROTECTED]> wrote: >> On Wed, May 28, 2008 at 1:00 AM, mwebs <[EMAIL PROTECTED]> wrote: >> >> > My problem is t

Re: django-tagging problem

2008-05-27 Thread Alex Ezell
On Wed, May 28, 2008 at 1:00 AM, mwebs <[EMAIL PROTECTED]> wrote: > > My problem is that a.tags returns a list with tag objects.But what I > need is a String of concatenated String like > > 'cool, funky, fresh, exiting' > > Has anybody an idea how to do this without iterating over the list of > ta

Re: Does anyone use Eric to edit templates

2008-05-25 Thread Alex Ezell
On Sun, May 25, 2008 at 3:04 PM, Gene Campbell <[EMAIL PROTECTED]> wrote: > > Do either of these work smartly with Django i.e. Offer command > completion for the Django tempalte lang or offer look ups in the bound > dictionaries available in the template - er, eh, at design time, the > dictionari

Re: auto_add or default or save?

2008-05-25 Thread Alex Ezell
On Sun, May 25, 2008 at 3:15 AM, Rob Hudson <[EMAIL PROTECTED]> wrote: > > I don't recall where, but I thought I had heard once that the auto_add > and auto_add_now options to date fields in models was going away. > > I've seen 2 main options in the wild and I'm not sure which is > preferred... I

Re: Avoiding code duplication with many similar models

2008-05-25 Thread Alex Ezell
On Sun, May 25, 2008 at 12:30 AM, Trevor Caira <[EMAIL PROTECTED]> wrote: > How can I model this situation most simply, and with the least code > duplication, in django? Hi Trevor, Have you looked at the Model Inheritance part of the documentation? http://www.djangoproject.com/documentation/mode

Re: GeoDjangoFriendly?

2008-05-09 Thread Alex Ezell
On Thu, May 8, 2008 at 7:38 PM, Tyler Erickson <[EMAIL PROTECTED]> wrote: > I would be interested in hearing if your remaining issues with the > GeoDjango install get resolved. Tyler, I am still working with the folks there and they are working on some rock solid instructions for the whole proces

Re: GeoDjangoFriendly?

2008-05-05 Thread Alex Ezell
On Mon, May 5, 2008 at 4:07 AM, tupixo <[EMAIL PROTECTED]> wrote: > > > You may recognize my name from that forum topic. > > > > I've been working for over a week to get PostGIS installed correctly > > for my hosting at WebFaction. The support team is very responsive and > > helpful and we ha

Re: GeoDjangoFriendly?

2008-05-04 Thread Alex Ezell
You may recognize my name from that forum topic. I've been working for over a week to get PostGIS installed correctly for my hosting at WebFaction. The support team is very responsive and helpful and we have worked through a lot of issues. That said, it still doesn't work correctly. This is defi

Interesting Things About CheckboxSelectMultiple

2008-04-30 Thread Alex Ezell
Hi all, I am using the CheckboxSelectMultiple widget in several of my forms. I've had a little fun trying to figure out how they map to the database. I am using PostgreSQL and have a model field that looks something like this (these values and names I just typed in): DAYS_CHOICES = ( ('AN

Re: Odd Multi Select Behavior

2008-04-27 Thread Alex Ezell
On Sun, Apr 27, 2008 at 1:42 PM, James Bennett <[EMAIL PROTECTED]> wrote: > On Sun, Apr 27, 2008 at 1:39 PM, Alex Ezell <[EMAIL PROTECTED]> wrote: > > but if I log the value of "request.POST['point_list']" I see this: > > > > 37​.​44828

Odd Multi Select Behavior

2008-04-27 Thread Alex Ezell
Hi, I have a select field in my HTML (not a forms widget, but just raw HTML). When the form is submitted to the view, I get some odd results. The select field is changed to a multiple select on submit and all the options are selected automatically via javascript. If I log the value of 'request.POS

Re: accessing dictionary values in a template for loop

2008-04-27 Thread Alex Ezell
On Sun, Apr 27, 2008 at 1:27 PM, RaviKondamuru <[EMAIL PROTECTED]> wrote: > > Hi, > I have the following lines of code to access the key, values in a > template for loop. > > > > {% for key in results %} > > {{ key|escape }} > {{ results.key }} >

Re: GeoDjango: Completely Overwhelmed

2008-04-15 Thread Alex Ezell
in the right direction. > > > On Apr 14, 9:43 pm, Alex Ezell <[EMAIL PROTECTED]> wrote: > > The system would then show them trips which have start, end, or both > > points in common with the locations they have entered in the search. > > "In common"

GeoDjango: Completely Overwhelmed

2008-04-14 Thread Alex Ezell
mplish this? I guess I should mention that I am not new to Django or Python, but GIS stuff is foreign to me for now. Thanks! Alex Ezell --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: files xls

2008-04-09 Thread Alex Ezell
Http://www.developer.com/lang/other/article.php/3727616 > > > > > > > > On Wed, Apr 9, 2008 at 2:05 PM, Alex Ezell <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > On Wed, Apr 9, 2008 at 12:02 PM, Claudio Escudero <[EMAIL PROTECT

Re: files xls

2008-04-09 Thread Alex Ezell
On Wed, Apr 9, 2008 at 12:02 PM, Claudio Escudero <[EMAIL PROTECTED]> wrote: > Anyone knows there is a script to do with manipulation files xls (Excel)? Hi Claudio, This is not Django specific, but there is a python module called pyExcelerator, that while old, seems to work for me. http://sourc

Re: using django models without manage.py

2008-04-08 Thread Alex Ezell
Lee, Take a look at the stuff in django.core.management. You should be able to import the methods or classes just like any python module. /alex On Tue, Apr 8, 2008 at 8:57 PM, Lee Connell <[EMAIL PROTECTED]> wrote: > > I am making an app that sets the django_settings_module manually so > that

Re: City, State, Country Application?

2008-04-08 Thread Alex Ezell
On Tue, Apr 8, 2008 at 6:14 PM, jeffself <[EMAIL PROTECTED]> wrote: > > I'm sure everyone has created models that contain city, state, > country, and other location information. Is there an app already > written for Django that I can import? There may be something out there to do this, but th

Re: Creating a Random Hash for Invitations

2008-04-07 Thread Alex Ezell
sh will be > created again unless you write something for it > > (example: your invite table has name email and hash, you send invite > out and they get the hash, you later edit that person's name and the > hash is re-made making their previous invite invalid) > >

Re: Creating a Random Hash for Invitations

2008-04-06 Thread Alex Ezell
#x27;m always wary of sending emails from the system to addresses which people have not knowingly provided. /alex > > On Apr 6, 1:31 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > > My use case is that I need to send invites via email to people. These > > are not s

Creating a Random Hash for Invitations

2008-04-06 Thread Alex Ezell
My use case is that I need to send invites via email to people. These are not site users, but are people being invited to join the site (and a particular group on this site) by current users. So, I can't ask them to login, because I have no data about them. They would then click the link in the e

Re: Issue With ExecuteMany

2008-03-03 Thread Alex Ezell
On Mon, Mar 3, 2008 at 12:46 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-03-03 at 11:44 -0600, Alex Ezell wrote: > > I am getting a TypeError when using the executemany() method of the db > cursor. > > > > I'm not sure if thi

Issue With ExecuteMany

2008-03-03 Thread Alex Ezell
I am getting a TypeError when using the executemany() method of the db cursor. I'm not sure if this is a problem with psycopg2 or the DB backend in Django. I am using the psycopg2_postgresql backend directly via the django.db.connection. This is the code which I am trying to get working: def sav

Re: Xcode as Django IDE

2008-02-13 Thread Alex Ezell
Textmate works great for me. I use GetBundle (http://projects.validcode.net/getbundle) to get the Django bundle which does syntax completion and highlighting for Django-specific Python files and Django template HTML. More info here: http://code.djangoproject.com/wiki/TextMate /alex On Feb 13, 2

Re: SQL Join

2008-02-12 Thread Alex Ezell
This doesn't answer your question directly, but wouldn't many-to-many fields help a bit here? http://www.djangoproject.com/documentation/model-api/#many-to-many-relationships Sorry if you've already thought about this and dismissed it. /alex On Feb 12, 2008 11:41 PM, Gus <[EMAIL PROTECTED]> wr

Re: Sharing session data between PHP and Django

2008-02-12 Thread Alex Ezell
a session (essentially), it may be that easy. I'll let you know once we have something working. /alex On Feb 12, 2008 5:09 PM, Alex Ezell <[EMAIL PROTECTED]> wrote: > Hi Wes, > It's fortuitous that you ask this question today. I spent last Friday > working all this out for our

Re: Sharing session data between PHP and Django

2008-02-12 Thread Alex Ezell
Hi Wes, It's fortuitous that you ask this question today. I spent last Friday working all this out for our application. The overview is to setup Django to use a file-based session system and point it to the same files that PHP is using. Then override some methods to help Python read and write the

Re: Django cannot be used by large web sites?

2008-02-11 Thread Alex Ezell
Does anyone else think that 255 urls seems a little crazy? There's got to be a way to build some regexs and views to deal with those pages in a little more dynamic way. Then again, without seeing any of it, it could be totally cool. /me shrugs /alex On Feb 11, 2008 11:28 AM, James Bennett <[EM

Re: Error Messages

2008-01-31 Thread Alex Ezell
Would the user messaging system work for you? http://www.djangoproject.com/documentation/authentication/#messages On Jan 31, 2008 12:33 PM, jacoberg2 <[EMAIL PROTECTED]> wrote: > > Hey, > I was wondering if anyone had a neat way to take a list of errors > created in a template view and put it in

Re: Jquery and form plugin

2008-01-22 Thread Alex Ezell
It might help to share the view that this Ajax call hits. If it's long, you can post it at dpaste so it's easier for folks to read: http://www.dpaste.com I suspect the issue lies in the view, not so much in the JS. /alex On Jan 22, 2008 1:49 PM, mike <[EMAIL PROTECTED]> wrote: > > I am trying

Re: Using CheckboxSelectMultiple

2007-12-23 Thread Alex Ezell
OK, I figured out the array type in Postgresql to get this to work. Now, the challenge is to read through the array when I am displaying the values and match them up with the choices in the model. /alex On Dec 23, 2007 12:20 PM, Alex Ezell <[EMAIL PROTECTED]> wrote: > Tim,Sorry for

Re: Using CheckboxSelectMultiple

2007-12-23 Thread Alex Ezell
gt; forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple, > choices=Truckshare.CREDENTIALS_CHOICES) > > On Dec 17, 9:14 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > > I have several fields define in my models like this: > > CREDENTIALS_CHOICES = ( > > ('LM'

Using CheckboxSelectMultiple

2007-12-17 Thread Alex Ezell
I have several fields define in my models like this: CREDENTIALS_CHOICES = ( ('LM', "Commercial Driver's License"), ('IN', 'Insured'), ('DR', 'DOT Registered (Interstate)'), ('FI', 'Fragile Item Qualified'), ) credentials = models.CharField(max_length=2, blank=True,

Re: Country, State and City data

2007-12-11 Thread Alex Ezell
Why not let them freehand it and then geocode it, so you have a standard way to search it? Of course, not knowing how you will use it, I could be making no sense :) /alex On Dec 11, 2007 3:59 PM, <[EMAIL PROTECTED]> wrote: > > I'm building a django site that requires the user to select their > g

Re: DateTime Picker

2007-11-05 Thread Alex Ezell
ime, I found this very cool alternative: > > http://www.dynarch.com/projects/calendar/ > > It worked great! > > > On Nov 5, 3:04 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > > On 11/5/07, rm <[EMAIL PROTECTED]> wrote: > > > > > &

Re: DateTime Picker

2007-11-05 Thread Alex Ezell
On 11/5/07, rm <[EMAIL PROTECTED]> wrote: > > Has anyone gotten this to work with a datetime field and a newform of > the type form_from_model? I will be trying it tonight, so I will let you know. /alex --~--~-~--~~~---~--~~ You received this message because you

Re: DateTime Picker

2007-11-05 Thread Alex Ezell
ngo-users/browse_frm/thread/3328829f1ed7f788/ > > If that doesn't help you, search this group for other posts on the > subject. > > Michael > > > On Nov 3, 2:04 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > > When I use a DateTime field in my mod

DateTime Picker

2007-11-03 Thread Alex Ezell
When I use a DateTime field in my model, the admin automatically creates a little javascript date picker. How do I get the same date picker in my user forms? I am using the form_from_model method with newforms. Thanks! /alex --~--~-~--~~~---~--~~ You received th

Model/Required Fields Questions

2007-10-30 Thread Alex Ezell
Hi, I am, as it will become painfully obvious, a new Django user. I am converting a PHP site to Django. Right now, the main DB table in the PHP site has around 100 columns and depending on the type of post being saved, it may leave around 60 of those empty. That's obviously an issue and I'd like