Using Email for Username

2008-11-20 Thread Justin
We want to use email addresses as our site's login username, not just as an alternative authentication method. I figured a quick way to do this would be just changing the auth user model's username field to an EmailField instead of a CharField (I know this isn't the most robust solution). Nonethel

Re: custom templatetags and problem with importing photologue.models - namespace collision?

2008-12-24 Thread Justin
The naming collision is fixed in Photologue 2.1. http://code.google.com/p/django-photologue/downloads/list - Justin On Dec 21, 3:37 am, Bartek wrote: > Bartek pisze:> Hi all > > When I loop over sys.modules in templatetags/pobierz.py there's > > django.templatetags.

Test Application Fails to Appear in Admin

2008-09-01 Thread Justin
Hi Team, I followed this tutorial here: http://www.djangoproject.com/documentation/tutorial02/ up until the step "Make the poll app modifiable in the admin". I do this step, but I don't get the Poll application in the admin section. I'm running debian, apache 2, mod_python and mysql 5. I'm usin

Re: Test Application Fails to Appear in Admin

2008-09-01 Thread Justin
caused > it. > > J > > On Sep 1, 5:28 pm, Justin <[EMAIL PROTECTED]> wrote: > > > Hi Team, > > > I followed this tutorial > > here:http://www.djangoproject.com/documentation/tutorial02/ > > up until the step "Make the poll app modifiable i

Handling Dynamic Image Uploads

2008-10-12 Thread Justin
is bump. Thanks so much! 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

Formsets with many to many relationship

2009-07-16 Thread Justin
I am trying to figure out the best way to have an inline formset with a many to many relationship. Right now I am the relationship is through a intermediate model as shown here in the docs http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships. It works

user profile problems

2009-08-19 Thread Justin
length=1) user = models.ForeignKey(User, unique=True) def __unicode__(self): return "%s - %s" % (self.panel_id, self.email) class Meta: app_label = 'engine' Any help would be appreciated, I am sure this is something sim

Re: user profile problems

2009-08-19 Thread Justin
Figured it out. Apparently when I did my intial test I did not have a profile create for the user which was causing a different error. the correct string was 'engine.UserProfile' Justin On Aug 19, 10:11 am, Justin wrote: > I am sure this is a newbie mistake but I can't se

Multiple Database in 1.0.2 with custom manager

2009-04-05 Thread Justin
ist. I am pretty new at this stuff so I am not sure if this works with 1.0.2, I am going to look into the Manager code to see if I can figure it out but I am just wondering if I am doing something wrong here. Thanks, Justin --~--~-~--~~~---~--~~ You received th

Setting up a MultiValueField + custom model field in admin

2009-11-29 Thread Justin
Hi guys, Trying to teach myself a bit about creating custom fields (for both forms and models) for Django. Starting off with a somewhat contrived storing a street address in one field. I seem to have gotten the model field working, as I can run python manage.py shell and successfully fill out th

Re: django model filter

2010-09-03 Thread Justin
ances greater than jeff's absolute balance and all negative balances less than jeff's absolute balance. This avoids adding a field to your model like 'balance_abs', which would be just a calculation anyways. I don't know if this is the cleanest way to do it, but let m

Re: django model filter

2010-09-03 Thread Justin
Well, I'm glad it works. Please post, if you want to, a cleaner solution if you find it! -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

Using reverse() in your urlpatterns

2007-06-26 Thread Justin
I've just been screwing around with my urlpatterns, trying to clean them up. Mostly, I've been trying to remove all hard coded urls wherever they are, in templates and whatnot, by adding a name="foo" to my urlpatterns and then accessing them with {% url %} and reverse(). I'm wondering though, is

Re: Using reverse() in your urlpatterns

2007-06-26 Thread Justin
On Jun 26, 12:12 pm, Justin <[EMAIL PROTECTED]> wrote: > I'm wondering though, is it possible to use reverse() and pass it some > args, to use it as the post_save_redirect in generic views? On second thought, this is kind of a stupid thing to do in the first place... why woul

Problem with Decimal type

