Re: Geodjango GPolygon

2009-02-16 Thread Adam Fast
GPolygon is "designed" to take the geometry natively - no fromstr() or .wkt necessary. Try GPolygon(polycoords_from_database.geometry) Adam 2009/2/16 Adonis : > > Hello, > > -being facing a non-givin-back-errors problem... > > view.py > > poly = GPolygon(fromstr >

Re: Combining multiple Django applications.

2008-12-13 Thread Adam Fast
That type of system is usually called a "Tumblelog" - and you can find a lot of info in these two articles below. Ryan's uses generic foreign keys and an "intermediary" object, so to speak, so that you just query that one object and it knows about all instances of your app1/app2/app3 models. This

Re: automatically save latitude and longitude of the address.

2008-11-17 Thread Adam Fast
I can see several causes here why you're not getting the desired result. The biggest one is you declare fnclatitude as taking a single argument, called location - but when you call the function from your save() method you're passing no arguments to it. Second, you're returning element 3 (which

Re: why not django's default server?

2008-10-25 Thread Adam Fast
It's worth mentioning as well that the Django "built-in" dev server is single-threaded the last time I heard, and with transferring large files / the application itself, I see a lot of your users getting "busy signals" so to speak from the server when they request pages. A few thousand pageviews

Re: django google-app-engine appengine backend

2008-09-18 Thread Adam Fast
While I'm not particularly skilled with AppEngine, it's not finding your backend. I don't know what your INSTALLED_APPS are in settings.py but you'll want to make sure 'appengine_django' is in it. Also, I'm seeing a dot in front of your google_appengine directory below. If that was a typo

django-locationtracking Reusable App

2008-09-18 Thread Adam Fast
Hi all, My django-locationtracking app is now up and available. Code is available from http://code.google.com/p/django-locationtracking/ and a screencast is available at my website, http://www.adamfast.com/programming/locationtracking/ It was introduced during one of the lightning talks at

Re: Creating a Scheduled Task

2008-07-13 Thread Adam Fast
I'm not sure about admin integration but there are two apps out there that handle task scheduling. http://code.google.com/p/django-cron/ http://code.google.com/p/django-jits/ On Sat, Jul 12, 2008 at 9:53 AM, Chris <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm a newbie to Django, and I'm trying to

Re: Autoupdate field?

2008-07-13 Thread Adam Fast
The proper design decision there (if Mary's phone number and her family (the Smith's) phone number will /always/ be the same) is to store the data only once - avoiding duplication. This is what Juanjo is saying. Since mary.family = Smith, mary.family.telephone_home = Mary's phone number. If

Re: Dev server won't run. (Complete Newbie)

2008-05-27 Thread Adam Fast
Ok, the problem is 127.0.0.1 is localhost - just to your linux machine. Do this instead: Replace the word LINUX_IP with the actual IP address of your linux machine (ifconfig is the command to get it) python manage.py runserver LINUX_IP:8000 (or 80) Then type the same IP/port you used

Re: downloadable django site example anywhere?

2008-05-20 Thread Adam Fast
Kenneth, http://code.djangoproject.com/svn/djangoproject.com/ Is the URL you want for subversion. The "browser" url uses the web-based browser to look at it file by file. Unfortunately though you won't find a lot of newforms / modelforms stuff there I'm afraid (or lost-theories unless it's

Re: Django email and BCC recipients

2008-05-13 Thread Adam Fast
Julien, Looking at the code you linked confirmed my suspicions - just like an email in your favorite email client, you must include a 'to' field when using BCCs. The example linked is sending their message /to/ somewhere...and my suspicion is that is what is causing your messages not to send.

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Adam Fast
nd <[EMAIL PROTECTED]> wrote: > > This is the correct link: > > http://blog.webfaction.com/django-setup-improvements > > This feature is still available in the control panel :-) > > > > > On Tue, 2008-05-06 at 16:18 -0500, Adam Fast wrote: > > Strangely

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Adam Fast
Strangely enough, this link is now dead...and it's not mentioned at the top of their blog either. Maybe they pulled the plug? On Tue, May 6, 2008 at 2:45 PM, Brot <[EMAIL PROTECTED]> wrote: > > Hello, > > today webfaction announced (http://blog.webfaction.com/django-setup- > improvements)

