__import__(settings) failure

2008-11-07 Thread matthew
/dev/howto/deployment/modpython/?from=olddocs about configuring apache. My apache2.conf contains: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE WORD.settings PythonDebug On PythonPath "['/home/matthew/current/dj

Re: URL problems after newforms admin migration

2008-07-22 Thread Matthew
ing to move it all across to my "production" server :\ That link does seem similar to trouble I'm having though, thanks for that Karen. On 22 Jul, 21:30, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 22, 2008 at 2:17 PM, Matthew <[EMAIL PROTECTED

Ifnotequal used with Length filter and a zero value not working

2009-06-24 Thread Matthew
Hey all, I'm having a problem getting ifnotequal logic to work. I have what is basically this layout: {% ifnotequal activeusers|length 0 %} {{ activeusers|length }} Friends Online {% else %} Friends {% endifnotequal %} in one of my templates. Its not quite as simple as that, theres some

Re: Ifnotequal used with Length filter and a zero value not working

2009-06-24 Thread Matthew
Ah, d'oh - Very obvious, thanks very much! On Jun 24, 1:28 pm, Marcin Mierzejewski wrote: > Hi Matthew, > > > I have what is basically this layout: > > > {% ifnotequal activeusers|length 0 %} > >     {{ activeusers|length }} Friends Online > > {% else %

syncdb does not find app on the PYTHONPATH

2009-08-04 Thread Matthew
ore tables were created (like "auth") and the directory's custom models (from the "cms" project). Nothing on the PYTHONPATH was created. The offending app, "coltrane" lives in /home/matthew/dev/source. An third-party "tagging" app lives in /home/matt

Re: syncdb does not find app on the PYTHONPATH

2009-08-05 Thread Matthew
['title'] verbose_name_plural = "Categories" def __unicode__(self): return self.title def get_absolute_url(self): return "/categories/%s" % self.slug Thank you again for your help! Matthew --~--~-~--~~~---~--~

Re: Practical Django Projects Chp. 3: TinyMCE won't appear in admin

2009-08-05 Thread Matthew
get there :-) Regards, Matthew --~--~-~--~~~---~--~~ 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 em

Re: syncdb does not find app on the PYTHONPATH

2009-08-05 Thread Matthew
Just did - I got the same message: >>> c = coltrane.category() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'category' Thanks, Matthew --~--~-~--~~~---~--~~ Yo

Re: syncdb does not find app on the PYTHONPATH

2009-08-06 Thread Matthew
super(Entry, self).save(force_insert, force_update) def get_absolute_url(self): return "/weblog/%s/%s/" % (self.pub_date.strftime("%Y/%b/ %d").lower(), self.slug) == Traceback:

Re: syncdb does not find app on the PYTHONPATH

2009-08-06 Thread Matthew
I tried your suggestion and got this: >>> from coltrane.models import Category Traceback (most recent call last): File "", line 1, in File "/home/matthew/dev/source/coltrane/models.py", line 3, in from django.db import models File "/usr/local/lib

Re: syncdb does not find app on the PYTHONPATH

2009-08-06 Thread Matthew
I tried your suggestion and got this: >>> from coltrane.models import Category Traceback (most recent call last): File "", line 1, in File "/home/matthew/dev/source/coltrane/models.py", line 3, in from django.db import models File "/usr/local/lib

Re: syncdb does not find app on the PYTHONPATH

2009-08-06 Thread Matthew
It looks like the issue is resolved. Many thanks to Kenneth and Daniel. Here's the summary to help others: It looked at first like the PYTHONPATH was not picking any of my apps or the third-party apps up when running syncdb. This was not the case. Instead, coltrane's classes weren't loading b

Generic view 'archive_year' not working

2009-08-09 Thread Matthew
full Entry === Output for http://localhost:8000/weblog/2009/ is a blank page (no errors). There should be at least 3 entries, demonstrated by August. === Thanks, Matthew --~--~-~--~~~---~--~~ You received this message because

Generic view 'archive_year' produces blank HTML page