2008-01-13 Thread Justin
ppreciated. I will be in the office tomorrow if seeing excepts of my apache or django config would help. - Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Problem with Decimal type

2008-01-13 Thread Justin
I should add that I have another external script running as a Windows service, using Django load_environ to access my models, to read data on the serial port also imports the Decimal class. - Justin On Jan 13, 1:43 pm, Justin <[EMAIL PROTECTED]> wrote: > I am currently running three

Query question

2008-01-22 Thread Justin
ective__gt=dtstart)) - 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 email to [

Unable to modify model in admin without change ImageField.

2008-02-15 Thread Justin
Related ticket (currently closed): http://code.djangoproject.com/ticket/871 At some point I have lost the ability to save this model in the admin interface as it refuses to honor blank=True in the model. There is already an image saved to each of these models which I do not want to change, but wh

Photologue 1.0 is out (image management application)

2008-03-05 Thread Justin
lery solution. Photologue embraces the Django admin and smoothly integrates with photo thumbnails and effect previews. - Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

ModelMultipleChoiceField updating HTML choices after 2nd reload

2008-04-08 Thread Justin
I have a form: class TestForm(forms.Form): name = forms.CharField(max_length=128, label="Test name") tasks = forms.ModelMultipleChoiceField(required=False, label="Tasks", widget=forms.CheckboxSelectMultiple, queryset=Task.objects.none()) The goal is to have checkboxes for a set of models

Re: ModelMultipleChoiceField updating HTML choices after 2nd reload

2008-04-09 Thread Justin
rough django code but still nothing. On Apr 8, 11:05 pm, Justin <[EMAIL PROTECTED]> wrote: > I have a form: > > class TestForm(forms.Form): > name = forms.CharField(max_length=128, label="Test name") > tasks = forms.ModelMultipleChoiceField(req

Re: ModelMultipleChoiceField updating HTML choices after 2nd reload

2008-04-10 Thread Justin
bly would have saved myself a few hours > of pulling my hair out. > > Best, > > ROn Wed, Apr 9, 2008 at 11:19 PM, Justin <[EMAIL PROTECTED]> wrote: > > > I noticed when looking at some code that after setting the queryset, > > it appears in the form. I

Re: ModelMultipleChoiceField updating HTML choices after 2nd reload

2008-04-10 Thread Justin
.fields['tasks'].queryset = Task.objects.filter(project=project) if form.is_valid(): This way, it will validate against the same queryset that the selection was made from, otherwise, it'll throw a ValidationError On Apr 10, 1:05 pm, Justin <[EMAIL PROTECTED]> wrote: > You can also

Re: Automatic Image Resizing upon Upload

2008-07-13 Thread Justin
of a Photologue Photo. Including admin thumbnail previews and effects processing. This way if you just the image manipulation code and few other goodies, you can use the base model and never touch the templates or the other gallery stuff. There is a 2.0 preview release available now for testing. - J

Advice on Date-Based Generic Views

2007-05-23 Thread Justin
y question is, does this hit the database twice? Once to get the latest object, and then again in 'object_detail' view? SimiIar to (a), I think this one also suffers from having to enter the meetings after the previous meeting. c. Write a custom view that

Time zone issue

2007-11-14 Thread Justin
ll and a djano shell datetime.now() is the same. Another clue may be the fact the I had to change the timezone after setting up the app, (I forgot to change the default "America/Chicago" to the correct zone) but have of course restarted the web server since then. Any help would be

Re: Time zone issue

2007-11-14 Thread Justin
I'm sorry, please disregard. It turns out I just needed to restart the service. I have to remember that restarting the webserver does not restart the service. Thanks. On Nov 14, 9:25 am, Justin <[EMAIL PROTECTED]> wrote: > After migrating a new site to it's future producti

Re: Django documentation search bar plugin for Firefox

2006-10-05 Thread Justin
Thanks, that's going to be really useful. On Oct 5, 10:21 pm, "Noah" <[EMAIL PROTECTED]> wrote: > I'm always searching the Django docs, so I decided to make a search > bar plugin for Firefox so that I don't have to go to the Django > documentation page in order to search the documentation. > > Yo

Re: alternatives to edit_inline

2006-12-13 Thread Justin
It looks like this edit_external option may be what you're looking for: http://code.djangoproject.com/ticket/1476 Does anyone know if this enhancement is in the works? It would be really neat. --~--~-~--~~~---~--~~ You received this message because you are subsc

dynamically refresh the urlconf?

2007-01-11 Thread Justin
ked before, couldn't seem to find a discussion about it. thanks, 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@google

Creating a root object for a many-to-one relationship

2006-06-10 Thread Justin
I was following the Model Ex. 11 "Relating an object to itself, many-to-one" in an attempt to create nested containers. I'm running into the problem that at the start there is no parent for newly created objects to relate too. Is there a way to handle this from the Model or do I need to just fire

Re: Creating a root object for a many-to-one relationship

2006-06-10 Thread Justin
Yeah, what I have is: class Container(models.Model): parent = models.ForeignKey('self', null=True, related_name='child') I toyed with the idea of a custom Manager but wanted to see first if Django already handled this scenerio "out of the box" and I was just missing it. --~--~-~--~--

Re: magic removal mean?

2006-09-11 Thread Justin
hile there were two branches of Django, a "magic removal" branch and the regular old one. Nowadays magic removal branch is the standard, but you'll still see lots of references to magic removal in old comments and docs. Hope that helps. -Justin --~--~-~--~~

Re: Strange exception when creating a user.

2006-04-12 Thread Justin
rt it. -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 email to [EMAIL PROT

Re: is photologue still maintained?

2011-09-17 Thread Justin
sed on ImageKit. You can check that out here: https://bitbucket.org/jdriscoll/django-photolog I would love for someone who uses PL to take over the project but so far I haven't found anyone suitable. -- Justin On Sep 16, 2:00 am, graeme wrote: > It may or may not help you, but

Abstract base classes, multiple inheritance and field removal

2011-05-26 Thread Justin
t a good way to remove fields, is there another? thanks, 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 email

Re: Multi-tenant Django w/ Multi-DB?

2011-01-05 Thread Justin
this hairy problem, please post it. I'd be interested to see what you come up with. -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

Re: Any Django framework command to freeze/wait/notify ?

2011-01-05 Thread Justin
+1 for Celery. For Django integration, see django-celery: https://github.com/ask/django-celery -Justin On Jan 5, 2:21 am, vivek_12315 wrote: > Hi all, > > This is a common scenario which many of you have faced. > > Say, I created a simple view file, in which user uploads a file

Re: OpenToken Spec & Single Sign On

2011-01-07 Thread Justin
f good tests so I know when I am on the right track. I hope to open source the code once I am done. Thanks, 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.

Re: OpenToken Spec & Single Sign On

2011-01-07 Thread Justin
Well that doesn't seem like much fun! But you're right, that's what will eventually happen. -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.

Class based views and form processing

2011-01-09 Thread Justin
field has editable=False so the form doesn't include it in the fields list. Am I missing something simple? Probably :). Any help would be greatly appreciated! Thanks, -Justin -- You received this message because you are subscribed to the Google Groups "Django users" group. To

making an http request internally

2014-10-17 Thread justin
roper. Any tips here would be great. Thanks! Justin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Mercurial or Git

2008-10-23 Thread Justin Lilly
django used these dvcs's. -justin On Oct 23, 8:15 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Thu, Oct 23, 2008 at 3:54 AM, Rit Lim <[EMAIL PROTECTED]> wrote: > > > which one is the Django community moving toward to, mercurial or git? > &g

Re: Mercurial or Git

2008-10-23 Thread Justin Bronn
because I need first-class Windows support and found git to be non-intuitive. > if Django is to be moved... Not going to happen anytime in the foreseeable future. There's nothing stopping you from using any of the aforementioned systems and pulling changes f

Re: geodjango: installation comments.

2008-10-23 Thread Justin Bronn
On Oct 18, 2:21 pm, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > I did found some inconsistencies on the docs I'll like to point out: > 1- the different installation docs use a methodology with little > changes, probably due to being written by different people. it will be > nice to unify them into

Re: GeoDjango problem -- server hangs on GEOSGeometry calls

2008-10-24 Thread Justin Bronn
g., mod_wsgi, mod_python, fastcgi? What's the configuration look like? What's the web server, it's version? -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: GeoDjango problem -- server hangs on GEOSGeometry calls

2008-10-24 Thread Justin Bronn
> Also, it's on CentOS 5.2 > Just want to be complete. > Turn off SELinux. I'm almost positive that's your problem. -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: add a to_kml routine ti contrib.gis.gdal

2008-11-11 Thread Justin Bronn
tely consider it's inclusion into GeoDjango. Best Regards, -Justin On Nov 5, 3:17 am, guillaume <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to add a to_kml ogr support togeodjangoand I'm facing a > problem : > I've added to geom.py the line : >

Re: Python and/or django book

2008-11-17 Thread Justin Lilly
I would probably second Alley's suggestion if only because buying a book to learn a language when its already out of date is a huge pain. I made that mistake with RoR. The book Alley linked apparently (judging by the cover) is up to date with 1.0. -justin On Mon, Nov 17, 2008 at 3:33 PM,

Re: Inheritance example???

2008-11-18 Thread Justin Lilly
The best example of this is likely the Pinax project. You can find more at http://pinaxproject.com/ -justin On Nov 18, 2008, at 2:53 PM, jago wrote: > > I am a Django apprentice and would like to learn more. > > The Django docu says the following: > > "You ca

Re: Media and putting javascript last

2008-11-18 Thread Justin Lilly
The way I structure this is I put my jquery include at at the top with the css. At the bottom of my script, I add an {% block extra_script %} {% endblock %} block just before the tag which is where excess javascript goes. Any reason this wouldn't work for you as well? -justin On N

Re: GeoDjango in Ubuntu 8.10, Segmentation Fault

2008-11-25 Thread Justin Bronn
eper until next month. Perhaps there's a clash of the libraries that are linked to Apache and the ones used by the packaged versions of GEOS/ GDAL, or maybe it's caused by Ubuntu's AppArmor (confined to just CUPS in 8.04) -- but these are just potential possibilities. > Justin was

Re: GeoDjango in Ubuntu 8.10, Segmentation Fault

2008-11-25 Thread Justin Bronn
x27;s the error I got: http://code.djangoproject.com/ticket/9694. I've also got a patch on there that fixes the SRS exception on 8.10 -- I have a vague notion as to why it works, but no definitive answer. My only guess as to your non-reproducible segfault is that worker was being used when you thought

Re: GeoDjango question about US zipcode lookup and spatial query

2008-11-29 Thread Justin Bronn
vices? No, GeoDjango does not provide geocoding services. Geopy [1] is a popular Python geocoding interface. Regards, -Justin [1] http://code.google.com/p/geopy/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: GeoDjango question about US zipcode lookup and spatial query

2008-12-01 Thread Justin Bronn
> Thanks Justin, I was using MySQL and it looks like I do need Postgres to get > the best gis support. > Do people normally switch their DB backend entirely or do they start a new > project for geo stuff and connect the main site to this as a separate > backend? I can see the p

Re: GeoDjango in Ubuntu 8.10, Segmentation Fault

2008-12-03 Thread Justin Bronn
for 1.1 [1]. I've also created a ticket [2] and I'll attach a patch with the fix, which I'll commit to trunk and the 1.0.X branch within a week. And now I realized why I couldn't reproduce on CentOS -- I was using a 32-bit version; forgot to ask "

Re: Multithreading issu with GDAL transform

2008-12-10 Thread Justin Bronn
velopment teams are working on making the libraries thread safe, they are not at this time. Thus, do not use threads when deploying (e.g., no worker Apache, or using threads via FastCGI). Regards, -Justin --~--~-~--~~~---~--~~ You received this message becaus

Re: Need Drop down menu code

2008-12-18 Thread Justin Myers
ilar) with Django and then use some sort of CSS (the Suckerfish Dropdowns at http://www.alistapart.com/articles/dropdowns/ are rather popular) to turn that into dropdowns. Hope that helps! -Justin --~--~-~--~~~---~--~~ You received this message because you are sub

Re: ViewDoesNotExist

2008-12-24 Thread Justin Myers
ries, it's hard to be sure. -Justin On Dec 24, 1:01 pm, aperez199 wrote: > Hi everyone, > i'm having a problem with an application i have migrated from a server > to another. I got the settings right and all, but i get this error: > > Exception Type:         ViewDoesNotE

Re: A better way to filter queryset in generic view?

2008-12-29 Thread Justin Myers
f view_entry_list(request): queryset = Entry.objects.filter(user=request.user) return object_list(request, queryset, template_name='entry_list.html') -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: working with shp files and geodjango

2008-12-30 Thread Justin Bronn
ion information, as it is not included with some shapefile datasets -- making it significantly more difficult to determine the coordinate system. Regards, -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Tutorial Problem

2009-01-03 Thread Justin Myers
It failed after it imported your settings file the first time, so I don't think the problem's there; it also got the folder name right, so it looks like it's just failing to recognize it as a Python package. Any chance you got rid of __init__.py (empty file in the mysite folder) by mistake? On Ja

Re: Same form with dropdown on all pages

2009-01-04 Thread Justin Myers
It sounds like you're after a custom template tag: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ On Jan 4, 2:31 pm, Ashish wrote: > I want to have a common html form with only a dropdown and a submit > button on all pages. > It will placed in one corner and user can select say

Filtering generic view querysets with URLconf named groups

2008-07-16 Thread Justin Myers
ub_match = pattern.resolve(new_path) File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py" in resolve 231. for pattern in self.urlconf_module.urlpatterns: File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module 255.

Re: Filtering generic view querysets with URLconf named groups

2008-07-16 Thread Justin Myers
Ah, that makes sense. I'll give that a shot. Thanks again! -Justin On Jul 17, 12:49 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > You are making the assumption that the queryset will be recreated anew > each time and that this will only happen after the blog_slug

Re: Filtering generic view querysets with URLconf named groups

2008-07-16 Thread Justin Myers
date', extra_context=extra) Thanks so much! -Justin On Jul 17, 12:49 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > You are making the assumption that the queryset will be recreated anew > each time and that this will only happen after the blog_slug value has > been determi

Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Justin Myers
h unless you know what you're doing", {'fields': ('slug'), 'classes': 'collapse'}), ) --- If I comment out the four lines at the end (the fields tuple), everything works fine (except the slug field isn't collapsed), but as soon as I un

Re: Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Justin Myers
Ah, worked perfectly. Thanks so much! -Justin On Jul 18, 8:52 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Python gothca: you've neglected to put a comma after 'slug' in 'fields': > ('slug').  Single-element tuples need to have a comma

Re: superuser has no rights with newforms admin

2008-07-20 Thread Justin Wong
y more suggestions, it'd be great! (What file is this message from?) Cheers! Justin On Sun, Jul 20, 2008 at 6:21 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Sun, Jul 20, 2008 at 9:11 AM, eka <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> I'm install

Re: superuser has no rights with newforms admin

2008-07-20 Thread Justin Wong
'name': , 'perms': { 'add': True, 'change': True, 'delete': True}}, { 'admin_url': 'market/ord

Re: superuser has no rights with newforms admin

2008-07-21 Thread Justin Wong
Never mind, newforms-admin works great. :) I forgot that I had copied a custom version of the old admin templates and it was parsing that instead. Cheers! Justin On Sun, Jul 20, 2008 at 7:27 PM, Justin Wong <[EMAIL PROTECTED]> wrote: > Well, I tracked down the admin/index.html page

Password reset/recovery for code.djangoproject.com?

2008-07-21 Thread Justin Fagnani
I can't seem to find any password reset form for Trac, or an administrator email address. There has to be some way I can avoid creating a new account, no? -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: dynamic creation of model with geodjango ?

2008-08-19 Thread Justin Bronn
f I understand, you wish to go from spatial data source (e.g., shapefile) -> admin automatically, with the intermediate step of creating spatial database tables and importing. I believe this is possible, but not trivial. Regards, -Justin --~--~-~--~~~---~--~~ You

Re: formset - Determining if a form is new?

2008-08-19 Thread Justin Fagnani
Paddy, You can use formset.initial_forms and formset.extra_forms instead of formset.forms -Justin On Tue, Aug 19, 2008 at 6:18 PM, Paddy Joy <[EMAIL PROTECTED]> wrote: > > I would like to determine which forms within a formset are new forms > and which forms are existing forms.

Re: formset and __init__

2008-08-20 Thread Justin Fagnani
uct_form() can use super() and be very simple: def _construct_form(self, i, **kwargs): return super(BaseFormSet, self)._construct_form(i, **{'path_server':foo, 'path':bar}) Otherwise you'll have to copy and paste BaseFormSet._construct_form into yours. -Justin --~--~-~--~

Re: formset and __init__

2008-08-20 Thread Justin Fagnani
s your arguments into __init__(), set attributes, and call super() -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.

Re: formset and __init__

2008-08-21 Thread Justin Fagnani
it__(*args, **kwargs) MyFormSet = formset_factory(MyForm, formset=MyBaseFormSet) def view_func(request): formset = MyFormSet(foo='bar') ... hope that helps, Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: formset and __init__

2008-08-21 Thread Justin Fagnani
uire extra arguments to __init__(). A general way to do this might be nice, but could be very complicated. Another way to do this would be to create your formset, and then iterate over formset.forms and set the attributes you need, and then do what you need with the formset. -Justin On Thu, Aug 21, 20

Re: Newbie Question - Regex Field to deal with Feet/Inches

2008-08-28 Thread Justin Bronn
f the GeoDjango prerequisites. -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 join problem

2008-09-02 Thread Justin Bronn
ur help. You need to put `objects = models.GeoManager()` in your `Location` model. I don't see it in the code you provided. Regards, -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

registering an admin class causes complete meltdown

2008-09-02 Thread Justin Fagnani
I'm a bit lost here, is admin.site.register() modifying __import__()? Any ideas? Thanks, Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: registering an admin class causes complete meltdown

2008-09-03 Thread Justin Fagnani
Of course. I've been doing it this way at the start of conversions and this is the first time it's been a problem. Thanks, Justin On Tue, Sep 2, 2008 at 10:06 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2008-09-02 at 21:40 -0700, Justin Fagnan

Re: Problem with filtering on DateTimeField

2008-09-05 Thread Justin Myers
)),time.max)).count() Of course, I'm sure there's a cleaner way to write that--but it does the job. Hope that helps! -Justin On Sep 5, 2:47 pm, akaihola <[EMAIL PROTECTED]> wrote: > First, look at the behavior of Python's datetime module: > > >>> datetime(2008,9