Re: IIS 6 PyISAPIe problems

2008-05-05 Thread Adam Fast
Ben, Where is django? Make sure it's on your pythonpath (or "module search path" as they appear to be calling it below) Adam On Mon, May 5, 2008 at 1:11 PM, shocks <[EMAIL PROTECTED]> wrote: > > Hi > > I have followed the Django IIS installation guide on the Django > website but I'm

Re: django and s3

2007-11-11 Thread Adam Fast
ECTED]> wrote: > > ok so I will have a look at EC2 thanks very much for that anything > else I may encounter useing amazon elastic computing service > > On Nov 11, 1:01 am, "Adam Fast" <[EMAIL PROTECTED]> wrote: > > Sebastian, > > > > S3 is simply a sto

Re: django and s3

2007-11-10 Thread Adam Fast
Sebastian, S3 is simply a storage service. There is no way to run scripts (such as django) against it. If you just want to host the static content of your site (such as images and CSS) you'll find info on that all throughout the list's history. But from how I read your question, you want to

Re: Need help selecting a Django hosting provider

2007-10-17 Thread Adam Fast
I would also recommend WebFaction. If you really want to be your own admin, SliceHost is good too -but you have to know how to run your own server. >From the managed perspective, WebFaction is the best. --~--~-~--~~~---~--~~ You received this message because you

Re: Any way to re-synch database when I change models.py without deleting the DB?

2007-08-24 Thread Adam Fast
You can either manually make the change with your 4# admin utility, or look at the schema-evolution branch. Just searching this group for that term will provide a world of information. I've not kept up on it's status, but you can find it easily. On 8/24/07, Stodge <[EMAIL PROTECTED]> wrote: > >

Re: tutorial

2007-08-21 Thread Adam Fast
Check to make sure you're defining the __str__(self) on your poll object. That indicates that the object does not know how to turn itself into a string. (note that with trunk the best practice way to do this will be __unicode__ but with any of the static releases the new unicode method will not

Re: Bulk data upload

2007-07-18 Thread Adam Fast
I won't attempt to tackle the image conundrum (because our old ecommerce site is of the single-image variety, which makes it easy). The other, though I can help you with. My models yield four tables (products, product_categories, product_site to tie it to a site, and product_attributes). I

Re: Could you please share your django-based website source code with me?

2007-07-02 Thread Adam Fast
Jeff Croft's lost-theories.com site is also a good learning tool. http://www2.jeffcroft.com/blog/2007/may/28/lost-theoriescom-source-code-update/ On 7/2/07, nick feng <[EMAIL PROTECTED]> wrote: > > Hi All, > > I plan to build a django-based website for open-sourcing these days, I > have read

Re: "Powered by Django" directory - Designer Wanted!

2007-06-14 Thread Adam Fast
I'm getting a list index out of range error here: http://www.djangosites.org/most-comments/ I'm looking forward to keeping an eye on this, and as I deploy more django sites, putting them up myself. Adam On 6/14/07, Kelvin Nicholson <[EMAIL PROTECTED]> wrote: > > > > > > > There are now 6 sites

Re: Web Docs as a Single PDF Available

2007-05-24 Thread Adam Fast
Thanks, that's awesome. HOWEVER, I'm sorry to hear you did it the save as PDF many times way...I'd like to show you a better way though. In Acrobat Pro, do File->Create PDF->From Web Page. Give it http://www.djangoproject.com/documentation and however many link levels you'd like deep, step away

Re: django vps hosting