2009-08-10 Thread Matthew
bject_list'. I know that 'archive' uses a 'latest' list instead of 'object_list', but that's not the case with 'archive_year', correct? Thanks, Matthew --~--~-~--~~~---~--~~ You received this message because you are su

Getting the Model type of an unknown object?

2009-04-16 Thread Matthew
Is it possible to do this? I'm using a custom MultiQuerySet snippet to merge a bunch of querysets from different models, and then I want to iterate over the resultant list, but I want to be able to pull out from each object in the list its own Model type so I can perform a few comparisons/functio

Re: Getting the Model type of an unknown object?

2009-04-17 Thread Matthew
> > just wrong. > > > Brad > > > On Apr 16, 2:00 pm, Daniel Roseman > > wrote: > > > > On Apr 16, 6:02 pm, Matthew wrote: > > > > > Is it possible to do this? > > > > > I'm using a custom MultiQuerySet snippet to merge a

Re: Generic view 'archive_year' produces blank HTML page

2009-09-12 Thread Matthew
ave objects > available in the given year. > > To add object_list to the context, use the optional argument > make_object_list=True when calling archive_year. > > For more info, look at the docs > athttp://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-... > > Al

Re: Generic view 'archive_year' not working

2009-09-12 Thread Matthew
See thread http://groups.google.com/group/django-users/browse_thread/thread/f6f78545989cfbab On Aug 9, 1:31 pm, Matthew wrote: > I am using Django's generic views to create a blog site.  The > templates I created, entry_archive_day, entry_archive_month, > entry_archive, and en

Re: Getting primary key value without unnecessary database query

2007-06-08 Thread matthew
D'oh! Thanks. M On Jun 8, 2:40 pm, Forest Bond <[EMAIL PROTECTED]> wrote: > On Fri, Jun 08, 2007 at 06:35:33AM -0700, matthew wrote: > > > Hi, > > > This is my model: > > > class Fish(models.model): > >species = models.ForeignKey('S

Getting primary key value without unnecessary database query

2007-06-08 Thread matthew
ies primary key. How can I get the value without an unnecessary query? Thanks in advance, Matthew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Dynamic includes in template?

2006-12-04 Thread matthew
Hi, Looking at the documentation, I see that you can do "include template_name" or "include 'template.html'". I'd like to combine these - concatenating a couple of strings and a variable to make the template name - but it's not working (no error, but no template included). This template displays

Re: Dynamic includes in template?

2006-12-04 Thread matthew
Will do. Thanks, Matthew On Dec 4, 9:57 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 12/4/06, matthew <[EMAIL PROTECTED]> wrote: > > > This is the bit that's not working (viewsurvey.html): > > {% for question in questions %} > >

Django and aws elastic beanstalk

2016-07-14 Thread matthew
is invalid.”     “ERROR: WSGIPath refers to a file that does not exist.” I’ve tried everything I can think of but nothing seems to work. I look forward to hearing back from you and hope that you can help me with this. Matthew Bates VOG Calgary Developer Inc - We Are Mobile Development

Django and aws elastic beanstalk

2016-07-16 Thread matthew
is invalid.”     “ERROR: WSGIPath refers to a file that does not exist.” I’ve tried everything I can think of but nothing seems to work. I look forward to hearing back from you and hope that you can help me with this. Matthew Bates VOG Calgary Developer Inc - We Are Mobile Development

Could not parse the remainder template inheritance

2016-01-01 Thread Matthew
Hi all, I'm working through the masteringdjango book, and am struggling in the Templates area. I created a base.html base template, and am attempting to include a child template. This is the child template: {% extends “base.html” %} {% block title %}The current time{% endblock %} {% block c

Re: Could not parse the remainder template inheritance

2016-01-02 Thread Matthew
Hi James, I turned smart quotes off and am still having the error. I wasn't aware that could cause future errors though, so thanks for the heads up! On Saturday, January 2, 2016 at 12:44:22 AM UTC-5, James Schneider wrote: > > > On Jan 1, 2016 8:08 PM, "Matthew"

