you can find it here the World Funniest Video at
http://www.supperlaffn.blogspot.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@goog
Hi,
I am writing an app where I will occasionally need to change my db
schema. I am not an SQL expert, and would like to confine myself to
python and django db APIs if possible (don't want to go through raw
SQL or db engine specific code). After some googling I found django's
schema evolution bra
On Feb 17, 7:03 am, [EMAIL PROTECTED] wrote:
> Yes, most of the hostings have fastCGI, but not flup.
> I know the best is to have VPS hosting, but they are very expensive,
> and I think I can manage with a shared hosting.
> I think Blouehost looks good.
I'm not sure about other hosting companies,
Collin:
I did not know enough earlier to understand your answer, but I do now.
Thanks.
Juan Pablo
--~--~-~--~~~---~--~~
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
Thanks, Adrian.
Your answer worked great.
Juan Pablo
--~--~-~--~~~---~--~~
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 th
On Feb 19, 5:27 pm, "Lawrence Oluyede" <[EMAIL PROTECTED]> wrote:
> > All I can think of is to create a new model, say Poll1, with the
> > correct fields, do a syncdb, write and execute a python function to
> > transfer the data from Poll to Poll1, do a DROP TABLE on Poll, create
> > a new tabl
On Tue, 2007-02-20 at 02:27 +0100, Lawrence Oluyede wrote:
> > All I can think of is to create a new model, say Poll1, with the
> > correct fields, do a syncdb, write and execute a python function to
> > transfer the data from Poll to Poll1, do a DROP TABLE on Poll, create
> > a new table named P
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> If I have a Django model:
>
> class Poll(models.Model):
> ...
>
> and decide that I need another field in the table, how do I proceed
> while keeping the data?
Hi Karl,
See the FAQ:
"If I make changes to a model, how do I update the database
> All I can think of is to create a new model, say Poll1, with the
> correct fields, do a syncdb, write and execute a python function to
> transfer the data from Poll to Poll1, do a DROP TABLE on Poll, create
> a new table named Poll, do a syncdb transfer the data from Poll1 to
> Poll with a pyth
If I have a Django model:
class Poll(models.Model):
...
and decide that I need another field in the table, how do I proceed
while keeping the data?
All I can think of is to create a new model, say Poll1, with the
correct fields, do a syncdb, write and execute a python function to
transfer t
On 2/19/07, juampa <[EMAIL PROTECTED]> wrote:
> It used to be that if you had an IntegerField in a model class, and
> you wanted to restrict its valid rango to , say, 0 to 10, you would
> write a custom validator function and add it to the validator_list on
> the form field or even the model field
It used to be that if you had an IntegerField in a model class, and
you wanted to restrict its valid rango to , say, 0 to 10, you would
write a custom validator function and add it to the validator_list on
the form field or even the model field. What is the equivalent way to
do this with newforms?
On 2/19/07, sandro.dentella <[EMAIL PROTECTED]> wrote:
> I had similar problems this night. It comes out help_text is the
> source of problems. I fixed it adding smart_unicode in Field class
> (newforms.fields):
>
> class Field(object):
> ...
> def __init__(...):
> self.help_text = s
A little late, but as promised, I've bundled the code I'm using for
handling large file uploads in my application. It's a bit of a cheat
-- it actually uses a CGI for handling the actual upload and requires
an embedded iframe to make things work quite right. But it has the
following features:
*
On Feb 19, 3:55 pm, "Collin Grady" <[EMAIL PROTECTED]> wrote:
> Define a clean_date_posted to trim the decimals?
But the question is where. After you create the form class with
FormClass = forms.models.form_for_instance(anInstance)
. . .
form = FormClass(request.POST)
the form is bound to the
On Feb 19, 1:52 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
> > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTEC
Have you had any luck so far, Jim? I'm in a similar boat, and haven't
been able to get it to work. My problem seems to be adding the 'id'
to the clean_data and getting it to validate. Anything you've managed
to figure out would be very helpful. At this point, I'm stuck.
On Jan 24, 11:33 am, "
Thanks for the answers, I wanted this because of portability reasons.
I wanted to store small avatar images with a user profile in the
database. No Image paths to configure and a backup of the database
holds all the important data of the users. Everything in one place.
On Feb 19, 10:55 pm, "Honza
They told me that modpython is running through cgi, I have no idea
about that.
I want that all my objects are privated, and that nobody is able to
see anything from my code.
To be honest, I just read about this, I don't know anything about this
and I'd like to learn.
What is the best in a vps?
Wha
On 2/19/07, voltron <[EMAIL PROTECTED]> wrote:
>
> How would I go about saving images in a database? The imageField saves
> images in the file system, how can I cleanly in a Djangoish way
> override this?
django currently doesn't support BLOBs so there is no way to do that
in a clean django way...
Define a clean_date_posted to trim the decimals?
On Feb 19, 8:25 am, "juampa" <[EMAIL PROTECTED]> wrote:
> I have a certain model that contains a datetime field and I am using
> newforms to create and edit entries for this model. One of the fields
> in the model is a datetime set only for an ent
There's no quick way - django does not currently support binary
types :)
There is a patch in trac somewhere that's a start on it, but there
would be no promises on how well it works :)
On Feb 19, 1:52 pm, "voltron" <[EMAIL PROTECTED]> wrote:
> How would I go about saving images in a database? Th
How would I go about saving images in a database? The imageField saves
images in the file system, how can I cleanly in a Djangoish way
override this?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django u
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> On Feb 19, 1:25 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote:
> > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
> >
> > > > what exactly are you doing?
> > > > this
On Feb 19, 1:18 pm, "Justin Findlay" <[EMAIL PROTECTED]> wrote:
> Canen, do you have the time to work out a full example? After much
> trying I'm still not able to repeat the example without having to use
> the double tuple values.
Nevermind. I misunderstood what you meant by repeating choices.
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
>
> > > what exactly are you doing?
> > > this approach works perfectly for me...
>
> > I put the mentioned sql in
On Mon, 19 Feb 2007 15:58:37 -0500, Veloz <[EMAIL PROTECTED]> wrote:
>
> Hi there
>
> A couple weeks back I evaluated Django under Python 2.4. I followed
> the installation instructions and all went well.
>
> Recently we upgraded from python 2.4 on the server to python 2.5, and
> at that point, m
On Feb 19, 1:35 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
> > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTEC
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> On Feb 19, 1:25 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote:
> > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
> >
> > > > what exactly are you doing?
> > > > this
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
>
> > > what exactly are you doing?
> > > this approach works perfectly for me...
>
> > I put the mentioned sql in
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> On Feb 19, 12:46 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote:
>
> >
> > what exactly are you doing?
> > this approach works perfectly for me...
> >
> I put the mentioned sql in a file in my Djano installation django/
> contrib/auth/sql/users.s
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> On Feb 19, 1:11 pm, "Chris Brand" <[EMAIL PROTECTED]> wrote:
> > > I then erase my apps database and run 'manage.py syncdb'
> >
> > Are you aware that you don't have to erase the database before running
> > syncdb ? If you don't erase the db,
On Feb 19, 1:11 pm, "Chris Brand" <[EMAIL PROTECTED]> wrote:
> > I then erase my apps database and run 'manage.py syncdb'
>
> Are you aware that you don't have to erase the database before running
> syncdb ? If you don't erase the db, you won't need to recreate the
> superuser...
>
If I add or
> I then erase my apps database and run 'manage.py syncdb'
Are you aware that you don't have to erase the database before running
syncdb ? If you don't erase the db, you won't need to recreate the
superuser...
Chris
--~--~-~--~~~---~--~~
You received this mess
Hi there
A couple weeks back I evaluated Django under Python 2.4. I followed
the installation instructions and all went well.
Recently we upgraded from python 2.4 on the server to python 2.5, and
at that point, my Django stopped working.
(The 2.4 version of Python came either installed with Fed
On Feb 19, 12:46 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
>
> what exactly are you doing?
> this approach works perfectly for me...
>
I put the mentioned sql in a file in my Djano installation django/
contrib/auth/sql/users.sql
I then erase my apps database and run 'manage.py syncdb'
When p
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> No luck. I put:
>
> BEGIN;
> INSERT INTO "auth_user" ('username', 'email', 'password') VALUES
> ('admin', '[EMAIL PROTECTED]', 'sha1$b0461$2ed273ea30cf73581'); #'admin'
> COMMIT;
>
> BEGIN;
> INSERT INTO "auth_user" ('is_staff', 'is_active'
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> On Feb 19, 11:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> >
> > > How do I generate a hashed password?
> >
> > The easiest way is actually to manually create the superuser once
> > du
On Feb 19, 11:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > How do I generate a hashed password?
>
> The easiest way is actually to manually create the superuser once
> during a syncdb run, and then copy/paste the hash out of the admin
On Jan 25, 1:16 pm, "canen" <[EMAIL PROTECTED]> wrote:
> Answering my own question:
>
> The widget can be declared as part of the field, e.g.
>
> # Field
> class MoneyField(MultiValueField):
> def __init__(self, currency=(), amount=(), required=True,
> widget=None, label=None, initial=None):
>
For VPS hosted based in the UK, I can highly recommend Xtraordinary
Hosting. I have a basic VPS with them and it's super fast.
http://www.xtrahost.co.uk/xenvps
Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> How do I generate a hashed password?
The easiest way is actually to manually create the superuser once
during a syncdb run, and then copy/paste the hash out of the admin
page for that user. You can manually generate a hash if you want to,
but it's
See all the picture one by one
Lord
http://ifs2.imagefly.info/v/d9/jpg/god0a.html
http://ifs2.imagefly.info/v/a1/jpg/god1v.html
http://ifs2.imagefly.info/v/56/jpg/god7h.html
http://ifs2.imagefly.info/v/f6/jpg/lor20e.html
http://ifs2.imagefly.info/v/dd/jpg/lor21s.html
http://ifs2.imagefly.info/v/5b/
On Feb 19, 11:08 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> > Something like
>
> > BEGIN;
> > INSERT INTO "auth_user" ('username', 'email', 'password') VALUES
> > ('me', '[EMAIL PROTECTED]', 'my_hashed_password');
> > COMMIT;
>
> (an
Hi ...
I recently joined AGLOCO because of a friend recommended it to me. I
am now promoting it to you because I like the idea and I want you to
share in what I think will be an exciting new Internet concept.
Sign in : http://www.agloco.com/r/BBBV9253
Detailed İnfo : http://www.ulasbeldesi.com/
On 2/19/07, James Bennett <[EMAIL PROTECTED]> wrote:
> Something like
>
> BEGIN;
> INSERT INTO "auth_user" ('username', 'email', 'password') VALUES
> ('me', '[EMAIL PROTECTED]', 'my_hashed_password');
> COMMIT;
(and, of course, the appropriate value of True for the DB you're
using, on the 'is_sta
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> -- I see how to provide a .sql file, but how do I put a super user in
> it?
Something like
BEGIN;
INSERT INTO "auth_user" ('username', 'email', 'password') VALUES
('me', '[EMAIL PROTECTED]', 'my_hashed_password');
COMMIT;
Just straightforward SQ
None of those suggestions seem to help
-- Should I use a method that will break in 1.0??
-- As a beginner, I am loath to try patching Django
-- I have no test_client in my Django distribution
-- I see how to provide a .sql file, but how do I put a super user in
it?
Perhaps I'm just going at this
> is there any reason that the login_required decorator doesn't have the
> login_url parameter?
I think it's a known issue
> The other decorators have it. Besides me there seem to be also other
> people who need this parameter (see the comments to the auth docs
> page).
In the meantime you can
I'm trying to return a series of error messages alongside the data
entries in a form. I've evaluated the data in the View and passing the
list of error messages in a render to response request, as follows:
return render_to_response('edit_user_account.html',
{'errordict':errord
Hi,
I had similar problems this night. It comes out help_text is the
source of problems. I fixed it adding smart_unicode in Field class
(newforms.fields):
class Field(object):
...
def __init__(...):
self.help_text = smart_unicode(help_text)
sandro
*:-)
PS: should I open a ticket
On Mon, 2007-02-19 at 13:01 +, omat * gezgin.com wrote:
> I am trying to match a utf-8 character with a filter. Within the
> python prompt, "u'ç'.encode('utf-8')" returns "\xc3\xa7" correctly but
> when I use this inside a filter like:
>
> (name__startswith = u'ç'.encode('utf-8'))
>
> I get
Download Free ScreenSavers and Wallpapers! -
http://surl.in/HLFSS238206SVRAKSX-google
--~--~-~--~~~---~--~~
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@googlegr
Download Free ScreenSavers and Wallpapers! -
http://surl.in/HLFSS238206SVRAKSX-google
--~--~-~--~~~---~--~~
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@googlegr
I have a certain model that contains a datetime field and I am using
newforms to create and edit entries for this model. One of the fields
in the model is a datetime set only for an entry creation. To modify
one of these entries, I create a form from the instance
(form_for_instance()) and set th
Hi all,
Hopefully this is a simple fix. The filter_interface option in M2M
fields isn't doing anything, the select box appears to be the same
regardless of whether that option is in there, or if it's set to
filter_interface=models.HORIZONTAL or models.VERTICAL. The only error
message that comes u
Hi
Do you want to have a master card with $5 bonus?
Try it
it's free:
https://www.favocard.com/affiliater/affiliate.php?id=14610&group=1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Hi
Do you want to have a master card with $5 bonus?
Try it
it's free:
https://www.favocard.com/affiliater/affiliate.php?id=14610&group=1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Hello,
I will be presenting an overview of the Django web framework at the monthly PyGTA (Greater Toronto Area Python
user group) meeting on Feb. 20. Django is represented as being "The
Web framework for perfectionists with deadlines." In my experience,
that is an apt description. I have found i
yeesss!
thanks a lot, everybody...
On Feb 19, 3:38 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> Dirk Eschler wrote:
> > you can try to add this as first line in your file:
>
> > # -*- coding: utf-8 -*-
>
> And after this there's no need to write u'ç'.encode('utf-8') but is
> enough to write j
Igor Guerrero wrote:
> Apparently is a random error, I use the svn version, and with one project
> it works and with another don't, maybe is a PyDEV bug, but I don't know.
Hmm strange and what a pity ! :(
I hope it will be solved with next stable version :-)
--~--~-~--~~--
Hello everyone, pretty new to this stuff so please bear with me.
I've written a simple bit of python in my mytags directory to output
our aggregated feeds form our feedjack application that we built last
week.
def rssfeeds(request, slag):
import feedparser
if slag == 'researchnew
Dirk Eschler wrote:
> you can try to add this as first line in your file:
>
> # -*- coding: utf-8 -*-
And after this there's no need to write u'ç'.encode('utf-8') but is
enough to write just 'ç'.
--~--~-~--~~~---~--~~
You received this message because you are su
On Montag, 19. Februar 2007, omat * gezgin.com wrote:
> I am trying to match a utf-8 character with a filter. Within the
> python prompt, "u'ç'.encode('utf-8')" returns "\xc3\xa7" correctly but
> when I use this inside a filter like:
>
> (name__startswith = u'ç'.encode('utf-8'))
>
> I get a syntax
"omat * gezgin.com" <[EMAIL PROTECTED]> writes:
> I couldn't figure out which encoding declaration does the message is
> talking about.
This means the encoding of your Python source file itself. There is a
PEP about this:
http://www.python.org/dev/peps/pep-0263/
Regards, Frank
--~--~-
I am trying to match a utf-8 character with a filter. Within the
python prompt, "u'ç'.encode('utf-8')" returns "\xc3\xa7" correctly but
when I use this inside a filter like:
(name__startswith = u'ç'.encode('utf-8'))
I get a syntax error:
Non-ASCII character '\xc3' in file .../views.py on line 24
Hi,
is there any reason that the login_required decorator doesn't have the
login_url parameter?
The other decorators have it. Besides me there seem to be also other
people who need this parameter (see the comments to the auth docs
page).
Regards, Frank
--~--~-~--~~~
You can't order by a property of a model, but you can do that by the
field of the related model:
Film.objects.select_related().order_by('appname_product.name')
Documentation:
http://www.djangoproject.com/documentation/db_api/#order-by-fields
Regards,
Aidas Bendoraitis [aka Archatas]
On 2/16/07
Thanks a lot to both of you!
As u are so nice i have another question about it :)
class Resource_systeminfo(models.Model):
...
owner = models.ForeignKey(User)
You see, i have a foreign key to a user object. But in my view, when i
try to do
ResSysForm = form_for_model(
Pythoni schreef:
> I would like to use HTTP_REFERER in my Django project to find out from
> where users came to my website. So, my first page is INDEX.HTML that
> uses
> def Index(request) procedure.
> In this def Index(request) I use
> request.META['REMOTE_ADDR']
> but I found out that Referer do
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
> Is there a was to install the contrib.admin app without the
> contrib.auth app??
No; the admin app requires the auth app so that it can allow
authorized users to log in.
> While learning, I am eraseing the database and doing manage.py syncdb
> a
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> Is there a was to install the contrib.admin app without the
> contrib.auth app??
No; the two are pretty closely intertwined.
> While learning, I am eraseing the database and doing manage.py syncdb
> a lot, and it would be real nice to have it c
On 18 fév, 02:34, Lachlan Cannon <[EMAIL PROTECTED]> wrote:
> Jonathan Ballet wrote:
> > I think, we might use the __str__() method, since it seems the
> > simplest and cleanest way of doing this (a title is a sort of
> > presentation in fact). Or maybe, we will stick with the get_title()
> > meth
73 matches
Mail list logo