New invented car options
http://dream-cars.bravehost.com
--~--~-~--~~~---~--~~
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 t
On Thu, 2007-10-25 at 23:25 -0700, AniNair wrote:
> Cannot internationalize them?
It's generally considered polite to wait a bit more than 16 hours before
posting a "hurry up" repost when nobody has responded.
There is no core Django support for translating content stored in the
database. Do a g
Cannot internationalize them?
--~--~-~--~~~---~--~~
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 [E
On 26-Oct-07, at 10:49 AM, Robert Bunting wrote:
>> so is this a legacy database - meaning a database which had data
>> before you upgraded to unicode django? In that case, we have seen in
>> postgres that the old data is b0rked and needs to be reentered,
>> otherwise it wont work. You need to e
Me too, I can't get this to work and it's driving me crazy. My main
problem seems to be that Django is looking inside the Django site
package within my Python framework for the media (when I try to load
an image directly, for instance, it tells me "Page not found: /Library/
Frameworks/Python.frame
AsianAirfares.com Beats Closest Competitor 6 Out of 10 in
International Travel Comparison
AsianAirfares.com Beats Closest Competitor 6 out of 10 in
International Travel Comparison (Car Rentals, Hotels, Air Tickets,
Cruises).
New York, NY, October 24, 2007 --(PR.com)-- AsianAirfares.com,
http:/
On Oct 24, 10:27 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> so is this a legacy database - meaning a database which had data
> before you upgraded to unicode django? In that case, we have seen in
> postgres that the old data is b0rked and needs to be reentered,
> otherwise it wont work.
> Well, I have another server available now ;)
And you're using it for serving static content I hope? Your previous
setup with Apache serving everything with KeepAlive off can bring many
a server to its knees. If you serve a html page with for example 30
css, js and image files, you make a single
Hi,
I'm using the django.views.generic.list_detail.object_list generic view
because of the handy pagination. However, I need to have the user
accessing the page to be authenticated first. Is there any other way
than doing the check on the template? Thanks very much.
Mike
--~--~-~--~--
Well the more skills you have as a programmer... the more work is
available to you... but also the more skills you have...the more you
expect to be paid.
Someone that knows only PHP ... or only knows Flash Actionscript,
etc shouldn't expect to get paid as much as a developer who is
knowledgea
Actually, yea I'm using mod_python right now.
On Oct 25, 10:25 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Oct 26, 11:15 am, Roboto <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I'm trying to stop people from uploading like 3mb images and crashing
> > the server. I think, think, t
That's true, I didn't think about this at first - it's difficult to
make it as a programmer with market dilution.
On Oct 25, 10:38 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> Speaking as someone who's tried their hand at both sides of the coin,
> I definitely agree with you, Ross. I'm current
Speaking as someone who's tried their hand at both sides of the coin,
I definitely agree with you, Ross. I'm currently employed, but when I
was trying to make it as a contractor (because a job fell through), I
couldn't land a single job because of the market dillution. Working in
PHP as I was, I f
>> TypeError: argument of type '_QuerySet' is not iterable
> So what is dir(User.objects.filter(...)) telling you? Does it have an
> __iter__ method? Does it look at all like a QuerySet? What version of
> Django and pysopg2 are you using?
I'm using Django Development and Psycopg 2.0.6.
Here's t
On Oct 26, 11:15 am, Roboto <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm trying to stop people from uploading like 3mb images and crashing
> the server. I think, think, that to some degree my limiters are
> working. In my apache config I've set LimitRequestBody 307200. That
> should be about 30
I am building a site in which there are many users, who will have
there own mini-site, where they can manage contacts, todo lists, etc.
The django admin interface is used to administer the 'entire' site. So
I assume there wouldn't be many 'user-admin' implementations. How
would I create a user-ad
> The problem is then that I want some users to be able to create new accounts,
> but only see or edit accounts that they themselves have created.
If you're trying to do it through the admin app, you'll probably not
be able to pull if off since the admin doesn't have row-level
permissions.
Are
> maybe I'm a bit confused (or tired) but
> how would you go and cache a view that will *never*
> change depending on a request on my application?
Is the output something difficult for the view to generate? If not,
you could just specify a very long cache expiration and let it
regenerate itself a
On Oct 24, 11:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I'm running Django 91 and 97 on my development server with different
> port numbers and I'm getting admin errors when I log in to the 91
> sites. If I hit refresh enough times, eventually it works.
In case anyone is having th
> I've tried adding the permissions directly to the user, I've also
> tried added the user to a group and giving the group the permissions
> but in either case, when I log in with the user into the Django admin,
> I get "You don't have permission to edit anything." for that user.
Have you tried g
Sorry if I wasn't clear about what I was talking about. :-)
I'm using Darwin ports. They work similar to BSD ports (completely different
but the idea is probably from there). With that you can install alot of *nix
applications. The homepage for Darwin ports is http://darwinports.com/.
Darwin ports
Hi list,
maybe I'm a bit confused (or tired) but
how would you go and cache a view that will *never*
change depending on a request on my application?
If I read the manual right, I have to give a timeout to
all the cache functions that are available. In my case I have
a view that will never change
Can you elaborate on just install and update your python version through
ports and install everything you need from there?
Im using Python 2.5 (from here: http://pythonmac.org/packages/)--do you
mean Python 2.5.1?
Matt
On 10/25/07 9:09 PM, "Kristinn Örn Sigursson"
<[EMAIL PROTECTED]> wrote:
Hi All,
I'm trying to stop people from uploading like 3mb images and crashing
the server. I think, think, that to some degree my limiters are
working. In my apache config I've set LimitRequestBody 307200. That
should be about 300k. Now when I upload an image greater than that, I
can see that
That's too much of a hack when you can just install and update your python
version through ports and install everything you need from there, without
touching the MacOSX system itself. I guess you can use /usr/local without
destroying the OSX, but still... I think the ports way is better. :-)
Just m
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
I'm sorry. I'm using version 1 of psycopg. If I fire up a python shell I can
import it as "import psycopg". Hope that helps.
On 10/25/07, Francis Lavoie <[EMAIL PROTECTED]> wrote:
>
>
> have you tried to import the module into python directly?
>
>
>
> Le 07-10-25 à 18:58, Frank a écrit :
>
> >
> >
On Thu, 2007-10-25 at 11:07 -0700, ZebZiggle wrote:
> Thanks Karen ... do you of a way to override this behavior?
>
> I can think of many situations where you would want to be able to
> modify it.
auto_now and auto_now_add *always* set the automatic value, they don't
supply default values you ca
On Thu, 2007-10-25 at 13:27 -0700, Alexander Tsamutali wrote:
> On Oct 22, 6:06 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > On Mon, 2007-10-22 at 06:02 -0700, koenb wrote:
> > ...
> > > On the other hand, Malcolm closed the ticket today as wontfix, stating
> > > it is a bug inmarkdown.
Absolutely right, I have been working on it all evening too. I think I
know what the problem is but I need to ask in dev anyway just to
figure out the best way to go about it.
On Oct 25, 8:13 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-10-25 at 15:31 -0700, Zenom wrote:
> > O
On Thu, 2007-10-25 at 15:31 -0700, Zenom wrote:
> OK so I am working on ticket # 1051 which is the PostgreSQL
> search_path ticket. I checked out trunk today and made a diff. When I
> go to the shell and create queries and save data it works like a
> champ. When I try to run a test it gives me a
>
In my opinion, 40-50 Euros (Which is approx $60-$80 Australian
dollars, with which I'm much more familiar!) is a very reasonable rate
for a GOOD coder who does good design work along with their
programming.
The fact that you can get a PHP coder for $20 AUD/hr probably says
more about the dilution
lol
Well 40-50 euros is definitely a number I didn't expect. I live in
Canada, and on the net freelance work goes for about 20 CAD/hr, say
for a PHP dev or something. It's alright, it's about how much we pay
programmers here generally speaking. But at a rate of 100 CAD/hr... I
wouldn't mind put
have you tried to import the module into python directly?
Le 07-10-25 à 18:58, Frank a écrit :
>
> All-
>
> Having a rough go getting database bindings in OS X.
>
> I've installed psycopg2 using the package here:
> http://pythonmac.org/packages/py25-fat/mpkg/psycopg2-2.0.5.1-py2.5-
> macosx10
I recommend to use Darwin ports or fink to do that. I used Darwin ports on
my mac and it works perfectly.
On 10/25/07, Frank <[EMAIL PROTECTED]> wrote:
>
>
> All-
>
> Having a rough go getting database bindings in OS X.
>
> I've installed psycopg2 using the package here:
>
> http://pythonmac.org/p
On Oct 25, 11:32 pm, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
> > Do you know which process in particular though are using up all the
> > memory?
>
> The `top` command tells me that apache is taking the most slice of the
> RAM. When I reach the high loads, there is between 40-50 subprocess
All-
Having a rough go getting database bindings in OS X.
I've installed psycopg2 using the package here:
http://pythonmac.org/packages/py25-fat/mpkg/psycopg2-2.0.5.1-py2.5-macosx10.4.zip
When I run 'python manage.py shell' I get the following... any ideas
on how to fix this?
Traceback (most r
On Thu, 2007-10-25 at 15:17 +, bramble wrote:
> On Oct 25, 10:38 am, Dan Ellis <[EMAIL PROTECTED]> wrote:
[...]
> It would be trivial to just add a short sentence in the tutorial
> saying something like, "Behind the scenes, Django sets things up such
> that you automatically get instance varia
OK so I am working on ticket # 1051 which is the PostgreSQL
search_path ticket. I checked out trunk today and made a diff. When I
go to the shell and create queries and save data it works like a
champ. When I try to run a test it gives me a
psycopg2.ProgrammingError saying that the schema doesn't
On Oct 22, 6:06 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2007-10-22 at 06:02 -0700, koenb wrote:
> ...
> > On the other hand, Malcolm closed the ticket today as wontfix, stating
> > it is a bug inmarkdown.
> > Though that may be true, I do not understand why themarkdownfilter
>
Hi Ulf --
The mangement modules are designed for use from the command-line, so
this is expected behavior. If you're looking to convert data into a
string, you'll want to use the serialization APIs directly, see
http://www.djangoproject.com/documentation/serialization/.
Jacob
--~--~-~--~
wow, just wow.
I'm a django developer in Argentina, if you earned 15 euro an hour, it
would mean 109440 pesos a year. Which is the retail price of a 3 room
apartment in Buenos Aires. and living on your own, you wouldn't expend
more than 3000 a month even if you are a big spender
I guess yo
Is that assuming that you can do work 5x faster than a PHP developer?
On Oct 25, 6:28 am, Roboto <[EMAIL PROTECTED]> wrote:
> ! holy smokes
>
> On Oct 25, 3:01 am, BitBlazer <[EMAIL PROTECTED]> wrote:
>
> > It varies depending upon various things. For me it would be anywhere
> > between 40-50 eur
Thanks Karen ... do you of a way to override this behavior?
I can think of many situations where you would want to be able to
modify it.
-Z
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On Oct 25, 4:17 pm, bramble <[EMAIL PROTECTED]> wrote:
> It would be trivial to just add a short sentence in the tutorial
> saying something like, "Behind the scenes, Django sets things up such
> that you automatically get instance variables for each of the class
> variables you've set up.". Smal
Hey,
The admin media setting is only for django's admin interface. For
me, I needed to change some things in the admin interface, and so
copied the media folder (in windows, found in "C:\Python25\Lib\site-
packages\django\contrib\admin\") to the root of my server directory
(alternatively, non-w
Hey,
The admin media setting is only for django's admin interface. For
me, I needed to change some things in the admin interface, and so
copied the media folder (in windows, found in "C:\Python25\Lib\site-
packages\django\contrib\admin\") to the root of my server directory
(alternatively, non-w
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
Specifying auto_add_now=True makes the field non-editable. Therefore the
admin won't include it in the fields on a change page or in an edit-inline
section.
Karen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
does django works with spatial queries(PolygonField and
multipolygonField) when applications are developped to work with a
MySQL database?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
Hello,
I tried to create my own css and to link my applications to this one
by creating a directory called media in my project.
i indicated to settings.py of my project to see this directory by
editing ADMIN_MEDIA_PREFIX = '/media/'
In this directory i created css img and js directory as the tree
On Oct 25, 9:32 am, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
> Hi Graham,
>
> First, thanks for all your help!
>
> > If a different physical machine or you have multiple IPs on the one
> > machine, then preferable to serve the media files from a different
> > hostname. That way the media w
On Oct 25, 10:38 am, Dan Ellis <[EMAIL PROTECTED]> wrote:
> Yeah, Django is doing some magic using a metaclass for Model
> (ModelBase, which is badly named IMO, as it isn't Model's base class).
> Most of the magic is in django.db.models.base.
>
> The documentation tells you how to /use/ the model
I need a little advice on how to approach a problem. On our new website, we
will create "parent accounts" for customers, and then let them create new
logins for employees and contractors that they can customize in a bunch of
different ways. However, company "Foo" should not be able to see any
Yeah, Django is doing some magic using a metaclass for Model
(ModelBase, which is badly named IMO, as it isn't Model's base class).
Most of the magic is in django.db.models.base.
The documentation tells you how to /use/ the model API, though. I
don't think there's any need for the docs to explain
Hi all,
I've been using the Django management module to output data from my
database in JSON format. This summer I asked some questions about the
changes in the call management.dump_data to
management.call_command('dumpdata',) and got good help and got it
working.
Now that I try to run my databas
On Oct 25, 12:32 am, "Bill Fenner" <[EMAIL PROTECTED]> wrote:
> I've got a legacy application with a few tables that only have a
> single row, e.g., for configuration information. I can easily get the
> info with the following hack: pick a column to be a pretend primary
> key (so that django does
On 10/24/07, SmileyChris <[EMAIL PROTECTED]> wrote:
>
> > Is there a way to get the
> > auto_now/auto_now_add feature of DateTimeField to use UTC?
>
> Those methods suck and hopefully will be removed. Use a callable
> default instead of auto_now_add (or overridden save instead of
> auto_now, like
Am Donnerstag, 25. Oktober 2007 15:42 schrieb bramble:
> It looks to me that even though you set up class attributes in your
> models, when you *use* your models in your code, you access them as if
> they were instance attributes.
>
> Nowhere in the tutorials or the model or db-api docs is this
>
I'm having the same/similar problem. I have a field
created = models.DateTimeField(auto_now_add = True)
which doesn't show up in the admin interface, but everything else
does ... including other datetime fields (just not auto_add_now).
The field exists in the database, is used and getting p
It looks to me that even though you set up class attributes in your
models, when you *use* your models in your code, you access them as if
they were instance attributes.
Nowhere in the tutorials or the model or db-api docs is this
mentioned.
Unless I'm misunderstanding it, evidently, Django is d
Perfect! Thanks.
On Oct 25, 2:20 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On 10/25/07, Ryan K <[EMAIL PROTECTED]> wrote:
>
> > Why can't I change the User's name like so:
>
> > results[0].user.name = 'Brian'
> > results[0].user.save()
>
> > ?
>
> > I instead have to assign it first:
>
> >
Hi Graham,
First, thanks for all your help!
> If a different physical machine or you have multiple IPs on the one
> machine, then preferable to serve the media files from a different
> hostname. That way the media web server can still run on port 80, in
> the case of the same machine by configur
On 10/25/07, Ryan K <[EMAIL PROTECTED]> wrote:
> Why can't I change the User's name like so:
>
> results[0].user.name = 'Brian'
> results[0].user.save()
>
> ?
>
> I instead have to assign it first:
>
> found_user = results[0].user
> found_user.name = 'Brian'
> found_user.save()
>
> Any help unders
Hi..
Is it possible to translate flatpages? If yes, how? Please suggest
any docs available (couldn't find any). Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
Thanks Marcin,
The problem is solved. The issue was a result of site_id not
matching. (the one in settings.py and the site_id I was trying to use.
(Thanks to the help from satheesh. :-) ))
--~--~-~--~~~---~--~~
You received this message because you are subs
! holy smokes
On Oct 25, 3:01 am, BitBlazer <[EMAIL PROTECTED]> wrote:
> It varies depending upon various things. For me it would be anywhere
> between 40-50 euros per hour.
>
> On Oct 25, 8:46 am, Roboto <[EMAIL PROTECTED]> wrote:
>
> > Hey all,
>
> > I'm just curious, but if you were elance you
On 25-Oct-07, at 3:34 PM, alain D. wrote:
> My question is : how can I use the django translation mecanism
> (blocktrans tag & co) to translate that so that I will have
> This object has been created by %(username)s"
> in my po file ...
you do it in the __unicode__() method in your user model
For example, I have to basic models:
class User(models.Model):
name = models.CharField(max_length=30)
class AlterEgo(models.Model):
nickname = models.CharField(max_length=30)
user = models.ForeignKey(User)
I do a lookup for a User named 'Ryan' and one object is found.
results
For example, I have to basic models:
class User(models.Model):
name = models.CharField(max_length=30)
class AlterEgo(models.Model):
nickname = models.CharField(max_length=30)
user = models.ForeignKey(User)
I do a lookup for a User named 'Ryan' and one object is found.
results
Absolutely ... the """ is misleading ... I added it only for
clarity ...
here is a chunk of the content of a xxx.html file (template)
This object has been created by {{ myobject.owner.username }}
My question is : how can I use the django translation mecanism
(blocktrans tag & co) to tr
Hi
I am using form_for_instance to edit user
my view is
def edit(self):
user = request.user
UserForm = forms.form_for_instance(user, form=EditProfile,
fields=('email'))
my basefom class
class EditProfile(forms.BaseForm):
def __init__(self, *args, **kwargs):
super(EditProfileForm, s
Hi all
Can we combine multiple models together to create a Form by
form_for_instance method?
Now my view is
def edit_user(request):
user = request.user
profile = user.get_profile()
email_notification = EmailNotification.objects.get(user=user)
UserForm = forms.form_for_instance(user)
Hi,
> I get the add flat page in admin, but after adding a flat page,when i
> try to 'view on site', it gives me a 404 error.Can you tell me why
> isn't FlatpageFallbackMiddleware working?And yes, I did add the
> trailing slashes as url. (eg: /about/). Please advice. Thank you.
Did you add dja
Hi,
I just tried the django captcha module in my application. Everything
is fine except for one small problem. The code that extracts the font
files from `fonts` directory doesn't pay attention to the hidden
files. For example all my code is in SVN. As a result each project
folder has a hidden .s
It varies depending upon various things. For me it would be anywhere
between 40-50 euros per hour.
On Oct 25, 8:46 am, Roboto <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I'm just curious, but if you were elance your skills out, what would
> you normally charge? I was wondering what the going rate
76 matches
Mail list logo