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
>
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
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
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
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
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
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
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
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
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
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.
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
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)
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
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
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
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
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:
>
>
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
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
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
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
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
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
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
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.
> >
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.
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
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
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
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.
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
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
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
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"
35 matches
Mail list logo