InterfaceError at /admin/ Error binding parameter 1 - probably unsupported type.

2010-09-23 Thread justin jools
Have searched everywhere for solution to this error (below) when loggin in to admin I also get this error during form post rediect, thinking it it something to do with intalled apps/middleware or post setting maybe but dont know what. Anyone come across this? Many Thanks InterfaceError at /admin

django-registration vs django-account + django-url | opinions?

2010-09-23 Thread justin jools
I have tried out django-registration and liked the simplicity of it, but following the pinax project, (and using their apps to instruct my own build) I see they use: django-account which also requires django-url I have started just started playing with it and was wondering if anyone has any opin

Re: Photo + thumbnail

2010-01-04 Thread Justin Myers
photo) # NOT .path, so this is a relative path, not an absolute one to make this work properly. Hope that helps. -Justin On Jan 4, 5:15 am, nameless wrote: > I have writed this code but it doesn't work. What is the error ? > > from django.db import models > from django.forms import Mod

use of @vary_on_cookie decorator with URLconf based cache_page usage

2010-01-05 Thread Justin L
For several months, we have been caching views using the URLconf method (urls.py). An entry from urls.py is below as an example: url(r'^(?P.*)/content/(?P[-\w]+)/$$', cache_page (hierarchies.views.category_content_detail, CACHE_TIMEOUT), name='category_content_detail'), Recently, we had a need to

Re: use of @vary_on_cookie decorator with URLconf based cache_page usage

2010-01-07 Thread Justin L
lly   > caching views per analytics cookie change... That bugged us for a   > while in our project. > > Att, > Victor Lima > > Em 05/01/2010, às 21:32, Justin L escreveu: > > > For several months, we have been caching views using the URLconf > > method (urls.py).

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2010-01-07 Thread Justin Steward
gt;        unknown command or invalid arguments:  "schema;". Enter ".help" for > help >        sqlite> .schema project.db >        sqlite> .schema project >        sqlite> .schema project; >        sqlite> Try this: $ sqlite3 /path/to/db ~Justin -- Y

Re: why does if statement fail with

2010-01-08 Thread Justin Steward
ject.com/en/dev/releases/1.2-alpha-1/#smart-if-tag ~Justin -- 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+uns

Re: Namespace Security

2010-01-12 Thread Justin Steward
superuser, or if run using python manage.py shell) I'm sure this approach could be expanded to use namespaces/groups instead of user on the model's foreign key. To my mind at least, it's a little easier to follow what's going on than overriding various methods in admin.py ~Justin -

newbie: how do i filter a list in a template?