Re: Could not parse the remainder template inheritance

2016-01-02 Thread Matthew
Actually it turned out this works!! My TextEdit app was being finnicky and made me re-write the entire code instead of just the quotation marks. Thanks for the help! On Saturday, January 2, 2016 at 10:52:22 AM UTC-5, Matthew wrote: > > Hi James, > > I turned smart quotes off and am

Django Suitability

2008-10-22 Thread Matthew Talbert
not a lot else. 4. I welcome any other comments, thoughts, opinions, or references as to the suitability of Django for this project. I apologize if any/all of this is redundant. I am a big fan of Django, so thanks to all the developers and comm

Re: Django Suitability

2008-10-22 Thread Matthew Talbert
nd > then only the sky is the limit. > If there's a Python module for ODBC, Access, etc. then YES it can be > used in Django. > I am already sold on Django/Python, but my question is are there good descriptions of the benefits written for non-technical people? Benefits

Re: Django Suitability

2008-10-23 Thread Matthew Talbert
Thanks, Dj, that is helpful. > A project I worked on over the summer used a Database that was 130 > tables, and getting 1gb updates every 2 minutes. I was witting a new > web app to do calculations on the data and the company wanted to use > Java since thats what they knew best and had spend huge

Decimal * Decimal

2008-10-30 Thread Matthew Talbert
to know if there has been any progress with this, or if the solution is still either run in separate processes, or patch and compile my own version of psycopg2. Thanks Matthew I might note that there is currently no bug tracker for psycopg, so I'm unaware of any way to check on the pr

'get_latest' is not a valid tag library

2008-09-25 Thread Matthew Crist
I am trying to figure out templatetags, and I keep getting the following error: 'get_latest' is not a valid tag library: Could not load template library from django.templatetags.get_latest, No module named get_latest I started with this guide: http://www.b-list.org/weblog/2006/jun/07/django-tip

Re: 'get_latest' is not a valid tag library

2008-09-25 Thread Matthew Crist
Here's my template: {% load get_latest %} My Site - {%block pagetitle %}{% endblock %} My Site home Blog

Re: 'get_latest' is not a valid tag library

2008-09-26 Thread Matthew Crist
e found. > > On Sep 25, 10:29 pm, Matthew Crist <[EMAIL PROTECTED]> wrote: > > > Here's my template: > > > {% load get_latest %} > > > "http://www.w3.org/TR/html4/loose.dtd";> > > > >         > >                 M

Re: 'get_latest' is not a valid tag library

2008-09-26 Thread Matthew Crist
It was the quotes. Thanks for the tips! --~--~-~--~~~---~--~~ 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 em

Re: Contrib comments and removing fields for private comments

2009-03-27 Thread Matthew Somerville
t.user.is_authenticated(): return HttpResponseRedirect() return post_comment(request) ATB, Matthew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: django.contrib.auth.models.User User model can't be saved

2009-03-28 Thread Matthew Somerville
27;t printing out the error messages correctly. That's just a guess. > Am I doing a good practice anyway for doing registration using this > django.contrib.auth.models.User object? I believe that's what it's for, yes :) The code you give looks fine in its structure. AT

Re: django.contrib.auth.models.User User model can't be saved

2009-03-29 Thread Matthew Somerville
s you want to use from User using the Meta class as described at http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-subset-of-fields-on-the-form Then you can just display the form with form.as_p and it will know it only cares about those fiel

Re: Problem with Field errors

2009-03-29 Thread Matthew Somerville
ad. > > That works, thank you. > > Why does it work? http://docs.djangoproject.com/en/dev/ref/forms/validation/#form-subclasses-and-modifying-field-errors explains the _errors variable, but I don't think you need it in this case. ATB, Matthew --~--~-~--~~~---~--~--

Re: Problem with Field errors

