Have you checked out PyCharm - also uses pydev but geared for python
and django aware. Is only in public alpha but I'm very impressed.
Phoebe.
On Apr 13, 1:07 am, Zbiggy wrote:
> Hi,
> maybe someone would be interested in:http://eclipse.kacprzak.org/
>
> I use Eclipse + PyDev, however Django ta
If you edit an item in admin, a files uploaded are displayed above the
input field. But if the model form is loaded with an instance, the
form seems unaware that there may already be an uploaded file. No
existing file is displayed and if the form is resaved, the uploaded
file link is lost.
Am po
I'm using the standard reset password option and all the other fields
are filled in but the {{new_password}} field is blank.
Here is the email:
You're receiving this e-mail because you requested a password reset
for your user account at nwlc
Your new password is:
Feel free to change this passwor
g
> obvious?
>
> On Thu, Apr 1, 2010 at 6:49 PM, phoebebright
> wrote:
> > That's one option, the problem is changing the course value returned
> > from the form into a course object so that the form will validate.
> > This turned out to be a surprising amount of
= {'course': course.pk})
>
> Nuno
>
> On Wed, Mar 31, 2010 at 8:06 PM, phoebebright
> wrote:
> > Final approach:
> > in the forms.py excluded the courses foreign key field
> > in models.py made courses blank and nullable
> > didn't pas
False)
obj.course = item
obj.save()
This doesn't feel very tidy to me, I think the form should have the
hidden values, but it works!
On Mar 31, 4:15 pm, phoebebright wrote:
> Brandon, Thanks for your suggestion.
> I tried passing it an ID, but as you say, I also have
e
> your save method to get the course object to assign when you save your
> CourseBook form, as you can't assign an integer (coming from your
> hidden form field) to the value of a ForeignKey field on a model.
>
> HTH,
> Brandon
>
> On Mar 31, 8:20 am, phoebebright wrote:
Displayed fields resolve as expected, hidden fields cause errors.
This works:
in the model
CourseBook has a foreign key to Course
In the view:
course = Course.objects.get(pk=whatever)
form = CouseBook(initial = {'course': course})
in the Form:
class CourseBook(ModelForm):
class Meta:
supposed to use
it everywhere? If so, why was it working in development?
Am running python 2.5.2 on both the production and development box.
Now totally confused
Phoebe.
On Feb 2, 12:12 pm, Gonzalo Delgado wrote:
> El 02/02/10 08:33, phoebebright escribi :
>
> > But fields is
Gonzalo, Double checked that one,
Checked all calls to a fields module (only 2) and I can import both
fine in the shell and I can see both in the list of files.
Any other thoughts?!
Phoebe.
On Feb 2, 12:12 pm, Gonzalo Delgado wrote:
> El 02/02/10 08:33, phoebebright escribi :
>
> >
This might be very timely. Have a new project that will require
subscriptions...
Thanks.
On Feb 1, 9:11 pm, Jason Ford wrote:
> We just released pychedder, an open source module for integrating
> CheddarGetter with Django and Python:
>
> http://www.feedmagnet.com/blog/cheddargetter-for-python-a
I've just uploaded my changes from development (1.2 alpha) to
production (1.1) and now getting this error on my ubuntu server. Done
a check around for missing __init__.py files but nothing obvious
missing - and was working on osx system.
[Tue Feb 02 11:11:45 2010] [error] [client 92.60.198.120] m
OK Found it.
Used this
from autoslug.fields import AutoSlugField
and had one autoslug field.
Autoslug not on the pythonpath and syncdb failed silently. Once I
took these out, normal service resumed. Phew!
Phoebe.
On Jan 28, 9:56 am, phoebebright wrote:
> It can see the app fine -
__name__="__main__": line
>
> You will also need to handle this in your wsgi file for deployment.
>
> Are you using "South"? If so, new tables for something you have
> migrated will not be built by syncdb.
>
> On Jan 27, 11:54 am, phoebebright wrote:
7;/Users/phoebebr/Development/tinyhq',
'/Users/phoebebr/Development/tinyhq/web',
'/Users/phoebebr/Development/tinyhq/libs',
'/Users/phoebebr/Development/tinyhq',
but symptoms remain the same.
What is going on?!
On Jan 27, 7:23 pm, Malcolm Box wrote:
> On Wed,
Maybe you should consider an alternative backend to SQL - which is
after all a relational database! CouchDB?
I could see queries being very expensive with your model.
On Jan 26, 10:08 am, Igor Rubinovich
wrote:
> Hi,
>
> I need an educated opinion on the following idea. It's supposed to
> prov
Not reading but after a year using Django I have just got myself setup
with Aptana + Pydev which includes an interactive debugger. I found
this very useful for understanding what is going on in Django behind
the scenes, and wish I'd made the effort to do it sooner!
On Jan 27, 1:14 am, kamilski81
I cannot find the reason why syncdb will not create tables from a
models.py.
It is quite happy to create the auth tables and ones from an external
app that is included in INSTALLED_APPS but it won't build the tables
from my 'web' folder.
I can put a print statement in the web.models.py and it app
Try this:
from datetime import date
today = date.today()
todays_stuff = Stuff.objects.filter(created_on = today)
On Oct 12, 10:07 pm, aa56280 wrote:
> I have a DateTimeField called "created_on" on a model called
> "Documents". It serves as a timestamp for when the record was added.
>
> I'm
Are there any django apps suitable for a events photographer who wants
to sell their photos online?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-u
Have spent quite a few hours on this one but not familiar enough with
django inerds to make much progress.
Here is the model:
class Stuff(models.Model):
name = models.CharField(max_length=140)
parent = models.ForeignKey('self', null=True, blank=True,
related_name='children')
mptt.regist
ously.
Time to do some strategic copy and paste.
Thanks for your interest.
Phoebe.
On Oct 1, 6:21 pm, phoebebright wrote:
> Karen,
>
> Am wanting to use the standard in django-microformats (with an s!) but
> want additional fields, so rather than change the models within
> microforma
r app, and maybe it shouldn't. I can do some more exploration,
but thought I would check I going in the right direction before
proceeding.
Phoebe.
On Oct 1, 5:04 pm, Karen Tracey wrote:
> On Thu, Oct 1, 2009 at 10:59 AM, phoebebright wrote:
>
>
>
> > I am trying to use use a
I am trying to use use a hCalendar model from django-microformats as
the base class for events in my own app,
microformat.models.py
class hCalendar(LocationAwareMicroformat):
...
class Meta:
abstract = True
web.models.py
class Event(hCalendar):
owner = models.ForeignKey(A
error messages again. What
was so frustrating was that no errors were being displayed in the
apache error log - I guess the check for middleware happens early in
django.
Thanks for your help.
Phoebe.
On Sep 23, 10:56 am, Graham Dumpleton
wrote:
> On Sep 23, 7:11 pm, phoebebright wr
Can anyone suggest where the problem might be for this one.
I am using wsgi and have a number of other django sites on this server
all running fine. Have recreated the subdomain on the server, have
copied the vhost.conf file from a site that works and changed the
appropriate names (several times
Karen,
Yes absolutely right. Thanks for rescuing me from own stupidity!
On Sep 21, 4:54 pm, Karen Tracey wrote:
> On Mon, Sep 21, 2009 at 11:49 AM, phoebebright
> wrote:
>
>
>
>
>
> > On Sep 21, 3:25 pm, Karen Tracey wrote:
> > Karen,
>
> > Spot on
Can you give a more detailed example of your code?
On Sep 21, 3:25 am, "Leonel Nunez" wrote:
> Hello:
>
> I'm using
>
> form.base_fields['MYFIELD'].widget=widgets.Select(choices=CA)
>
> to fill a tag, all works fine but I can't find how to add a
> SELECTED value, been with this issue all day
On Sep 21, 3:25 pm, Karen Tracey wrote:
> On Mon, Sep 21, 2009 at 10:05 AM, phoebebright
> wrote:
>
>
>
> > Have been stuck on this one for a couple of days so hoping for some
> > enlightenment from some more able django users. Am aware of the
> > 'go
Only a guess but maybe mixed case in WWlove is causing a problem?
On Sep 20, 10:50 pm, Jose Sibande wrote:
> Hi,
> I get this error in /var/log/apache2/error.log:
>
> [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError:
> Could not import settings 'WWlove.settings' (Is it on sys
The code looks like it only handles the case of adding a new foo
object but your comments refer to "old values". Are you also
expecting this to work for an update?
On Sep 21, 7:35 am, Szymon wrote:
> Hello,
>
> I have strange problem. I will give example. I have model:
>
> class foo(models.Mo
Have been stuck on this one for a couple of days so hoping for some
enlightenment from some more able django users. Am aware of the
'gotcha' where the model name matches and attribute or one of the Meta
values.
I am getting this when a form is instantiated with an existing object
- no problem if
but not in the way some newbies might
expect. Be great to write an app that looked for all these possible
errors - called "dont_do_that" maybe. If I had a spare 5 mins
Thanks so much.
On Sep 3, 12:39 am, Russell Keith-Magee
wrote:
> On Wed, Sep 2, 2009 at 11:38 PM, phoeb
And it's not a missing __init__.py program that I can see.
Am trying to move a site to a new server - CentOS to Ubuntu and
version of python are changing from 2.4.3 to 2.5.2 and using wsgi now
instead of mod_python.
I already have one django site running on the new server so the basic
setup is o
That would be it! Thanks for your prompt help - onwards
On Jul 28, 7:06 pm, Alex Gaynor wrote:
> On Tue, Jul 28, 2009 at 2:02 PM, phoebebright wrote:
>
> > I thought I was faithfully coping the tutorial, so don't understand
> > why I get this error.
>
> &
Don't have the whole answer, but google parsedatetime python library
which has some good utilities to extract dates from text. You can
then build the required queryset.
On Jul 28, 10:49 am, kimo wrote:
> Hi,
>
> Im new in using Django, and i want to know if there is some way to
> have a multipl
Be very interested in the answer too!
On Jul 28, 4:02 pm, cootetom wrote:
> I know why it's failing when I send it as an email. The django
> EmailMessage class will try to encode any text based attachment down
> to ascii. So any attachment containing characters out side of ascii
> can't be sent
I thought I was faithfully coping the tutorial, so don't understand
why I get this error.
Here is the code in the view:
@login_required
def edit_todo(request, todo_id):
task = Task.objects.get(id=todo_id)
if request.method == 'POST':
form = TaskForm(request.POST)
...
web/views.py in ()
4 from tagging.models import *
5 from tweetlog.models import TweetLog
> 6 from tweetlog.views import parse_tweet, autolink
7
8
ImportError: cannot import name parse_tweet
On Jul 20, 11:11 am, phoebebright wrote:
> My development environment
Is there a way to get this to work:
{% for tag in tags %}
{% tag_link
"{{tag.name}}" %}
{% endfor %}
The outer loop is using the standard tagging application and the
tag_link is my custom template tag which has a different url depending
on the type of tag
My development environment has just started behaving strangely. If I
cause an error, fix it and call the same URL again (not refresh, just
enter link) I get
ViewDoesNotExist: Could not import tweetlog.views. Error was: cannot
import name parse_tweet
The module and view are fine and if I go to
Send me an email and I will post back the forms I used. email username
as above plus spamcop.net.
On Jul 19, 6:08 pm, Asinox wrote:
> Hi guys, im trying to use the django-registration...im new with
> django, but i was thinking that maybe some templates are missing, like
> registration, login...
This post might help -
http://groups.google.com/group/django-users/browse_thread/thread/c84dbbac27c6fea2/cf6624cca547fe89?lnk=gst&q=admin+owner#cf6624cca547fe89
Not exactly what you want but might give you some ideas.
On Jun 11, 7:36 pm, "Sergio A." wrote:
> Hello,
>
> in this blog post:
>
> htt
% endblock %}
What do you think?
On Jun 11, 4:34 pm, Jashugan wrote:
> On Jun 11, 8:03 am, phoebebright wrote:
>
> > I have spent a good deal time researching this online and in this
> > group but can find no clear answer.
>
> I think the reason why is that it depend
I have spent a good deal time researching this online and in this
group but can find no clear answer.
Generally, I can either use generic views and write a template for
each model to list/view/update/delete or I can use admin and do a
filter to only show a particular person's entries.
My instinc
Just finished reading this book and found it really helpful as a
newbie to both Python and Django. The things I really liked about
this book:
- assumes I know very little
- intro to python programming just the right level of detail for me
- tutorials include plenty of real code examples
- gotchas
I am selecting the following in a queryset
.values
('id','who__name','who__name_slug','when__from_time','when__to_time')
but the field names are a bit clunky. Is there a way of doing the
equivalent of
.values
('id','who__name','who__name_slug','when__from_time','when__t
Have a client looking to add special 1euro night offers on local
hotels. Have googled extensively for any site offering to manage the
issuing of vouchers/coupons but can only find sites issuing coupons on
behalf of others. If there is not such service, is there an opening
for doing a django one?
Have been at this now for some hours and still can't see the wood for
the trees. Failed to get two signals working - one called on pre_save
to keep an audit trail of one field on a model (didn't implemenet the
Audit.py version in the wiki as more complex than I needed). The
other to create some
Masklinn,
Thanks. I see what you mean about being bored! But that's a big step
forward for me.
As a PHP convert to Django/Python, I'm looking for the equivalent of
print_r
On May 9, 4:31 pm, Masklinn wrote:
> On 9 May 2009, at 16:37 , phoebebright wrote:
>
> > Not looki
Just a postscript to this - this will fail if the field being left out
is a required field. The admin form will show an error but as the
field is missing you will not know what the error is. I think with
the new hidden_fields option, this will be a workaround.
On Apr 23, 8:20 pm, phoebebright
Not looking for a discussion on debug methods, just want to know if
there is any way to print an object.
eg. print myobject OR pprint.pprint(myobject)
just says something like
And unless I know the structure of the object I can't access the
values.
I'm probably going to get a blasting for
is not filled in, but
because owner is not on the form there is nowhere to display it!
Mystery solved.
So now trying to work out how to pass the owner info to the admin
form. Tried hidden_fields, but this not available in version 1.0 of
Django.
On May 9, 9:18 am, phoebebright wrote:
>
#x27;inline_admin_formsets': [],
'is_popup': False,
'media': '\n\n\n\n\n\n',
'object_id': u'86',
'opts': ,
'ordered_objects': [],
'original': ,
'root_path': u'/admin/',
'save_as': False,
's
I have almost implemented a row level permissions facilitiy for a
model in my app.
I can change the owner of the record
Display only their records in admin
But when logged in as the owner and click Save on the edit screen I
get the error "Please correct the error below." but no indication of
what
> can override) in django/contrib/admin/options.py.
>
> On Thu, Apr 23, 2009 at 3:32 AM, phoebebright wrote:
>
>
>
>
>
> > Zain,
>
> > Thanks for responding.
> > I would really prefer not to show the field at all - I don't want
> > ordinar
current
> user has permission to change the owner.
> Take a look athttp://www.b-list.org/weblog/2008/dec/24/admin/to see an
> example.
>
> On Thu, Apr 23, 2009 at 1:37 AM, phoebebright wrote:
>
>
>
>
>
> > I have a model with an owner field that I only want a superus
I have a model with an owner field that I only want a superuser to be
able to change. I can't change the list of fields in form in admin.py
because there is not request.user to test at that time. If I were
using custom templates I could put it in the template, but would
rather stick to the stand
I like YUI and that has lots of menu possibilities -
http://developer.yahoo.com/yui/menu/
On Apr 8, 5:43 pm, nixon66 wrote:
> Anyone have a good example of using a pull down menu in a Django
> template. I've just finished working through search forms, but
> couldn't find any examples of a pull
Rajesh,
That make perfect sense. Thank you so much.
Phoebe.
On Apr 3, 8:18 pm, Rajesh D wrote:
> On Apr 3, 12:59 pm, phoebebright wrote:
>
> > I implemented syncr (http://code.google.com/p/django-syncr/) quickly
> > and easily but have one strange problem. I can disp
I implemented syncr (http://code.google.com/p/django-syncr/) quickly
and easily but have one strange problem. I can display thumbnails but
not the full size image. But if I copy the URL in the src tag into
the browser, I see the image perfectly!! How is this possible?
For example, this is fine
Took me a long long time to work out why the .kml file I created in
django would parse as valid in Feedburner but googlemaps said it was
an invalid kml file. Need to be sending as correct content-type of
course.
In case anyone else is stuck, here is how I did it:
template
---
http://ea
x27;t it?).
On Feb 18, 8:23 pm, Colin Bean wrote:
> On Wed, Feb 18, 2009 at 10:50 AM, phoebebright
>
>
>
> wrote:
>
> > The javascript makes a call to this view on submitting the form that
> > uploads the image.
>
> > def uploadimage(request
Glad it's sorted!
On Feb 19, 10:58 am, zegerman wrote:
> Thx Phoebe,
>
> but it wasn't the path.
>
> u have to change the admin.py
> from
> widgets.JS_URL,
> to
> widgets.tinymce.settings.JS_URL,
>
> source:http://groups.google.com/group/django-cms/browse_thread/thread/88dfe2...
>
> On 18 Feb.,
to port to YUI. There are a
> couple of JS issues that I've had to fix with this, but otherwise, it
> works very well.
>
> Regards,
> Brandon
>
> On Feb 18, 8:33 am, Almost George
> wrote:
>
> > On Feb 18, 5:36 am, phoebebright wrote:
>
> > >
o
control doesn't return to the javascript. Have applied a similar
program in PHP and it works fine. Tried different mime types and tried
to trace what is going on but without progress.
Phoebe
On Feb 18, 2:33 pm, Almost George
wrote:
> On Feb 18, 5:36 am, phoebebright wrote:
>
>
09/2/18 phoebebright :
>
>
>
> > I have now spend 5 solid days trying to get any WYSIWYG editor with an
> > image upload working in django with no success. Current status:
> > This must be solveable!!!
>
> > Any suggestions very welcome at this stage.
>
> I suggest
I have now spend 5 solid days trying to get any WYSIWYG editor with an
image upload working in django with no success. Current status:
YUI - works in Firefox/Mac not in IE. The image upload is happening
but the response is being interpretted by IE as a download so control
does not return to jav
Alex,
That's the one. And it works!
Just for once it wasn't my fault - and I can go to bed (it's after
midnight, again).
Thanks so much for that.
Have a good day/evening/morning...
Phoebe.
On Feb 12, 12:04 am, Alex Gaynor wrote:
> On Wed, Feb 11, 2009 at 7:02 PM, pho
If you downloaded using svn then it is in trunk/docs which is at the
same level as trunk/django not inside it.
On Feb 11, 11:59 pm, Tim Johnson wrote:
> On Wednesday 11 February 2009, Alex Gaynor wrote:
>
> > Every django tarball or svn checkout includes a docs/ dir that has the full
> > docs
9765
Checked out revision 9824.
And dates are Feb 2
Any suggestions?
On Feb 11, 11:32 pm, Alex Gaynor wrote:
> On Wed, Feb 11, 2009 at 6:30 PM, phoebebright
> wrote:
>
>
>
>
>
> > I thought I had a custom widget which would allow images to be dele
I thought I had a custom widget which would allow images to be deleted
working and was dead chuffed (http://groups.google.com/group/django-
users/browse_thread/thread/ebf646208fa8880f/c22f87e85b5d78ef?
lnk=gst&q=admin+image#c22f87e85b5d78ef) but unfortunately it doesn't
work. I have spent the who
Karen,
Spot on! Changed field name to directory and all is well.
Thanks so much.
Phoebe.
On Feb 11, 8:57 pm, Karen Tracey wrote:
> On Wed, Feb 11, 2009 at 3:19 PM, phoebebright
> wrote:
>
>
>
> > Karen,
>
> > Have done a stripped down version and still ge
, but for some reason it is not called in this case. May return
to this problem when I am more experienced with django...
On Feb 10, 7:10 pm, phoebebright wrote:
> I'm pretty sure I have all the paths correct because the TinyMCE/
> Filebrowser works ok on firefox mac, just not on any ot
ce holding - I really need to know to try and
work out why my custom widget isn't working, otherwise I'm going to
have to post yet another problem to this user groups, and I'm getting
a bit emabarresed at the number of posts I'm making :~)
On Feb 11, 9:22 pm, phoebebright wrot
llant Intro. Have I missed something?
Phoebe.
On Feb 11, 8:45 pm, Lee Braiden wrote:
> 2009/2/11 Karen Tracey :
>
> > On Wed, Feb 11, 2009 at 3:01 PM, phoebebright
> > wrote:
>
> >> I need to see the contents of some objects that are passed as
> >> paramete
wrote:
> On Wed, Feb 11, 2009 at 1:36 PM, phoebebright
> wrote:
>
>
>
>
>
> > I am following the instructions at the bottom of this page
>
> >http://docs.djangoproject.com/en/dev/topics/db/models/#inheritance-an...
> > and here
> >http:/
I need to see the contents of some objects that are passed as
parameters into a function. I can stop the function (assert false)
and look at the traceback, but it doesn't tell me the contents of the
objects. I have tried print statemnts, pickle and pprint. I don't
want to stray into the methods
I am following the instructions at the bottom of this page
http://docs.djangoproject.com/en/dev/topics/db/models/#inheritance-and-reverse-relations
and here http://docs.djangoproject.com/en/dev/ref/models/fields/#onetoonefield
I have a parent class Directory and a child classes Business, Tourism
es. that way you
> can leave most of the default paths in the settings.py file and it
> just works out of the box.
>
> On Feb 9, 4:39 pm, phoebebright wrote:
>
> > Have been trying to get a RTE plugin working that will allow upload of
> > images. The YUI verion is almost
That makes sense. I'll just create a different admin for each model.
Thanks.
On Feb 10, 4:36 am, Karen Tracey wrote:
> On Mon, Feb 9, 2009 at 5:18 PM, phoebebright wrote:
>
>
>
>
>
> > Yes I see that, it's just if I don't put the custom form in it wor
Have been trying to get a RTE plugin working that will allow upload of
images. The YUI verion is almost there but will not play well with
browsers.
The plugin from here
http://allmybrain.com/2008/11/06/example-yui-image-upload-with-yui-260/
I modified to get Javascript to make an asynchronous c
]
admin.site.register(Business,DirectoryAdmin)
It suggest to me there is something in the admin code which normally
allows for this 'error' to pass. It's not a big deal, I just wondered
if it was somthing django should allow for and the design of the two
examples is inherantl
In case this helps anyone, here is one implementation I have 4
pictures attached to each record but would work the same if only one.
Uses sorl-thumbnails and based on snippet here:
http://www.djangosnippets.org/snippets/934/
written by baumer1122
In models.py
-
used standard mo
I have implemented this solution successfully with a standard model,
but when I try to use it on one which is subclassed I get an error
because it is trying to validate the model before it knows about the
subclass. I can work around this by defining an Admin class for each
of the subclasses, but
Model:
class Car(models.Model):
... lots of fields ...
pic1 = models.ImageField(blank=True, upload_to='pics')
pic2 = models.ImageField(blank=True, upload_to='pics')
pic3 = models.ImageField(blank=True, upload_to='pics')
pic4 = models.ImageField(blank=True, upload_to='pics')
I
Here is my model:
class Directory(models.Model):
name = models.CharField(max_length=60)
class Business(Directory):
anyfield = models.CharField(max_length=60)
class Gallery(models.Model):
directory = models.ForeignKey(Directory),
pic = models.ImageField(upload_to='pics')
This
Fri, 2009-01-30 at 07:46 -0800, phoebebright wrote:
> > Using your suggestion returns no values:
>
> Then there is something else going on in your code that is important and
> you haven't mentioned yet.
>
> If I use exactly the models you give:
>
>
>
> >
that Business
is subcalssed to Directory like this:
class Category(models.Model):
name = models.CharField(max_length=12, unique=True)
description = models.TextField()
class Subcategory(models.Model):
category = models.ForeignKey(Category)
name = models.CharField(max_lengt
_live=True).select_related().order_by('order')
else:
pages = False
context['pages'] = pages
return ''
On Jan 29, 3:22 pm, phoebebright wrote:
> You understood perfectly. It was just another case of my not
> understanding the
ort connection
cursor = connection.cursor()
cursor.execute("SELECT DISTINCT sc.name, sc.id FROM town_%s td,
town_subcategory sc WHERE td.cat_id = sc.id", [for_cat])
subcats = cursor.fetchall()
Any further thoughts most welcome!
On Jan 29, 3:48 pm, Almost George
wrote:
> O
You understood perfectly. It was just another case of my not
understanding the documentation. Your explanation makes perfect
sense.
Many thanks.
On Jan 27, 6:45 pm, Eric Abrahamsen wrote:
> On Jan 28, 2009, at 1:52 AM, phoebebright wrote:
>
>
>
>
>
> > I have dupl
I want a distinct list of all the 'cat__names' that exist in
Subcategory and have at least one entry in Business (Business is a
subclass of model Directory which might be the problem)
dir_query = Business.objects.all().select_related().distinct()
...
subcats = dir_query.values('cat__name','cat').
You might also check,
You have DEBUG = True in settings.py
And have permissions set on the photo directory
And have something in urls.py file to point to the photo directory
On Jan 27, 1:58 pm, Akhmat Safrudin wrote:
> dear list,
> i am a noob,
> i just starting a project, then create app and ad
I have duplicated as best I can the processing for handling variables
in custom template tags mentioned in an earlier post but it's not
working for me as I need the value of the variable before I parse it.
Is there another way of making the variable available?
The tag is being called from the tem
Karen,
Yes have models in same directory as settings - bad girl!
Thanks.
Phoebe.
On Jan 26, 1:37 pm, Karen Tracey wrote:
> On Mon, Jan 26, 2009 at 8:03 AM, phoebebright
> wrote:
>
>
>
>
>
> > Am I blind?
>
> > I am getting this error in the shell, but
Am I blind?
I am getting this error in the shell, but no obvious errors when using
the browser interface.
>>> from models import Business
Traceback (most recent call last):
File "", line 1, in ?
File "/home/django/towns/models.py", line 8, in ?
class Category(models.Model):
File "/usr/
and manually reassign choices to given
> field every time form is created.
>
> def __init__(self, *args, **kwargs):
> super(MyForm, self).__init__(*args, **kwargs)
> self.fields['carmake'].choices = Carmake.get_makelist()
>
> On Fri, Jan 23, 2009 at 3:20 PM, phoebebright
Have been reluctant to post on this one as have come across many many
discussion during the 3 days of lack of success on resolving this
issue, but none has left me with a solution.
I have a form with a dropdown generated from a query.
This is in the form:
carmake = forms.ChoiceField(choices=
I managed to set debug to false and spend an hour trying to understand
this error:
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/template/defaulttags.py", line 880, in
load
(taglib, e))
TemplateSyntaxError: 'openid_tags' is not a valid tag lib
1 - 100 of 124 matches
Mail list logo