2007-05-15 Thread Adam Fast
I've been pleased with SliceHost. On 5/15/07, urielka <[EMAIL PROTECTED]> wrote: > > > I am running two django sites with vpsland(good support) for the last > 7 days, but since i having problems with their ssh(running really > slow) i thinking about switching to other host. > > Is there any good

Re: Retrieving 'attributes' of a product for generic views

2007-05-09 Thread Adam Fast
Thank you James, that's perfect. However I did run into a snag - I was going to use the slug field of my attribute to be the "defined term" so in this case brightness-ansi-lumens, but I'm getting another "Cannot parse remainder" on the hyphens. It's a perfectly acceptable limitation to just

Re: Need dedicated hosting for Django

2007-04-17 Thread Adam Fast
I'll second SliceHost if 100% dedicated isn't a requirement for you. On 4/17/07, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > > Nik Kantar wrote: > > My company might be in need of a dedicated server, preferably managed, > > to use as a production server for Django (and non-Django) websites. > >

Re: Another Django CMS customization question

2007-04-04 Thread Adam Fast
Josh, My first question would be if you've checked into flatpages yet. If I'm reading what you're asking, it solves the problem almost entirely. And, it's quite simple and you can use it to build more structure on if you need more features than it offers.

Re: Sites crashing after moving to 4431

2007-01-26 Thread Adam Fast
I was having the same problem, rolling back to 4429 fixed it for me. svn update -r 4429 (IIRC, that was last night) Adam On 1/26/07, Ramdas S <[EMAIL PROTECTED]> wrote: > > I moved my Django SVN version on my PC to 4431 about 20 minutes back. > Following this all my Django web apps are crashing

Re: Cookies on mobile phones NOT to expire at browser close

2007-01-24 Thread Adam Fast
I'm not using cookies for mobiles in any of my apps yet, but I have a Cingular 8125 and would be willing to help test it out. Adam On 1/24/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > > > Hi, > > for evaluating this ticket, it would be important to get into > contact with anybody using

Re: django setting's problem

2007-01-14 Thread Adam Fast
By default django does not serve those files for you. MEDIA_ROOT is a value for where uploaded media is stored (and other media too) and MEDIA_URL is its peer, telling it where to link (over HTTP) for the files in MEDIA_ROOT. If you want the internal development server to serve the media files

Re: manipulating the value before save()

2007-01-14 Thread Adam Fast
I think you're looking for the save-and-delete hooks: http://www.djangoproject.com/documentation/models/save_delete_hooks/ They will allow you to make the changes before the object is saved without overriding django's own internal save functionality.

Re: how to make more rows appear in inline-tabular admin interface?

2006-12-27 Thread Adam Fast
change it to this: recipe = models.ForeignKey(Recipe,edit_inline=models.TABULAR ,num_in_admin=x,num_extra_on_change=y) Replace X with how many you want to appear on object creation (when you click add) and Y with how many you want to appear on edit. You'll probably want significantly more on

Re: send_mass_mail() on save

2006-12-13 Thread Adam Fast
You'll want to look into the save and delete hooks functionality here: http://www.djangoproject.com/documentation/models/save_delete_hooks/ What it would look like is add to Publications: def save(self): super(Publications, self).save() # Call the "real" save() method

Re: Odd behavior using __range lookup

2006-12-08 Thread Adam Fast
Thanks Chris, I've looked at it a little, but we're wanting something with more capabilities than I've seen in satchmo. I'm still trying to figure this thing out. I changed my urls entry to (r'^shopbyrange/(?P[-\w]+)/(?P\d+)-(?P\d+)/$', 'djangoecomm.products.views.searchbyattributerange'), to

Odd behavior using __range lookup

2006-12-08 Thread Adam Fast
Hi all, I'm building an e-commerce system and at the moment working on making the products easily searchable. But when I use a __range lookup, in some cases it returns a 404 as if there is no data that matches that criteria, and there is data that matches that criteria. Using the "Logging"