Jorge, muchas gracias!
I have not got as close as a mile from manipulators yet, even though
they look pretty cool. I'll certainly save your code around for later.
Who would have thought my code was not that off-track as I thought! =)
Anyway, a big thank you for the time you took to write this,
I can run django under winpdb with no problem but I can't figure out how to
do a set_trace() which makes the winpdb active. pdb.set_trace() makes pdb
active in a text window. I'd love to make it make winpdb active instead.
Anyone make this work?
I'd also like to know how to get it (winpdb) to
> Now my only remaining hurdle ( db migration was surprisingly easy! ) is
> those admin media files. I notice you have
>
> alias /media/ /home2/bmg/django/django/contrib/admin/media/
>
> and that you have loaded the alias module from
> loadmodule alias_module /etc/httpd/modules/mod_alias.so
>
> in your apache config do something similar to
> http://svn.zyons.python-hosting.com/trunk/zilbo/conf/zyons.conf.tmpl
>
> and that will let the apache handle the 'images' area of your site
> instead of django.
>
> On 14/07/2006, at 12:02 PM, Iain Duncan wrote:
Thanks Ian, got them working.
iServicePro is an innovative approach to offering affordable tools for
Java and J2EE developers. in particular, we are a professional team for
applying oneself to develop and integrate eclipse plug-in for user
applications.
Our mission now is to deliver business value and to maximize
developers'
On Thu, 2006-07-13 at 22:03 -0500, Chris Moffitt wrote:
> I'm using the recipe here
> (http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic)
> for a category model. It's working well for the most part.
>
> I am getting a little stuck trying to figure out how to turn it into a
I'm using the recipe here
(http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic)
for a category model. It's working well for the most part.
I am getting a little stuck trying to figure out how to turn it into a
vertical navigation structure. I've looked at
http://code.djan
Hi Iain.
in your apache config do something similar to
http://svn.zyons.python-hosting.com/trunk/zilbo/conf/zyons.conf.tmpl
and that will let the apache handle the 'images' area of your site
instead of django.
On 14/07/2006, at 12:02 PM, Iain Duncan wrote:
>
> I'm setting up a sight on webfa
On 7/13/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> Sweet! Thanks for sharing that. :)
Last I checked, there were five Django-powered projects in there. It's growing.
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
--~--~-~--~~-
I'm setting up a sight on webfaction, and so far things are coming along
ok, but I can't figure out how to serve images. I've never used a shared
hosting setup that didn't have a directory called 'public' or 'htdocs'.
Has anyone on here used them? Any tips on where I need to put media and
what I n
On 14-Jul-06, at 12:01 AM, Jason Murray wrote:
> TypeError: int argument required
put int(value) around all your int values, or refer to int values by %
s and put a str() around them
--
regards
kg
http://lawgon.livejournal.com
http://avsap.org.in
--~--~-~--~~~
On 13-Jul-06, at 11:06 PM, Jorge Gajon wrote:
> But I'm totally wrong there. Your original code should be fine,
> because you were chaining the filters. The 'extends' is not necessary
> and in fact it is wrong.
you scared me a bit there ;-)
--
regards
kg
http://lawgon.livejournal.com
http://
On 7/13/06, Paulo <[EMAIL PROTECTED]> wrote:
> This is slightly OT, and I apologize if this has been posted already,
> but I thought it was pretty darn cool... In 60+ entries (already) I've
> seen reference to *three* different posts where people were working
> with django. Check it out <
> http:/
On Thu, 2006-07-13 at 10:48 -0400, Jason Murray wrote:
> I'm reposting this because I was told my last post got lost in an existing
> thread. Sorry about that.
>
> I figured out my syncdb question. It turns out that as long as the model is
> defined correctly things go well. And the output from
On Thu, 2006-07-13 at 21:54 +0800, Russell Keith-Magee wrote:
>
>
> On 7/13/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
>
> Argh, bad news. Actually I asked the question because I'd like
> to use custom
> SQL in a 'limit_choices_to' option, in the admin inter
This is slightly OT, and I apologize if this has been posted already,
but I thought it was pretty darn cool... In 60+ entries (already) I've
seen reference to *three* different posts where people were working
with django. Check it out <
http://www.cameronmoll.com/archives/001045.html >.
--~--~---
On 7/13/06, Jason Murray <[EMAIL PROTECTED]> wrote:
>File "/home/jmurray/prfa/../prfa/standings/models.py", line 88, in __str__
> return "%s: %i (%i)" % (self.game.datetime.strftime("%Y-%m-%d"),
> self.game.away.number, self.away_runs)
> TypeError: int argument required
This is happening
thanks for the response eas. I have seen and tried to install some of
the django blog apps people have shared but without success (so far). I
guess the message here is that there is just no way around setting some
time aside to sit down and learn how the pieces go together, that it is
not for end
On 7/13/06, keukaman <[EMAIL PROTECTED]> wrote:
> {% free_comment_form for blog.entry object.id %} is highlighted as an
> error in the template.
Based on the settings file here:
http://code.djangoproject.com/svn/djangoproject.com/django_website/settings.py
They're using the django.contrib.commen
Yes it's me again :)
Anyway I've populating my Models with __str_ methods. I've only had on
hicough.
Here is the model in question:
class Result(models.Model):
ID = models.IntegerField(primary_key=True)
home_runs = models.IntegerField("home team runs", null=True, blank=True)
away
Hi,
You are calling manipulator.do_html2python() before the call to
get_validation_errors()
The correct thing is to call do_html2python() after you have validated
the data and there are no errors.
It should look like this:
errors = manipulator.get_validation_errors(new_data)
pri
Hi again Carlos,
I suggested this change in your code:
> results = Vozilo.objects.all()
> if selected_model_id != 0:
> results = results.filter(model_id__exact=selected_model_id)
> if selected_gorivo_id != 0:
> results.extend(results.filter(gorivo_id__exact=selected_go
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I have an integer in my model:
rating= models.IntegerField(null=true, blank=true)
And I create my Add form for the class like as described in the
manipulator doc with a manipulator[1]. As expected, { form.rating }
creates an input field. How
Hi David,
birrafondaio wrote:
..
> raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
> module: cannot import name ImmutableSet
> ---
>
> I already searched for people with similar pr
Hi all, I`m just starting to use Django and I`m trying to install it on
my Fedora Distro but when i try to sync the db with "python manage.py
syncdb" I keep on getting this traceback:
-
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manager(se
Hi Carlos,
I think your code is going good so far. Of course I'm not a guru but I
think your code is fine. Is there something that you don't feel
comfortable with? With respect to adding the results of both filters,
you need to extend the results of the first results (if any), like
this:
res
I get an attibute error and a template error when I try to view the
detail of a post:
'NoneType' object has no attribute '_default_manager' is the attribute
error.
{% free_comment_form for blog.entry object.id %} is highlighted as an
error in the template.
Can you give me some idea of where to
On 13-Jul-06, at 8:02 PM, Carlos Yoder wrote:
> There must be a better way of doing this, right? I'm a terrible newbie
> both at Python and Django --and I'm not a kid anymore, so no more time
> to spare hitting my head on walls :-)
i have done more or less the same thing - yet to try it out tho
On 7/13/06, bayerj <[EMAIL PROTECTED]> wrote:
> If I point Safari to the url, I get a "Don't understand content" error.
> Camino just saves the file to the download folder. The structure and
> everything of the file ( := the feed) is as intended. But I want Safari
> and Camino and all the other br
www.no-ip.com
!
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I have not static ip :(
>
>
> >
>
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi, all!
>
> Can anybody give me hosting for my django project for a week?
I assume you've seen this:
http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
Failing that, I'm sorry... I don't have a proper dev environment to share.
[EMAIL PROTECTED] wrote:
> I have not static ip :(
http://www.dyndns.com/services/dns/dyndns/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
I'm reposting this because I was told my last post got lost in an existing
thread. Sorry about that.
I figured out my syncdb question. It turns out that as long as the model is
defined correctly things go well. And the output from syncdb will help you
with any trivial troubles you might have wit
I have not static ip :(
--~--~-~--~~~---~--~~
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 P
On 13 Jul 2006, at 2:37 pm, bayerj wrote:
>
> Hi group,
>
> I implemented a feed as described in
> http://www.djangoproject.com/documentation/syndication/.
>
> The source can be found here: http://paste.e-scribe.com/703/
>
> The url configuration is:
>
> (
> r'^feeds/(?P.*)/$',
>
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I can't meet with customer, project must be shared.
>
Give him your IP. ;-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Hello people, my ongoing adventures in firstdjangoappland continue thus:
I'm putting together a simple search app for a car project. On entry,
user sees a list of 5 random cars. He can use up to two comboboxes to
filter the results (car model and fuel type).
This is what I've come up with on my
Hi all, I was trying to set up Django on Archlinux with MySQL, and I'm
running without problems.
I have post "Setting up Django on Archlinux with MySQL backend" on my
blog http://laitsas.com/lighttpd/49/django_archlinux/
I hope it helps someone :-)
--~--~-~--~~~---~--
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi, all!
>
> Can anybody give me hosting for my django project for a week?
>
> I need to show my project to my customer tomorrow but i can't take
> hosting for it now.
>
> Thanks.
>
Perhaps you could take advantage of some hosting provid
I can't meet with customer, project must be shared.
--~--~-~--~~~---~--~~
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 g
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi, all!
>
> Can anybody give me hosting for my django project for a week?
>
> I need to show my project to my customer tomorrow but i can't take
> hosting for it now.
In a pinch, the built-in dev server might save you for a demo:
/you
On 7/13/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
>
> > http://packages.debian.org/unstable/python/python-imaging
> > ?
>
> Don't think so. I don't have root access to my box in Bluehost. Can
> anythone think of an alternative, short of telling support to install
> it themselves?
I may be wrong
On 7/13/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
Argh, bad news. Actually I asked the question because I'd like to use customSQL in a 'limit_choices_to' option, in the admin interface. I can't figurehow to proceed, since this option only takes a dictionary of lookup
arguments, or Q objects.
Hi, all!
Can anybody give me hosting for my django project for a week?
I need to show my project to my customer tomorrow but i can't take
hosting for it now.
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi group,
I implemented a feed as described in
http://www.djangoproject.com/documentation/syndication/.
The source can be found here: http://paste.e-scribe.com/703/
The url configuration is:
(
r'^feeds/(?P.*)/$',
'django.contrib.syndication.views.feed',
{
Hi,
I'm trying to resize an image automatically after the upload. Maybe
Django should have this by default, but until there I'll try myself...
I got it working sucessfully, but I don't know if this is the best way,
the image is processed every time I save the object, it should be done
only on ne
hi,
(yes, i know that the devel-server does auto-reload)
i'm using apache with fastcgi with flup with django.
is there a way to somehow have my source-code changes cause a reload?
(so that i do not have to restart the fastcgi server (or apache) after
every source-code change?)
thanks,
gabor
I solved it!
The problem was because I was trying to sort by a field that was not
listed on Admin.list_display
Updated code:
class Model(models.Model):
opis= models.CharField(maxlength=50)
znamka = models.ForeignKey(Znamka)
def __str__(self):
>> class Item(models.Model):
> > name = models.Charfield(maxlength=100)
> > user = models.ForeignKey(User)
> >
> > def get_user_name(self):
> > return self.user.name
> >
> > class Admin:
> > list_display = ('name', 'get_user_name')
>
>
> One more thing, if you don't mind. The documentation, and your
> context_processors.py show in the myapp directory. Can that file be in
> "mysite", rather than "myapp" so I don't have to repeat it for
> application I make?
>
Yep that'll work. You can put the context_processors.py file whereve
What about autocomplete functionality there? Try to integrate this one
into your system:
http://code.djangoproject.com/wiki/AJAXWidgetComboBox
Regards,
Aidas Bendoraitis [aka Archatas]
On 7/12/06, Mike <[EMAIL PROTECTED]> wrote:
>
> So here's the deal. I have Menus and MenuItems:
>
> class Menu
Sean Perry wrote:
> > Don't think so. I don't have root access to my box in Bluehost. Can
> > anythone think of an alternative, short of telling support to install
> > it themselves?
>
> Technically all PIL is needed for is determining height, width and what
> not of the image. If you do not need
Aidas, thanks for the great tip!
I'll get cracking.
Best regards,
On 7/13/06, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
>
> Carlos,
>
> If you need to get started quickly, you can use FileField instead of
> ImageField, so the PIL won't be necessary. The requirements of the
> uploaded image m
On Thursday 13 July 2006 01:33, Russell Keith-Magee wrote:
> On 7/12/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
> No. Q objects do not support custom SQL - they are just wrappers that can
> be used to wrap groups of keyword search parameters (e.g.,
> article__name__contains='foo') so that the
Carlos,
If you need to get started quickly, you can use FileField instead of
ImageField, so the PIL won't be necessary. The requirements of the
uploaded image may be written in help_text. Maybe some validation of
the image width and height can be done using Javascript. I'm not sure
about that, yo
I already have lots of static files in my lighttpd web server, so I'd
like it to only talk to the django server if it can't find what it's
looking for. So I'd like use error-handler-404 directive to do that
thing.
In django official document, it use url-write method to talk to django
server. Is is
arnodel wrote:
> Hi everyone,
>
> I am trying to get to grips with django and so far I find it wonderful!
> But I am stuck on the following problem, which I have tried to make a
> test case of below (see models.py). The problem is that when I try to
> add a new parent with some children, then I
Hey Steve, seems like I'm not the only one struggling with Django+Bluehost.
If you manage to get ImageFields running on your models, let me
know... I can't make PIL work.
Regards,
Carlos
On 7/13/06, Steve <[EMAIL PROTECTED]> wrote:
>
> Nevermind, I figured it out. Gosh I get smarter just by w
>> Don't think so. I don't have root access to my box in Bluehost. Can
>> anythone think of an alternative, short of telling support to install
>> it themselves?
> Technically all PIL is needed for is determining height, width and what
> not of the image. If you do not need it or can ask the user,
Carlos Yoder wrote:
>>> Is there a way around PIL? Can Django use another kind of library? If
>>> not, has anyone got around this? Maybe by getting a precompiled Linux
>>> PIL?
>
>> http://packages.debian.org/unstable/python/python-imaging
>> ?
>
> Don't think so. I don't have root access to my
On 13-Jul-06, at 12:13 PM, Carlos Yoder wrote:
> Don't think so. I don't have root access to my box in Bluehost. Can
> anythone think of an alternative, short of telling support to install
> it themselves?
tell them - PIL is such an integral part of all python programs that
python hosting is
61 matches
Mail list logo