Re: Django 1.0 GIS Module (aka GeoDjango) and MySQL

2008-09-10 Thread Justin Bronn
not conform to the OGC specification [1], and does not implement the `geometry_columns` and `spatial_ref_sys` tables. [2] Regards, -Justin [1] http://www.opengeospatial.org/standards/sfs [2] http://dev.mysql.com/doc/refman/5.0/en/mysql-gis-conformance-and-compat

Re: GeoDjango / GIS Garbage Collection Error

2008-09-25 Thread Justin Bronn
response to a module being deleted (e.g., when execution of the program is done), other globals referenced by the __del__() method may already have been deleted. Thus, the solution is to not to not import GEOS globals from a different module. Regards, -Justin [1] http://

twid?

2008-10-16 Thread Justin Lilly
You might have better luck with integration from the guys at thisweekindjango.com (podcast). They have a host of community features already in place on their website so it seems like a better fit over there. --~--~-~--~~~---~--~~ You received this message because yo

Re: ObjectPaginator

2009-01-28 Thread Justin Myers
me problem trying to install Djikiki on a 1.0 server, so I feel your pain.) HTH, Justin On Jan 27, 7:34 pm, leonel wrote: > get_page is from  version  < 1.0   > in  > 1.0    use   page(num) > > take a look at :http://www.djangoproject.com/documentation/m