2010-02-16 Thread justin jools
models.py - for Car Manufacturer and Models class dbModel1(models.Model): dbfield1 = models.CharField("Product Manufacturer", max_length=200, unique=True) class dbModel2(models.Model): dbforeignkey = models.ForeignKey(dbModel1) dbfield1 = models.CharField("Model", max_leng

Re: newbie: how do i filter a list in a template?

2010-02-16 Thread justin jools
I solved it after playing around for 3 hours it came to me: compare the make.id to model.dbforeignkey.id hope this helps someone :) {% for make in make_list %} make {{ make }} {% for model in model_list %} {% ifequal make.id model.dbforeignkey.id %} model {{ m

Re: Hosting for Django sites

2010-04-04 Thread Justin Myers
easy to set up subdomains and media URLs (so much easier to me than mucking around in httpd.conf and the like), and I like the backup features in Rackspace's control panel. Overall, I'd say you can't go wrong with either, honestly. HTH, Justin On Apr 3, 5:35 pm, shofty wrote: > +1

Re: need to know to start learn django

2007-06-04 Thread Justin Lilly
later projects as I can track them. If I don't continue on, it'll still be useful in later projects! Good luck and have fun! -justin On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > On May 23, 1:36 pm, Christian Markwart Hoeppner <[EMAIL PROTECTED]>

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

2007-06-05 Thread Justin Lilly
Sadly also not an offer for help (directly at least), but you might check out http://www.oswd.org Open Source Web Design. Lots of good site templates there that are typically standards based and look quite nice. -justin On 6/5/07, Ross Poulton <[EMAIL PROTECTED]> wrote: > > > H

Re: problems using django on lighttpd with fastcig

2007-06-05 Thread Justin Bronn
(in fact, I think I had problems with it being last -- I'll have to see if I can reproduce this). I think its a recommendation rather than a hard requirement, whereas placing mod_fcgi before mod_auth would cause problems. Regards, -Justin --~--~-~--~~~--

Re: django admin users

2007-06-05 Thread Justin Lilly
27;m thinking > that may have something to do with it, but I don't see why this would > conflict with anything. I login basically the same exact way. If > anyone has any ideas I would much appreciate it, thanks. > > -Tyson > > > > > -- Justin Lilly University o

Re: GenericRelation support in GeoDjango

2007-06-06 Thread Justin Bronn
s.CharField(maxlength=50) points = models.GenericRelation(Point) def __str__(self): return self.name -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

App Migration: ImportError @ isleap

2007-06-11 Thread Justin Lilly
is. Everything seems to be working fine on the other application. (Note: I am aware of a few design bugs in the working calendar. I'm more concerned with the functionality of the 2nd calendar, currently) Thoughts, anyone? -justin --~--~-~--~~~---~--~~

Re: App Migration: ImportError @ isleap

2007-06-11 Thread Justin Lilly
For archival purposes, the reason it wasn't working is I had named one of my apps "calendar". After I renamed it to agenda and remapped it appropriately, everything was in working order. On 6/11/07, Justin Lilly <[EMAIL PROTECTED]> wrote: > > Hi all. >I have a li

Re: image bundle for django

2007-06-12 Thread Justin Lilly
specific to the page being viewed. > > Anyway, it's an interesting idea and nice to see an implementation. > > -Rob > > > > > -- Justin Lilly University of South Carolina --~--~-~--~~~---~--~~ You received this message becau

Re: Development times

2007-06-20 Thread Justin Lilly
Tyson- What are you using to build those pdf's? -justin (I only included this on the mailing list so others would know) On 6/20/07, Tyson Tate <[EMAIL PROTECTED]> wrote: > > > If you make heavy use of Generic Views, you can save a ton of time. > This quick-and-dirty

Re: looking for calender and a message board

2007-06-24 Thread Justin Lilly
site that needs a calender and a message board, > plus some > >> specialized things that will 'integrate' with those two features. So > it would > >> be good if the whole site used the same glue. > >> > >> Anyone have any suggestions? > >&g

Re: looking for calender and a message board

2007-06-24 Thread Justin Lilly
errr.. sorry. misclicked. You can find the source under the "agenda" folder of: http://justinlilly.no-ip.org/svn/trunk/gtd/ If you need anything regarding it, let me know! -justin On 6/24/07, Justin Lilly <[EMAIL PROTECTED]> wrote: > > I implemented a decent calendar th

Django & Amazon (SOAP)

2007-07-11 Thread Justin Lilly
Hey all. I'm trying to play around with API's and I wanted to tap into Amazon's to get book listings. The problem is that when I search for "python" in books, only 2/5ths of the results actually have to do with Python. This isn't the case when I search on Amazon itself. Any thoughts on what might

Re: Django & Amazon (SOAP)

2007-07-12 Thread Justin Lilly
Terribly sorry. This is a part of a larger django project involving book sales. If only for completion and those looking for this later, the fix was adding an item to the request called sort with the argument 'relevancerank' which gave more expected results. -justin On 7/12/07, Je

Re: ip to location

2007-07-18 Thread Justin Bronn
n.point POINT (-122.05740012 37.41919965) >>> cb = CountryBlock.objects.ipquery('66.64.46.23') >>> print unicode(cb.location) United States: 66.60.64.0 to 66.70.70.109 -Justin --~--~-~--~~~---~--~~ You received this message be

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Justin Lilly
cking it and it won't show in the post. > > > > I don't understand the problem, sorry. If the image isn't available, you > > cannot show it. :) > > > > > The way you designed it ensures that the image(s) remain with the > post, > > >

Re: Open Linux Router

2007-07-26 Thread Justin Lilly
Hey. What sort of things will you need to accomplish with OLR's web interface? I'm interested, but not sure I have the necessary skills. -justin On 7/27/07, westymatt <[EMAIL PROTECTED]> wrote: > > > Hi, I am one of the lead developers of Open Linux Router. Current

Re: Open Linux Router

2007-07-26 Thread Justin Lilly
Well I'm currently getting started with django in a professional sense. I've been doing some calendaring and whatnot (seen http://justinlilly.no-ip.org:8001/todo/ ) I have some sysadmin experience and whatnot. Any thoughts on what you guys need the most? -justin On 7/27/07, westyma

Re: Organising django projects

2007-07-28 Thread Justin Lilly
be nice to change this priority listing via settings.py. Has this been discussed before? What are the dev's feelings on this? -justin -- Justin Lilly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Looking for good forum software for integration with Django project ...

2007-08-09 Thread Justin Lilly
> > I've looked at PHPBB and vbulletin which are good, but I can't stand > PHP. > > Any suggestions? > > Anyone interested in making a Django side project for this? > > -Z > > > > > -- Justin Lilly University of South Carolina --~--~-

Re: django built-in web server

2007-08-10 Thread Justin Johnson
Apache is the easiest and most documented route. It is pretty easy to set-up and config so don't let that put you off. However, I had a situation where I needed a single self-contained install for deployment. On that occasion I used CherryPy3 + WSGI and ran the whole thing as a windows serv

Re: django built-in web server

2007-08-10 Thread Justin Johnson
like python setuptools to install django and the > project. The http server must be run in python. Have to install > sqlite manually? > > It seems 2) is better but it might still be too complex to install. > Still evaluating my options now... > > On Aug 10, 5:36 pm, Justin John

Django, CherryPy and threading

2007-08-28 Thread Justin Johnson
he following concern: is it safe to serve Django with CherryPy? Cheers, Justin --~--~-~--~~~---~--~~ 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@g

Re: Django, CherryPy and threading

2007-08-29 Thread Justin Johnson
odel? The only way to ensure session integrity in these corner cases would be to lock on the session id during a request (somehow - probably not trivial). That would mean that requests from the same source would be processed sequentially and not in parallel. It's probably easier just to be v

Re: gis: MySql Persistence Problem

2008-01-08 Thread Justin Bronn
delAPI#GeoManager Regards, -Justin --~--~-~--~~~---~--~~ 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 from this group, send

Re: GeoDjango: distance calculation

2008-01-18 Thread Justin Bronn
truction object in django/contrib/gis/db/backends/postgis/query.py Best Regards, -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: how to speed up objects saving

2008-02-04 Thread Justin Bronn
If you're running MySQL w/InnoDB (instead of MyISAM), then deferring transaction COMMITs until after your data has loaded (instead of after each INSERT, as what happens by default with `save`) should yield significant time savings. This may be accomplished by simply using the `commit_on_success`

Re: Form as table

2008-02-20 Thread Justin Lilly
You're looking for newforms. Here are some links to check out. http://www.b-list.org/weblog/2007/nov/22/newforms/ http://www.b-list.org/weblog/2007/nov/23/newforms/ http://www.djangoproject.com/documentation/newforms/ -justin On Wed, Feb 20, 2008 at 6:44 PM, Django-fan <[EMAIL PROTECTED

Re: Informix

2008-02-21 Thread Justin Bronn
he complex installation process and write/ maintain all database backend code for this platform. Unless I'm provided with an economic incentive (e.g., someone hires me to write this), I'm going to leave it for another day, or to the community to provide a patch for support. B

Re: MEDIA_URL doesnt work

2008-02-22 Thread Justin Lilly
', {'document_root': '/path/to/my/media/folder'}), ) which would allow you to go to http://localhost:8000/my_sites_media_folder/ and serve static files out of /path/to/my/media/folder. again.. you should still read the articles to figure out WHY this works. -justin

Generic Calendar Application

2008-02-24 Thread Justin Lilly
http://justinlilly.com/articles/2008/02/24/generic-calendar-app and if you have feature suggestions or do something neat with it, please let me know. -justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Justin Lilly
returned > > > contains a DateField (the date it was created). I'm able to show the > > > date in the template...however I want to change the format it's being > > > displayed as. In this case it's 2008-03-01. I want the date to show > > > Mar. 1

Re: GeoDjango: distance calculation

2008-03-04 Thread Justin Bronn
enables spheroid calculations. -Justin --~--~-~--~~~---~--~~ 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 from this group, send emai

Re: Generic Views: Variable Table Columns

2008-03-07 Thread Justin Fagnani
want to display fields form a related object. I coded this into my generic templates at first, with various custom filters like lookup, isin, stringsub, etc., but I now think that's template abuse :) I do wonder what newforms generic views and templates will bring, but I haven't stayed up on t

Re: Context problem - From list to details and back

2008-03-07 Thread Justin Fagnani
do is give nice URLs to pre-canned searches, like /search-name/page2/ Hope that helps, Justin On Fri, Mar 7, 2008 at 6:42 PM, efege <[EMAIL PROTECTED]> wrote: > > Hi, I'm new to Django and Python too, and just started planning the > migration of an existing app to Django

Re: Resolving dynamic dictionary parameters in templates

2008-03-07 Thread Justin Fagnani
This is the third time this issue has come up in the last day :) Try this, since it'll work for dictionaries, lists, and objects: from django.template import resolve_variable @register.filter def lookup(value, key): return resolve_variable(key,value) -Justin On Fri, Mar 7, 2008 at 6:20 PM,

Re: Django hosting website

2008-03-24 Thread Justin Lilly
I do use them and I'm a fan. If you're looking for something more full featured, I also use slicehost for client work. Lots more flexibility, but when things break its your fault. -justin On Mon, Mar 24, 2008 at 1:13 PM, Julian DeFronzo <[EMAIL PROTECTED]> wrote: > webfac

Re: Will there be a 0.98 release?

2008-03-24 Thread Justin Lilly
>From PyCon, They said the reason they aren't releasing .97+ is because of all the backwards incompatible changes. It would make sense that such large changesets as there are between .96 and trunk would denote a major version change. -justin On Mon, Mar 24, 2008 at 7:37 PM, Michael

Re: How often do you update your django?

2008-03-25 Thread Justin Lilly
I update it every time I'm reminded of it (I just updated), at the end of a sprint or when I get errors (in hopes it was a bug that was fixed). -justin On Tue, Mar 25, 2008 at 12:50 PM, jmDesktop <[EMAIL PROTECTED]> wrote: > > How often do you use svn to get the latest djang

Re: How often do you update your django?

2008-03-25 Thread Justin Lilly
tory and running git-svn fetch (or most probably in your case: svn up ). -justin On Tue, Mar 25, 2008 at 1:26 PM, Joseph Heck <[EMAIL PROTECTED]> wrote: > > It's more than a file - it's more like a directory :-) > > If you're new to django, you might find it

Re: Django-UML Generator

2008-03-25 Thread Justin Lilly
You expect to hand a non-technical client something that looks like: http://blog.riff.org/files/Project8.png ?? I thing that would go poorly. Besides, pencil + paper goes a long way in client discussions like that. -justin On Tue, Mar 25, 2008 at 1:22 PM, Chris <[EMAIL PROTECTED]>

Re: OT: Django logo

2008-03-25 Thread Justin Lilly
The font is called Prokyon. http://www.dutchtypelibrary.nl/Prokyon_rdrct.html -justin On Tue, Mar 25, 2008 at 8:25 PM, Alvaro Mouriño <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 28, 2007 at 9:35 PM, Jacob Kaplan-Moss > <[EMAIL PROTECTED]> wrote: > > On 2/28/07, cj

Re: OT: Django logo

2008-03-25 Thread Justin Lilly
Whoops. Just realized you wanted to know the other font. For those fontographers looking for an example, http://media.djangoproject.com/img/desktops/djangodesktop-1680x1050.jpg but whatthefont.com couldn't find a good match. -justin On Tue, Mar 25, 2008 at 8:51 PM, Justin Lilly &l

Re: Reports

2008-03-27 Thread Justin Lilly
-graphs: http://code.google.com/p/django-graphs/ -justin On Thu, Mar 27, 2008 at 4:03 PM, Percy Gonzales <[EMAIL PROTECTED]> wrote: > > Hello, as Django's handling of the issue: > * Generate reports PDF > * Graphics statistics (bars, cakes ,...) > > > Thanks > >

Re: blog displays raw html

2008-03-27 Thread Justin Lilly
You're being affected by a relatively new feature: Autoescaping HTML. You can find more information at this link: http://www.djangoproject.com/documentation/templates/#automatic-html-escaping -justin On Thu, Mar 27, 2008 at 7:32 PM, Floyd Arguello <[EMAIL PROTECTED]> wrote: >

Re: blog displays raw html

2008-03-27 Thread Justin Lilly
I also feel obligated to mention that you don't have to use HTML. If you prefer some sort of markup, look here: http://code.djangoproject.com/wiki/UsingMarkup -justin On Thu, Mar 27, 2008 at 7:55 PM, Justin Lilly <[EMAIL PROTECTED]> wrote: > You're being affected by a rel

Re: geo django and mysql

2008-03-31 Thread Justin Bronn
e using PostGIS or MySQL. A caveat is that MySQL has only a subset of features available in other spatial databases, such as PostGIS. -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Django font

2008-04-01 Thread Justin Lilly
It's a "homemade" logo, but the font is called DLT Prokyon which can be purchased from http://www.dutchtypelibrary.nl/Prokyon_rdrct.html -justin On Tue, Apr 1, 2008 at 9:42 AM, Mat <[EMAIL PROTECTED]> wrote: > > Slightly off topic here, but I'm putting a websi

Re: django roadmap

2008-04-03 Thread Justin Lilly
to so many backwards incompatible changes in Trunk and we'll be heading directly for the 1.0 release. If I've misspoken or gotten something blatantly wrong, someone feel free to let me know.. but I think I've covered most of it. -justin On Thu, Apr 3, 2008 at 9:56 AM, bcurtu

Re: Cleaning up Word's mess in text areas using tiny_mce

2008-04-09 Thread Justin Bronn
\'[^']+\'", r'<(meta|link|/?o:|/?style|/?div|/?st\d|/?head|/?html| body|/?body|/?span|!\[)[^>]*?>', r'(<[^>]+>)+ ()+', r'\s+v:\w+=""[^"

Re: OS X install help --I think I broke something...

2008-04-09 Thread Justin Fagnani
Sounds like you just need to set the TEMPLATE_DIRS setting http://www.djangoproject.com/documentation/templates_python/#the-template-dirs-setting -Justin On Wed, Apr 9, 2008 at 3:01 PM, mw <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm having problems with my install

Re: OS X install help --I think I broke something...

2008-04-09 Thread Justin Fagnani
Oops... it's the admin site... sorry 'bout that :/ Check to see if you have: 'django.template.loaders.app_directories.load_template_source', in your TEMPLATE_LOADERS setting. -Justin On Wed, Apr 9, 2008 at 4:05 PM, Justin Fagnani <[EMAIL PROTECTED]> wrote: > Sou

Re: Images and Stylesheets

2008-04-11 Thread Justin Lilly
ally means "Tell runserver it can find my images _HERE_" where _HERE_ is defined in the code snippet above. Hop on by #django on irc.freenode.net if you have any more problems (or just reply here). -justin On Fri, Apr 11, 2008 at 10:19 PM, Greg Lindstrom <[EMAIL PROTECTED]> wrote

Re: Security concerns about publically exposing admin tool

2008-04-13 Thread Justin Lilly
It isn't out of date per se. It is, however, going to be revamped when we have a stable replacement. You can find more information on the wiki at http://code.djangoproject.com/wiki/NewformsAdminBranch -justin On Mon, Apr 14, 2008 at 12:32 AM, meppum <[EMAIL PROTECTED]> wrote: > &g

Re: What happened to django-updates?

2008-04-14 Thread Justin Lilly
I think this has largely been supplanted by empty & brosner's TWiD (This Week in Django) podcast. They go over all of that stuff along with spiffy interviews and whatnot. Its very neat stuff. -justin On Mon, Apr 14, 2008 at 11:43 AM, John-Scott <[EMAIL PROTECTED]> wrote: > &

Re: problem installing GeoDjango (ERROR: Testing closing Polygon objects)

2008-04-15 Thread Justin Bronn
the `close_rings()` function of Polygon OGR geometries. Thus, you should be able to use the rest of GeoDjango without any problems -- or you may upgrade your version of GDAL if you want to see all tests pass. Best Regards, -Justin --~--~-~--~~~---~--~~ You received this mess

Re: GeoDjango: Completely Overwhelmed

2008-04-15 Thread Justin Bronn
l. It really helps to have a subset of this stuff to start > to get familiar with. > Yes, I agree -- kudos to Nathaniel for providing a robust and informative response to your original inquiry. Best Regards, -Justin --~--~-~--~~~---~--~~ You received this me

Re: Dynamically limiting choices in admin.

2008-04-15 Thread Justin Bronn
latedAdmin` that does what I think you're looking to accomplish. It does require a small patch (2 changes) to newforms- admin in order to accommodate the AJAX goodness -- email me for a link to my private mercurial if you wish to examine the

Re: Django en Dreahost

2008-04-15 Thread Justin Lilly
File "/home/jjconti/django_src/django/db/backends/sqlite3/base.py", > line 133, in execute > return Database.Cursor.execute(self, query, params) > pysqlite2.dbapi2.Warning: You can only execute one statement at a time. > > > Did anyone installed Django in this hos

Re: Django en Dreahost

2008-04-16 Thread Justin Fagnani
I run a few Django sites on Dreamhost and the only problem I've ever had is that you need to get support to raise the Apache softlimit or you'll get a 500 error. Have you tried using the MySQL backend? I've never used Sqlite on Dreamhost, but MySQL with the mysql_old backend always

Re: unsubscribe

2008-04-16 Thread Justin Lilly
How about just sending an email to the unsubscribe link at the bottom of EVERY POST yeesh. On Wed, Apr 16, 2008 at 10:21 PM, steve skelton <[EMAIL PROTECTED]> wrote: > STOP SENDING EMAILS TO [EMAIL PROTECTED] > > > > -- Justin Lilly Web Developer/Designer h

Re: Response JSON Quoting

2008-04-16 Thread Justin Bronn
> After installing mod_python 3.3.1, reinstalling Django 0.96 (from svn > trunk), and reinstalling psycopg2 2.0.5.1, the quoting is all screwed > up and my Javascript no longer functions. Are you sure pulled 0.96 from the svn? Auto-escaping has been in trunk for 5 months now (r6671).

Re: Feel free to test queryset-refactor branch

2008-04-17 Thread Justin Fagnani
additional thing is that in one case, I know which subclasses I'm interested in, and it'd be great to have a way to specify that a queryset should return polymorphic results by specifying the subclasses for the join. Something like: Parent.objects.all().select_sub

Re: Django Names

2008-04-21 Thread Justin Lilly
d > Satchmo)? I think it's a cool convention, but those are the only 3 I > can think of when I am trying to tell people about it. > > Thanks, > Brandon > > > -- Justin Lilly Web Developer/Designer http://justinlilly.com --~--~-~--~~~---~--

Re: GeoDjango: distance between PointFields problem

2008-04-22 Thread Justin Bronn
> I'm calculating the distance between two plain PointFields in the GIS > branch using the distance GeoQuerySet method [1] and I'm coming up > with some confusing results. > I require more information before I can answer your inquiry: (1) What geographic fields are in your model, what type are t

Re: GeoDjango: distance between PointFields problem

2008-04-23 Thread Justin Bronn
> > (1) What geographic fields are in your model, what type are they > > (e.g., PointField, etc.), and their SRID. > > A plain PointField, e.g.: ``location = PointField()``. I > believeGeoDjangodefaults to WGS84 for the SRID. > > > (2) The geometry type of the parameter you're passing to `distan

Re: Announcing the Django Dash!

2008-04-23 Thread Justin Lilly
Yes. That's including a designer. I base this on his mention of the team sketching out the site design. -justin On Wed, Apr 23, 2008 at 11:25 AM, Eric <[EMAIL PROTECTED]> wrote: > > I see that you can have a team of two, does that include a designer? > > On Apr 14, 2:3

Re: Are any of you successfully running Django on IIS?

2008-04-24 Thread Justin Lilly
I finally got it working. You can check out the results at http://niethestate.com/trafficstops/ It was painful, though. Use apache if you can. I've talked my corp. into buying some linux servers at server beach so hopefully it will be much easier. -justin On Thu, Apr 24, 2008 at 1:

Re: Are any of you successfully running Django on IIS?

2008-04-25 Thread Justin Lilly
Yes. I do think its a hack and it very much feels that way when setting it up. If I had to do it again.. I'd avoid it at all costs. -justin On Fri, Apr 25, 2008 at 10:01 AM, jmDesktop <[EMAIL PROTECTED]> wrote: > > Do you think at best that running Django or any Python prog

Re: Complex Django Hosting

2008-04-25 Thread Justin Lilly
If you can get to 25k / mo. uniques, you can host on Joyent for free (in exchange.. you give them your user's info). Sure, its a bit shady.. but if you need decent hosting on the cheap... -justin On Fri, Apr 25, 2008 at 11:44 AM, Josh <[EMAIL PROTECTED]> wrote: > > I'm wo

Re: Admin site - apply business logic

2008-04-29 Thread Justin Lilly
en to wait until it is merged. -justin On Tue, Apr 29, 2008 at 3:34 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Would it be possible to make Admin site business logic aware when > dealing (CRUD) with model objects? > > For example, I have an "InventoryItem"

Re: web hosting

2008-04-30 Thread Justin Lilly
heir web hosting service, no suprise there, but I don't like being > held over a barrel. Help. > > > -- Justin Lilly Web Developer/Designer http://justinlilly.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: What is reverse() good for? Not really reversing...

2008-05-01 Thread Justin Lilly
While it may be the long way around, can you not do the following? a = Articles.objects.all()[:3] a.reverse() That would probably be my solution. -justin On Thu, May 1, 2008 at 12:36 PM, web-junkie <[EMAIL PROTECTED]> wrote: > > Hi, > > what is the new reverse() method

Re: Should I set up Django locally or on a web server?

2008-05-02 Thread Justin Lilly
jango with > > > SQLite? Is this what most Djangophiles are using to build sites > > > before they go live? > > > > > > I'll look into MacPorts and Fink as well, I've never heard of them. > > > I'll need to find a way to configur

Re: What is reverse() good for? Not really reversing...

2008-05-02 Thread Justin Lilly
ive, that works... but it does work. -justin On Fri, May 2, 2008 at 11:11 AM, web-junkie <[EMAIL PROTECTED]> wrote: > > That's exactly what I tried, and as I described, it gives you > something wrong, not the queryset reversed... > > On 1 Mai, 19:32, "Justin Lilly"

Re: Production vs Development Environments

2008-05-03 Thread Justin Lilly
Hey Ben, You may consider virtualizing it. VMWare's offerings are getting nicer and nicer and if you have a decent system around, Xen is also something to check out. -justin On Sat, May 3, 2008 at 2:45 PM, Ben Ford <[EMAIL PROTECTED]> wrote: > We have several different mercurial

Re: Can I use Django to display data form a legacy database?

2008-05-04 Thread Justin Bronn
arly, read the highlighted section entitled "Syncdb will not alter existing tables." -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: GeoDjangoFriendly?

2008-05-04 Thread Justin Bronn
t is posted in that forum topic: http://code.djangoproject.com/wiki/GeoDjangoInstall -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: How to Implement "Most Viewed"?

2008-05-25 Thread Justin Lilly
I know several people who have implemented this feature tend to do so by interfacing with their traffic reporting API. Perhaps you can tap into google analytics (or whatever you use) to achieve the same? -justin On Sun, May 25, 2008 at 3:20 PM, blis102 <[EMAIL PROTECTED]> wrote: > &g

Re: How to Implement "Most Viewed"?

2008-05-27 Thread Justin Lilly
On first pass, it doesn't appear that google analytics allows this sort of querying. Server log parsing seems to be the best solution suggested in terms of scaling and such. -justin On Tue, May 27, 2008 at 2:59 PM, didier rano <[EMAIL PROTECTED]> wrote: > Hi, > > I think t

Re: Ning-like applications for Django?

2008-05-28 Thread Justin Lilly
Funny you should mention this. Check out http://pinax.hotcluboffrance.comwhis is basically exactly what you're looking for. -justin On Wed, May 28, 2008 at 7:05 AM, ZebZiggle <[EMAIL PROTECTED]> wrote: > > Hi, for a new project I'm working on I had planned on using N

Re: Ning-like applications for Django?

2008-05-28 Thread Justin Lilly
t resolve, I'll load pinax. > > Out of curiosity, how many people are working on Pinax? > > Thanks for quick response! > > -Z > > > -- Justin Lilly Web Developer/Designer http://justinlilly.com --~--~-~--~~~---~--~~ You received this

Re: Deploying a Django App

2008-05-30 Thread Justin Lilly
You'll also need to have a way to serve admin media files and normal media files. Beyond that, that should be about it. -justin On Fri, May 30, 2008 at 1:52 PM, c0mrade <[EMAIL PROTECTED]> wrote: > > Yes, sorry, I'm planning on using Apache with mod_python. > > Once

Re: Deploying a Django App

2008-05-30 Thread Justin Lilly
r the help guys, is it always so active? :) > > On May 30, 1:53 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > > You'll also need to have a way to serve admin media files and normal > media > > files. Beyond that, that should be about it. > > -j

Re: recommended tagging app?

2008-06-01 Thread Justin Lilly
://code.google.com/p/django-tagging/ > > Is there anything I should know before I try to integrate it? > > Thanks, > Ivan > http://tipjoy.com > > > > -- Justin Lilly Web Developer/Designer http://justinlilly.com --~--~-~--~~~---~--~

Re: Can Someone Do something about ALL THIS SPAM

2008-06-06 Thread Justin Lilly
hosting > > options. > > Clearly moderating every post is impractical, but is there no way to > moderate the very first post of a new member before granting them > unmoderated access? > > > > -- Justin Lilly Web Developer/Designer http://justinlilly.com --~--~-~

auto generate models

2008-06-12 Thread Justin Kennedy
ne, and I understand this is finicky for mysql. Is there a specific convention for foreign key naming that will make this work? Or is there another solution that can help me? It would help a lot in trying to migrate large applications over.... Thank you, -- Justin Kennedy Mariti

Re: newforms: MultiValueField and MultiWidget

2007-02-19 Thread Justin Findlay
t; widget=None, label=None, initial=None): > widget = widget or MoneyWidget(currency=currency, > amount=amount) > . Canen, do you have the time to work out a full example? After much trying I'm still not able to repeat the example w

Re: newforms: MultiValueField and MultiWidget

2007-02-19 Thread Justin Findlay
On Feb 19, 1:18 pm, "Justin Findlay" <[EMAIL PROTECTED]> wrote: > Canen, do you have the time to work out a full example? After much > trying I'm still not able to repeat the example without having to use > the double tuple values. Nevermind. I misunderstood what

MultiWidget subclass not calling compress

2007-02-21 Thread Justin Findlay
od raise the NotImplementedError in / usr/lib/python2.4/site-packages/django/newforms/widgets.MultiWidget as I would expect. >>> d = {'custom_field':'Office Phone__1234567890','submit':'submit'} >>> cf = ContactForm(d) >>> cf.is_val

<    1   2   3   4   >