2009-03-29 Thread Matthew Somerville
Jack Orenstein wrote: > On Mar 29, 2009, at 9:35 AM, Matthew Somerville wrote: >> For more information, see >> http://docs.djangoproject.com/en/dev/ref/forms/validation/ > > Thanks, that's really useful to know about. This works for most of > the additional

MySQL group_concat with aggregates

2009-03-29 Thread Matthew Somerville
_values() in django/db/backends/__init__.py (called from django/db/models/sql/query.py in resolve_aggregate()). This function appears to only want numbers/datetimes to go in, and in this case I'm obviously returning text. Not sure what to suggest as a solution, as there are presumably other things g

Re: Like Statement in Raw SQL

2009-03-30 Thread Matthew Somerville
s' cursor = connection.cursor() cursor.execute(sql, ['%'+forge+'%']) which then means forge will be quoted/escaped for you as necessary automatically. ATB, Matthew > not enough arguments for format string --~--~-~--~~~---~--~~

Re: error in response['Content-Type']

2009-03-31 Thread Matthew Somerville
onse expects a string, as explained at http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpResponse.__init__ > 3.How to solve the problem Pass in the first element of the tuple, not the tuple. Though you should probably check that guess_type() is actually returning

Re: What hash algorithm does django auth use?

2009-03-31 Thread Matthew Somerville
password'] - see the UserCreationForm in django/contrib/auth/forms.py). ATB, Matthew --~--~-~--~~~---~--~~ 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

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-08-13 Thread Matthew R
I got hit by this same bug and here's the workaround I used, for future reference. Basically you need to specify a formfield_callback kwarg to modelformset_factory that just passes along any kwargs it receives (namely, in this case, the 'widget' argument) to Field.formfield(): def create_formfield

Re: odd apache issues

2010-11-01 Thread Matthew Stroud
I have found the issue, it appears that I didn't have the compression development libraries installed while compiling mod_wsgi. After installing those and recompiling, the issue has gone away. Thanks for the help. On Oct 28, 2010, at 3:07 PM, kicker wrote: > I'm having an odd issue when I star

Re: Django Country->State->City Dropdown list

2010-11-02 Thread John Matthew
Sounds like AJAX is your answer, there are lots of AJAX libraries out there that have examples on this. J On Nov 2, 10:31 am, d wrote: > URGENT! > The following is my django code. I would like to have 3 column drop- > down list. > > a member can select his location. > when a country is selected,

CSRF issue...

2010-02-18 Thread Matthew Currier
I am new to Django and loving it. I am using v1.2 locally and have an issue with my first project from scratch: The CSRF token is not being sent with my form post. I have {% csrf_token %} inside the tag and have verified that a csrf cookie does exist for the browser. However, I get the error m

Re: problem with objects.get(id=None)

2010-03-06 Thread Matthew Warren
I guess the aim of documaentation is to be helpful and assist the end user. While it makes no sense to document mysql within Django, wouldn't it make sense to document specific interactions between Django and it's supported back-end DB's that are likely to catch people out? - maybe just as annotat

ForeignKey / ManyToManyField / admin interface

2010-03-06 Thread Matthew Warren
Hi, I have a model like the following; class elements(models.Model): name=models.CharField(max_length=21) class grouping(models.Model): name=models.CharField(max_length=48) elementgroup=models.ForeignKey(elements) I'm assuming this means that a grouping may relate to multiple ele

Re: Selecting rows from 4 in one to many relationship, please help

2010-03-06 Thread Matthew Warren
>From what you've written, my best guess would be something like, select car.id where car.id in (Select CarOperation.id_car where CarOperation.status='exact') and car.id not in (select CarReservation.id_car where GIVEN_DATE > CarReservation.ariv_date and GIVEN_DATE < CarReservation.dep_date) That

Re: ForeignKey / ManyToManyField / admin interface

2010-03-06 Thread Matthew Warren
to look at writing a new view say, 'manage groupings' , or would it be better to find similar functionality in a relevant class and extend it? thanks, Matt. On 6 March 2010 19:44, Christophe Pettus wrote: > > On Mar 6, 2010, at 10:37 AM, Matthew Warren wrote: > &g