Re: openlayers TemplateSyntaxError

2009-02-07 Thread Justin Bronn
You need to add 'django.contrib.gis' to your INSTALLED_APPS. This is in the install docs: http://geodjango.org/docs/install.html#add-django-contrib-gis-to-installed-apps -Justin On Feb 3, 11:39 pm, Waruna de Silva wrote: > Hi , > > I'm newbie to django as well asgeod

Re: Postgresql v MySQL

2009-02-08 Thread Justin Bronn
t; storage-engine choice, ready availability on shared/inexpensive > web hosts, or spiffy GUI/web admin interfaces, then use MySQL. There's also pgAdmin III, a GUI interface available for PostgreSQL, and installed by default with the windows installers. Regardless, I second the op

Mutli-Assignable Models

2009-02-12 Thread Justin Lilly
llustrated case above, shows). Looking for any advice or help you may be able to provide. -justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: GeoDjango - Center of a Polygon

2009-02-13 Thread Justin Bronn
issue than use the `point_on_surface` property instead of `centroid`. -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@goo

Re: (GeoDjango.. again) Silly question - grab single lat and long value from a MultiPointField?

2009-02-13 Thread Justin Bronn
> But with a MultiPointField doing the same gives me nada.  Where am I > going wroing? A MultiPoint geometry is a collection, so you would index it like an array to get the Point geometry. In other words, treat like a list of Points. {{ multipoint.0.x }}, {{ multipoint.0.y }} -