Re: using .fields when spanning relationships

2007-06-21 Thread Matthew Nuzum
On 6/21/07, Matthew Nuzum <[EMAIL PROTECTED]> wrote: > My goal is to get a list of unique countries referenced through a > table. My model has: > Nice typo there... the subject should be: using .values when spanning relationships :-( -- Matthew Nuzum newz2

using .fields when spanning relationships

2007-06-21 Thread Matthew Nuzum
My goal is to get a list of unique countries referenced through a table. My model has: class Country(models.Model): Abbreviation = models.CharField(maxlength = 2, primary_key=True) Country = models.CharField(maxlength = 50) class TrainingEvent(models.Model): Country = models.Foreign

crosstabs

2007-06-28 Thread Matthew Nuzum
I've recently deployed my first non-trivial (by my standards) world accessible django app. Its not perfect. However, there comes a point when you just have to get'er done, and so it is. I bugged a lot of people on #django and got some good feedback, but just couldn't communicate my question well

Re: crosstabs

2007-06-29 Thread Matthew Nuzum
Just wondering if there's any additional information I can give that might help get some suggestions on this topic. I'd really love to get some advice. On Jun 28, 4:30 pm, Matthew Nuzum <[EMAIL PROTECTED]> wrote: > So here it is:http://webapps.ubuntu.com/course_locator/ >

Re: Mapping models to CRUD urls?

2007-07-20 Thread John Matthew
Russ, This is GREAT stuff, thank you so much. Since I'm so new to this web stuff, and django is really the only thing I've ever used for web programming, I hadn't gotten into the GET dictionary (or parameters as I call them). Given that, I assume that the cache will look at the http://.../model3

Re: Modify file.html widget

2008-01-15 Thread Matthew Miller
I believe that the file should reside in project_name/templates/admin/widget as I am customizing the admin templates in one of my projects, specifically base.html and it resides in project_name/templates/admin Refer to the documentation http://www.djangobook.com/en/beta/chapter18/ On Jan 15, 20

geodjango existing install question

2008-01-18 Thread Matthew Miller
I would like to install geodjango but have an existing django 0.96 installed on my devel server. The instructions for geodjango say check the svn then ln -s to /path/to/sitepackages/django. My question is will this in any way affect the current install. If I am running .96 of django and I install g

Re: Introductory Django Screencasts

2008-02-14 Thread Matthew Miller
this rocks. i especially like the #2 of the series as this helps my web development team; who dont know or care about python,.. thanks for the great screencast. On Thu, Feb 14, 2008 at 10:15 AM, Siddhi <[EMAIL PROTECTED]> wrote: > > Hi, I'm doing a series of basic intro screencasts for Django.

Re: Updating django forms makes me...

2008-04-27 Thread Matthew Miller
You could always download your project and work locally with some dummy data, using SQLite and use: python manage.py runserver. Upon deployment dont forget to switch the settings.py file back. notfound wrote: > 2008/4/27 James Bennett <[EMAIL PROTECTED]>: > >> On Sun, Apr 27, 2008 at 7:17

Django/Python Positions in San Diego

2008-05-14 Thread Matthew Haver
f you interested or can recommend someone that may be interested. Respectfully, Matthew Haver CIR ACIR CDR Senior IT Recruiter Yoh IT Know greater talent (R) 10251 Vista Sorrento Parkway Suite 150 San Diego, CA 92121 858.622.9005 x228 Office 858.922.4484 Mobile 858.922.9048 Fax *Click Here t

Re: models.autoCompleet (admin)

2007-02-26 Thread Matthew Flanagan
t > the name "New York"... I suppose autoCompleet is a ForeignKeyField... > > Enquest > > Hi, I've written a tutorial on doing this with dojo at http://code.djangoproject.com/wiki/AJAXWidgetComboBox. The only thing is I've never got t working within the Djang

Re: how to get all the objects in one model that are not foreign keys in another

2007-03-06 Thread Matthew Flanagan
should be obvious > > -- > > regards > kg > http://lawgon.livejournal.com > http://nrcfosshelpline.in/web/ > > > > > > -- matthew http://wadofstuff.blogspot.com --~--~-~--~~~---~--~~ You received this message because

Re: Django Stuff

2007-03-19 Thread Matthew Flanagan
here on your PYTHONPATH. There are > > complete instructions on the DjangoStuff track wiki, and in the code > > its self. You may need to modify some of the code in order to get it > > to work with your site. > > > > -Doug > > > > > -- matthew h

Re: Django Stuff

2007-03-20 Thread Matthew Flanagan
; site:http://www.djangosnippets.org/snippets/31/http://www.djangosnippets.org/snippets/32/ > > > > It is no where near as nice nor as comprehensive as the old django > > stuff abstract search interface, but it does get the job done in a > > pinch. > > > > -Doug

Re: Django Stuff

2007-03-20 Thread Matthew Flanagan
no attribute 'objects' > Exception Location: /var/www/test/stuff/search/helpers.py in > get_id_list, line 32 > > Sorry for all my questions which may be stupid :( > Thank you in advance for help > Which version of Django are you using? 0.95.x or trunk? there was a

Re: Django Stuff

2007-03-21 Thread Matthew Flanagan
de.djangoproject.com/changeset/3490 > > On Mar 20, 10:21 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> > wrote: > > On 3/20/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > here is my search.py > > > >

Re: tracking per-object-permissions branch, merging in from trunk, and fixing problems, adding features.

2007-03-22 Thread Matthew Flanagan
y one else working with these branch and interested in the results > of my attempts to keep it up to date with the mainline, as well as > some potential fixes? > I'm definitely interested in the results. Why don't you apply to get check-in permissions on the per-object-permis

Re: Can I write standalone Python app that uses Django auth, DB and models?

2007-03-22 Thread Matthew Flanagan
l Django api is available on the system then this kind of thing is difficult to prevent. > -- > > regards > kg > http://lawgon.livejournal.com > http://nrcfosshelpline.in/web/ > > > > > > -- matthew http://wadofstuff.blogspot.com --~--~-~--~~--

Re: Can I write standalone Python app that uses Django auth, DB and models?

2007-03-22 Thread Matthew Flanagan
On 3/23/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-03-23 at 14:14 +1100, Matthew Flanagan wrote: > > On 3/23/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > > > > > > On 23-Mar-07, at 6:22 AM, Mike Stoddart wrot

Re: Is it really this hard?

2007-05-15 Thread John Matthew
James, thanks for the quick reply! Ok, I like what you have there, but it doesn't solve the problem of when I want to edit an existing record, how do I use the customform? I guess I'm just missing something super simple here, no? I would think code like instance = objects.get(id=1) form = Order

Re: Is it really this hard?

2007-05-15 Thread John Matthew
Ah Ha, now we're getting somewhere! Let me start searching for that, thank you!! John On 5/15/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 5/15/07, John M <[EMAIL PROTECTED]> wrote: > > I wish the custom form option would allow me to bind to a data object, > > based on field names being

Re: Is it really this hard?

2007-05-16 Thread John Matthew
Thank you Grigoriy, It's given me some new ideas. John On 5/16/07, Grigoriy Petukhov <[EMAIL PROTECTED]> wrote: > > > John M wrote: > > I have checked the forum, and still can't believe I can't find a > > solution to what I perceive as a simple problem: > > > > I have two models: > > > > Custome

Re: Is it really this hard?

2007-05-16 Thread John Matthew
James, Thanks again so much. I think i tried the commit=False bit but it still didn't like my FK being blank for some reason. I'll have to look through the django source and double check. So, assuming my commit=false works, i should be able to say something like: form.clean_data['fk_id'] = fko

Re: Is it really this hard?

2007-05-16 Thread John Matthew
WOW, I hadn't seen that first one, and the second one is the 'standard' for most newforms replies, great work! Thanks again Michael. John On 5/16/07, Michael Trier <[EMAIL PROTECTED]> wrote: > > > These two posts gave me everything I needed to tackle these type of > issues: > > http://weblog.big

Re: Is it really this hard?

2007-05-16 Thread John Matthew
Wow, very cool, I didn't know that James! Again, thank you! I was trying obj.portfolio = portid and then obj.portfolio.id = portid < that was really bad according to django :-) J On 5/16/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 5/16/07, John M <[EMAIL PROTECTED]> wrote: > > p

Re: newbie problem: no django.core.management

2007-10-22 Thread Matthew Wensin
Make sure that /path/to/django/bin is in your $PATH and also that django is accessible through your /path/to/python/site-packages directory. Can you successfully run this: [EMAIL PROTECTED] python >>> import django ? Matt On 10/22/07 9:34 AM, "johannes" <[EMAIL PROTECTED]> wrote: > > Ok. A

Re: newbie problem: no django.core.management

2007-10-22 Thread Matthew Wensin
$ sudo updatedb $ locate django Look for: /path/to/django/bin/manage.py /path/to/django/bin/django-admin.py ... That /bin should be on your $PATH. If you feel comfortable with it, I recommend using SVN to check out the latest django development version: /wherever/you/want$ sudo svn co http://

Re: geodjango and MySQL

2007-10-25 Thread Matthew Wensin
I am flying along with plenty of polygons using GeoDjango and PostgreSQL. Not sure about MySQL, however. On 10/25/07 11:47 AM, "Greg_IAP" <[EMAIL PROTECTED]> wrote: > > does django works with spatial queries(PolygonField and > multipolygonField) when applications are developped to work with a

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Matthew Wensin
I've dealt with that exact error before, just yesterday, incidentally. What I did to fix: $ locate libpq.5 If this returns nothing, try running: $ sudo /usr/libexec/locate.updatedb And then $ locate libpq.5 again. Go to the directory containing libpq.5 (for me it was /usr/local/pgsql/lib, an

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Matthew Wensin
. I think the ports way is better. :-) > > Just my 2 cents. > > On 10/26/07, Matthew Wensin <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > wrote: >> >> I've dealt with that exact error before, just yesterday, incidentally. What >> I did to fix:

Re: Django Application Without Source?

2007-12-11 Thread Matthew Wensing
Jython. On 12/11/07 11:08 AM, "Hugh Bien" <[EMAIL PROTECTED]> wrote: > Ttry using pyobfuscate. It works really well with python 2.3 (run it using > python 2.3 and only use it on python 2.3 compatible code). > > - Hugh > > On 12/10/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: >> >> try ja

Re: Python 2.5 anyone

2006-09-19 Thread Matthew Flanagan
On 20/09/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 9/19/06, Ramdas S <[EMAIL PROTECTED]> wrote: > > Is anyone running Django dev version on Python 2.5? Will it work or are > > there any issues? > > Python 2.5 doesn't break or remove anything, it just adds some new > features. So it shoul

Re: Kate syntax highlighting for django html templates.

2006-09-23 Thread Matthew Marshall
I'd be glad to maintain it for kate! I just uploaded a new version. It highlights mismatched block/for/if/etc tags as errors. (Something I tend to do a lot.) I also changed the priority to 9, so that it doesn't compete for the html extention. (Sorry it took me so long to reply... I've been pr

Re: A view that looks up a model field

2006-10-01 Thread Matthew Flanagan
Hi Brad, Have a look at http://code.djangoproject.com/wiki/AJAXWidgetComboBox it seems to do most of what you are after. On 02/10/06, brad <[EMAIL PROTECTED]> wrote: > > Hello. I am trying to build a view to lookup a model field and return > an array based on the data sent to the view. The goal

Re: Re: AbstractSearching and django.core.extensions?

2006-10-18 Thread Matthew Flanagan
Hi Will, The patch I've submitted at https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/ticket/226 makes it work with .95 and later. regards matthew On 19/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > ok so im trying to update the code to work with .95 but ad

Re: Re: AbstractSearching and django.core.extensions?

2006-10-19 Thread Matthew Flanagan
the development version will fix your issue. regards mattthew On 20/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Matthew, > > this is the error I was talking about in the last post I made: > > Request Method: GET > Request URL:http://myip/concepti

Re: Re: AbstractSearching and django.core.extensions?

2006-10-19 Thread Matthew Flanagan
Will, Can you post your model and SearchDefinition for it? On 20/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am using the django trunk (updated roughly twice a week). When I do a > test server run(i usually use apache) it says pre-.96 so I think its > the dev version. In case this

Re: Re: AbstractSearching and django.core.extensions?

2006-10-20 Thread Matthew Flanagan
On 21/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > sure here is is: > - > conception.concept.models: > - > from django.db import models > > LEVEL_CHOICES = ( > ('A', 'Level A'), > ('B', 'Level B'), > ('C', 'Level C'), > ) > > class Con

Re: error: default date submitted as integer?

2006-11-14 Thread Matthew Flanagan
d'), default=models.LazyDate()) So Alex *is* seeing broken behaviour here as it relates to http://code.djangoproject.com/ticket/2993 where use of LazyDate was broken in changeset 3960. Alex, there is a patch attached to that ticket that reverts that checkin until the django devs get arou

Re: Re: Re: error: default date submitted as integer?

2006-11-15 Thread Matthew Flanagan
On 16/11/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 11/14/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > scroll down a little further on that page and you'll see that the User > > model has: > > > > last_login = mo

Re: PyLint problems

2006-11-15 Thread Matthew Flanagan
On 15/11/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > I've been running PyLint on my code and it has major trouble figuring > out what's legal and what isn't. Specifically, MyModelClass.objects is > always an error, even though the objects attribute exists, and similar > things happen with othe

Re: Re: Re: Re: error: default date submitted as integer?

2006-11-15 Thread Matthew Flanagan
On 16/11/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 11/15/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > You must be missing something: > > > > >>> from django.contrib.auth.models import User > > >>> u = User(username=&

Re: Re: Why is IPAddressField a char(15) instead of an int?

2006-12-17 Thread Matthew Flanagan
at functionality, you could post a ticket and/or a > suggested fix. > > Don > Django's use of Postgres' inet data type is bad. See http://code.djangoproject.com/ticket/708 for previous threads on this and where things start to break. Django should use char(15) or integers con

Re: Django+mod_python+fedora 6 (x86_64)+apache problem

2006-12-20 Thread Matthew Flanagan
evor Hi Trevor, Which apache version? Have you tried the simple modpython test at http://modpython.org/live/current/doc-html/inst-testing.html ? regards matthew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Re: Schema Evolution code

2006-12-28 Thread Matthew Flanagan
out it. Victor, have you got a ticket open with your patch? It would be worth opening one so that other people could try it out while you are waiting for commit access to be granted. regards matthew --~--~-~--~~~---~--~~ You received this message because you are

Re: Re: optional arg. 'description' for widget?

2006-12-30 Thread Matthew Flanagan
ily available to template designers without writing a custom template tag to extract it. I think it would be very useful if the newforms fields had the ability to display the help_text without having to resort to writing a custom tag. regards matthew --~--~-~--~~~---~--~-

Re: CRUD design question

2007-01-04 Thread John Matthew
Now you're talking!!! Thanks for that, it's exactly what I was thinking. Basically I am trying to make a system where you show a list of records, allow the user to view the record, edit the record or add a new one. Similar to the admin interface, but with only a view option, so in case your a 'p

Re: Empty related sets = Page not found?

2007-01-11 Thread John Matthew
Thank you for the reply. On 1/10/07, Brian Beck <[EMAIL PROTECTED]> wrote: > > > Hi, > > object_list takes an allow_empty argument, try settings it to True. > >From the docs: > > allow_empty: A boolean specifying whether to display the page if no > objects are available. If this is False and no ob

  1   2   3   4   5   6   >