Re: How to set the right PostGIS path to PostgreSQL 'share' directory

2009-02-13 Thread Justin Bronn
ll likely be able > to give you more detailed help. > Or try the geodjango mailing list: http://groups.google.com/group/geodjango -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: date-based ordering confusion

2009-02-14 Thread Justin Myers
.com/en/dev/ref/models/options/#ordering While order is something that's handy to have in the admin, it's not specific to it. It's a property of the model itself, since it ends up in any QuerySet involving that model. Hope that helps, Justin --~--~-~--~~-

Re: Geodjango GPolygon

2009-02-16 Thread Justin Bronn
her words (lon, lat). Thus, your GEOS geometry should have the coordinates in (lon, lat) order. However, mapping APIs use (lat, lon) order instead. This is why GPolygon switches the order, to be compatible with the GMaps API -- and you probably had the order wrong to begin with in your geom

Re: Mutli-Assignable Models

2009-02-16 Thread Justin Lilly
bstracting these relationships is the best way to go about the problem, its just the method of abstraction that I'm unsure on. -justin On Sun, Feb 15, 2009 at 10:32 AM, Peter Herndon wrote: > > Hi Justin, > > I can't view your code at the moment, but it seems to me you want a

djWarehouse setting up

2009-03-01 Thread Justin Li
he code is very complex. It's not easy to find out how and why at a short time. Anyone here has experience to setup a site with djWarehouse? Any tips will be appreciated. Thanks in advance! Justin --~--~-~--~~~---~--~~ You received this message because you are su

Re: djWarehouse setting up

2009-03-03 Thread Justin Li
It looks cool even though it depends on many other components. I'm fighting to set it up by following the documentation. Thanks a lot! Justin On Mar 2, 11:03 am, Alex Gaynor wrote: > On Sun, Mar 1, 2009 at 9:07 PM, Justin Li wrote: > > > Hey Guys, > > > I'm s

Re: Problem with generic views

2009-06-26 Thread Justin Lilly
Actually, As he didn't provide a template_object_name parameter, the generic view's default context variable is object_list. -justin On Fri, Jun 26, 2009 at 8:18 PM, maplye wrote: > > task_list not Task.object.all in the view. > > 2009/6/27 Technicalbard : >>

Re: Base view class ?

2009-06-29 Thread Justin Lilly
oing a bunch of similar stuff that's just a tiny bit different, for which you can just subclass the view class for the bits you need to change. Hope that helps. -justin On Jun 29, 2009, at 6:28 AM, Raja wrote: > > You could use decorators (following the Decorator pattern) to d

  1   2   3   4   >