On Jun 4, 4:15 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 6/2/07,Almad<[EMAIL PROTECTED]> wrote:
> I haven't played with Selenium integration extensively; however, the
> broad use case (tests against a live server) is one that I am
> interested in supporting.
> #2879 contains a pa
On Tue, 2007-06-05 at 13:01 -0400, James Punteney wrote:
> I'm having this issue as well.
>
> Anyone know if a ticket was filed for this or have any fixes been
> done? I looked in Trac and didn't anything.
>
> If not I'll go ahead and submit a ticket.
As far as I know, there is no open ticket f
On Wed, 2007-06-06 at 04:12 +, [EMAIL PROTECTED] wrote:
> I'm trying to use the login_required decorator with the
> direct_to_template generic view. I've read through the "Extending
> Generic Views" section of DjangoBook (as recommended in a similar post
> in this group) but I must be missing
On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>
> > This will grab _all_ score objects, and sort them by baseball score.
> > If there isn't a baseball score, then 'baseball' will have a value of
> > None, which is still a sortable value.
>
> Alright, so just to be safe, I really shouldn't be
On 6/6/07, Vincent Nijs <[EMAIL PROTECTED]> wrote:
>
> I have been searching for examples but everything that I see has a link to a
> database. How to you 'get' the data from a form in django? What is the
> equivalent of 'data = cgi.FieldStorage(keep_blank_values=1)' I would use
> with a Python cg
> This will grab _all_ score objects, and sort them by baseball score.
> If there isn't a baseball score, then 'baseball' will have a value of
> None, which is still a sortable value.
Alright, so just to be safe, I really shouldn't be showing the values
for all players, since that risks showing v
I have been searching for examples but everything that I see has a link to a
database. How to you 'get' the data from a form in django? What is the
equivalent of 'data = cgi.FieldStorage(keep_blank_values=1)' I would use
with a Python cgi script?
Thanks,
Vincent
On 6/5/07 7:22 PM, "Russell Keit
On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>
> > Score.objects.order_by('-baseball')
> >
> > will return all the objects in reverse order.
>
> Does this only grab the baseball scores? Or grabs all of them and THEN
> sorts them by score?
> (Just for future reference.)
This will grab _all_
> Score.objects.order_by('-baseball')
>
> will return all the objects in reverse order.
Does this only grab the baseball scores? Or grabs all of them and THEN
sorts them by score?
(Just for future reference.)
> However, it looks like your table is intended to be at least partially
> sparse (i.e.
On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>
> Alright, new problem for you guys. Here's an example model in an app
> called "scores", which contains all the scores for a particular
> player:
>
> # Baseball
> baseball= models.PositiveIntegerField('Baseball Skill
> Level', b
Wow! Thanks Kelvin! That's awesome!!
Sincerely,
-Warren
- Original Message -
From: "Kelvin Nicholson" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, June 05, 2007 10:14 PM
Subject: Another Django Site with Source Code
>
> Dear all Djangoers:
>
> When I first started learning Django I fou
I'm trying to use the login_required decorator with the
direct_to_template generic view. I've read through the "Extending
Generic Views" section of DjangoBook (as recommended in a similar post
in this group) but I must be missing something.
Here's my best attempt:
urlpatterns = patterns('',
On 6/6/07, dailer <[EMAIL PROTECTED]> wrote:
>
> looking for ideas on the best way to handle this. I have a need to set
> up date ranges not tied to a particular year, like Jan 1 - Feb 12. I
> like that the admin interface provides a date selector so I'm tempted
> to just use a DateField and ignor
Dear all Djangoers:
When I first started learning Django I found the docs
better-than-average, yet looking at code was the way for me to really
grasp certain concepts. Cheeserater (thanks Jacob!) was great to look
at a way to do voting, Cab (thanks James!) was great to look at how to
deal with N
looking for ideas on the best way to handle this. I have a need to set
up date ranges not tied to a particular year, like Jan 1 - Feb 12. I
like that the admin interface provides a date selector so I'm tempted
to just use a DateField and ignore the fact that I would be selecting
a specific year.
thx, that's what I thought but wasn't sure if I was missing something.
I don't really like that you then have..
maxlength=3, validator_list=...
I guess I could subclass CharField
On Jun 5, 10:33 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > seems silly but how do I specify minimum length fo
OK, I wasn't really sure how to do this correctly, but I just filed
ticket #4486 ( http://code.djangoproject.com/ticket/4486 ) --
hopefully in a useful form!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django u
Welcome to my Blog.
http://myfdc.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@googlegroups.com
To unsubscribe from this group,
Alright, new problem for you guys. Here's an example model in an app
called "scores", which contains all the scores for a particular
player:
# Baseball
baseball= models.PositiveIntegerField('Baseball Skill
Level', blank=True, null=True, maxlength=4)
# Bowling
bowling
On 6/6/07, ringemup <[EMAIL PROTECTED]> wrote:
>
> > 1) This sounds like it could be a bug. If your model defines 2 decimal
> > places, my initial reaction is that the form should show 2 decimal
> > places by default.
>
> Well, I figured that with currency being such a common use, if it were
> a b
> but I dont know where to add that config, another thing I've noticed
> is that my httpd.conf is located at /etc/apache2/ and the size of the
> file is 0 bytes, is this normal?
As Deryck noted, httpd.conf is referenced in apache2.conf; instead of
putting virtualhosts in apache2.conf though, you
> 1) This sounds like it could be a bug. If your model defines 2 decimal
> places, my initial reaction is that the form should show 2 decimal
> places by default.
Well, I figured that with currency being such a common use, if it were
a bug it would already have been found and squashed. But mayb
On 6/6/07, Vincent Nijs <[EMAIL PROTECTED]> wrote:
>
> Question: If I want to save the file to a directory and information about
> the submitter (e.g., name and time of submission) directly to a csv file,
> how would I do that in Django? Do you need 'newforms' to do that? In the
> documentation it
On 6/6/07, ringemup <[EMAIL PROTECTED]> wrote:
>
> Hello again --
>
> I'm creating a form using form_for_model. The model in question has a
> decimal field with 2 decimal places. The form, however, is displaying
> the field with one decimal place. I've googled and poked through the
> tests, but
Greetings!
To boost my Django skills and show that Django can be JavaScript-ready
from the start, I started porting Pylons Webhelpers[1] to Django,
implementing them as templatetags.
It is hosted on Google projects[2]. To show how it works, I created
small Django project that implements basic Web
Hello again --
I'm creating a form using form_for_model. The model in question has a
decimal field with 2 decimal places. The form, however, is displaying
the field with one decimal place. I've googled and poked through the
tests, but I can't figure out how to override this without creating an
If you are tired of not making money on the Net and want something
that really works, then go to: http://www.tellmemoresite.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
The mysql ndb (cluster) and MyISAM engines do not support referential
integrity, and neither does sqlite. In looking around on this list and
the web, i've noticed that django actually handles many of these
reference features on its own. However, in the docs on django/mysql at
http://www.djangoproj
hi, i did the same. My solution is not as elegant but works ok for me:
model:
class Menu(models.Model):
createdate = models.DateTimeField(auto_now_add='True')
islive = models.BooleanField(default=True, help_text="Untick if you
do not want this to be live.")
position = mode
Below is an example of the type form I used to process with a python cgi
script. Now I am trying to move everything over to Django.
Question: If I want to save the file to a directory and information about
the submitter (e.g., name and time of submission) directly to a csv file,
how would I do th
On 5 Juni, 17:18, "Deryck Hodge" <[EMAIL PROTECTED]> wrote:
> On 6/4/07, Psamathos <[EMAIL PROTECTED]> wrote:
>
> > Anyone with an idea what this could be?
>
> > Error: Couldn't install apps, because there were errors in one or more
> > models:
> > django.contrib.admin:
> > django.contrib.site
Thanks!
-- Jordi Funollet
--~--~-~--~~~---~--~~
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 [EMAI
I am trying to build dynamic menus that are brought in from a
database. I set up the table in this structure:
CREATE TABLE auth_menu
(
menu_id serial NOT NULL,
group_id int4 NOT NULL,
parent_id int4,
auth_permission_id int4,
title varchar(35) NOT NULL,
url varchar(100),
order_index
Joshua D. Drake skrev:
> Nis Jørgensen wrote:
>> [...] anytime a
>> database error occurs, all subsequent calls to the database fails with
>> the error message "ProgrammingError: current transaction is aborted,
>> commands ignored until end of transaction block".
>>
>
> That is how PostgreSQL
Nis Jørgensen wrote:
> Hello all
>
> I am using Django 0.96 with postgresql 8.1 and psycopg2. The error
> handling does not work as I would expect it to. Specifically, anytime a
> database error occurs, all subsequent calls to the database fails with
> the error message "ProgrammingError: current
Hello all
I am using Django 0.96 with postgresql 8.1 and psycopg2. The error
handling does not work as I would expect it to. Specifically, anytime a
database error occurs, all subsequent calls to the database fails with
the error message "ProgrammingError: current transaction is aborted,
commands
I just fixed it, the symlink I created for the admin media directory
was incorrect. Thanks anyways!
On Jun 5, 10:58 am, "Justin Lilly" <[EMAIL PROTECTED]> wrote:
> based on user, user portion... did your database change at all? Is there two
> user columns?
>
> On 6/5/07, tyman26 <[EMAIL PROTEC
You may perioticaly check the django frappr map. Right now, it doesn't seem
as though any cuban django users have been pinned.
http://www.frappr.com/django/map
On 6/5/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote:
>
> there is any django users in Cuba or just a cuban user?
>
> --
problem resolved, here is how I did it, just a little change to my original
code, setattr by add_to_class, with this, I can add common attributes to a
lot of models without having to inherit more than once or having a base
class for all of them, beside, it just create one table, not two:
def commo
problem resolved, here is how I did it, just a little change to my original
code, setattr by add_to_class, with this, I can add common attributes to lot
of models without having to inherit more than once or having a base class
for all my models :
def common_attrs(cls, common):
attrs = dir(comm
Hi Frédéric,
i think you missed the point, this will not be a resource page for
modules/apps.
It will be a showroom where you can post your websites you have made
with django.
See http://code.djangoproject.com/wiki/DjangoPoweredSites
On 5 Jun., 19:21, Frédéric Roland
<[EMAIL PROTECTED]> wrote:
Hi,
nice idea.
Just some thought:
There is a great resource where people look for solutions: Python Cheese
Shop. I see some turbogear module there but very few Django related
modules.
FR
Ross Poulton a �crit :
> Hi all,
>
> I've been using Django for quite a while now, some of you may kn
So here is my first shot.
1024x768
http://img131.imagevenue.com/img.php?image=63063_djpr1_122_506lo.jpg
800x600
http://img157.imagevenue.com/img.php?image=63064_djpr2_122_796lo.jpg
Let me know if you think its worth moving on.
On 5 Jun., 17:04, wathi <[EMAIL PROTECTED]> wrote:
> I´ll send you
I'm having this issue as well.
Anyone know if a ticket was filed for this or have any fixes been
done? I looked in Trac and didn't anything.
If not I'll go ahead and submit a ticket.
Thanks,
--James
On 4/4/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2007-04-04 at 01:13 -0700,
Yes, you'd set in something like:
SetHandler None
(which is exactly what I've done)
-joe
On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> I'm not using mod_rewrite currently (and may even have it turned off
> in Apache to save memory). Is there another solution?
>
> I have my static
You can always put a urlconf that will match "robots.txt" and return a
simple http response...
On Jun 5, 6:24 pm, "Deryck Hodge" <[EMAIL PROTECTED]> wrote:
> On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> >
> > SetHandler None
> >
>
> > Can you do the same for single files?
>
> Yo
On 6/5/07, Gerard M <[EMAIL PROTECTED]> wrote:
>
> Hello dear django users community.
> I have a little question, I've been digging for the past weeks trying
> to get together all the technologies I need to host a django powered
> app, and this is what I've managed to do:
> I'm running Linux Ubunt
Hello dear django users community.
I have a little question, I've been digging for the past weeks trying
to get together all the technologies I need to host a django powered
app, and this is what I've managed to do:
I'm running Linux Ubuntu 7.04 Feitsy Fawn distro, I have Apache/2.2.3
mod_python/3
based on user, user portion... did your database change at all? Is there two
user columns?
On 6/5/07, tyman26 <[EMAIL PROTECTED]> wrote:
>
>
> I saw a previous post about this same thing a couple weeks ago, but
> there was no response to it. Whenever I use the admin site and try to
> access a use
On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> SetHandler None
>
>
> Can you do the same for single files?
>
You can, and probably would be better than the mod_rewrite overhead in
this case.
Cheers,
deryck
--~--~-~--~~~---~--~~
You received this m
I saw a previous post about this same thing a couple weeks ago, but
there was no response to it. Whenever I use the admin site and try to
access a user, I get this error message:
"TypeError at /admin/auth/user/3/"
"Cannot resolve keyword 'user' into field. Choices are: permissions,
user, user, i
On 6/4/07, Psamathos <[EMAIL PROTECTED]> wrote:
> Anyone with an idea what this could be?
>
> Error: Couldn't install apps, because there were errors in one or more
> models:
> django.contrib.admin:
> django.contrib.sites:
> django.contrib.contenttypes:
> django.contrib.sessions:
> django.con
On Tue, 2007-06-05 at 17:47 +0300, Andrey Khavryuchenko wrote:
>
> MT> Have a look at the iriencode filter (only in the unicode branch, so
> MT> you'll need to read docs/templates.txt from the source). This handles
> MT> the last stage of encoding to ASCII.
>
> Thanks for pointer.
>
> MT> Y
I'm not using mod_rewrite currently (and may even have it turned off
in Apache to save memory). Is there another solution?
I have my static media folder set in Apache with:
SetHandler None
Can you do the same for single files?
Thanks,
Rob
On Jun 4, 8:12 am, KpoH <[EMAIL PROTECTED]>
Hi,
i got a simple example where a Model.save() that should raise
integrity/operational errors is not:
class one(models.Model):
fk_field = models.ForeignKey('two')
class two(models.Model):
description = models.CharField(maxlength=10)
In [1]: from webfi.sd.models import *
In [2]:
there is any django users in Cuba or just a cuban user?
--
Lic. José M. Rodriguez Bacallao
Cupet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
Hi devs in Munich,
we are a team of a couple django users and would be interested in
meeting up with other django/python/webX.X devs from around Munich (Germany).
So lets meet next thursday 14th June 2007, at 20:00
lets say there: http://tinyurl.com/36l4yf
Max Emanuel Brauerei, Adalbertstr. 33
T
Hi Ross,
i read your blog posts with great interest. Very helpful stuff.
The idea for a djangopowered sites replacement is also great.
Looking at happycodr that seems to be quite simple and fast done.
I´ll send you some screenshots later today of what i would do. I have
a design laying around
Am 05.06.2007 um 16:38 schrieb Malcolm Tredinnick:
>
> On Tue, 2007-06-05 at 16:10 +0200, va:patrick.kranzlmueller wrote:
>> after doing a django-update yesterday, we have \xef\xbb\xbf at the
>> beginning of every rendered template which leads to strange display
>> errors in IE and older firefox
MT> Have a look at the iriencode filter (only in the unicode branch, so
MT> you'll need to read docs/templates.txt from the source). This handles
MT> the last stage of encoding to ASCII.
Thanks for pointer.
MT> You cannot necessarily skip the urlencode portion, but you may be able
MT> to.
On Tue, 2007-06-05 at 16:10 +0200, va:patrick.kranzlmueller wrote:
> after doing a django-update yesterday, we have \xef\xbb\xbf at the
> beginning of every rendered template which leads to strange display
> errors in IE and older firefox-versions.
>
> I figured out that it´s a byte order mar
> seems silly but how do I specify minimum length for a
> CharField. Would that require customer validation?
I suspect you just want a custom validator in your
validator_list...something like
def is_longer_than(n):
def result(field_data, all_data):
if len(field_data) <= n:
raise
Hi,
Are there any Turkish speaking Django enthusiasts in this group?
I would like to invite them to a group I have just created:
http://groups.google.com/group/django-tr
This group will be dedicated to making Django known better in Turkey
and help spread its usage among Turkish speaking develop
after doing a django-update yesterday, we have \xef\xbb\xbf at the
beginning of every rendered template which leads to strange display
errors in IE and older firefox-versions.
I figured out that it´s a byte order mark (BOM), but I´m not sure how
to avoid it ...
patrick
--~--~-~--~-
> It is in the fastcgi Django docs
> (http://www.djangoproject.com/documentation/fastcgi/), although I've
> heard similar things said about PHP+Fastcgi.
When I did my setup ~8 months ago, I discovered the module load order
from the Lighttpd docs about the 'server.modules()' directive:
http://trac
Sadly also not an offer for help (directly at least), but you might check
out http://www.oswd.org Open Source Web Design. Lots of good site templates
there that are typically standards based and look quite nice.
-justin
On 6/5/07, Ross Poulton <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I've bee
> I'm not sure what "a patch in the development tree" means here. Current
> subversion trunk doesn't seem to have anything like that.
Sorry for not being clear -- I'm (obviously) not familiar with the
mechanism of open source / django development. What I was referring
to is the ticket you mentio
Hi Ross,
Sorry, not an offer of help but a request for more info. Can you tell
me what you use to do the screen grabs?
Regards,
Dave.
Ross Poulton wrote:
> Hi all,
>
> I've been using Django for quite a while now, some of you may know my
> name from occasional blog posts on the Django comm
On Tue, 2007-06-05 at 06:05 -0700, jj wrote:
> I have added a feature to my Django app which allows me to import data
> from an external database. The data is in XML. I iterate over the XML
> to import book descriptions. After each book is processed, I save()
> it. Then I call render_response() to
I have added a feature to my Django app which allows me to import data
from an external database. The data is in XML. I iterate over the XML
to import book descriptions. After each book is processed, I save()
it. Then I call render_response() to display the list of books just
imported.
However, t
seems silly but how do I specify minimum length for a CharField. Would
that require customer validation?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
On Tue, 2007-06-05 at 14:34 +0300, Andrey Khavryuchenko wrote:
> Folks,
>
> I'm working on multiligual app using unicode branch and hit an interesting
> bit yesterday.
>
> I'm trying to present a (cyrillic) tag in url-ready form. Usually this is
> solved by
>
> {{ tagname|urlencode }}
>
>
Folks,
I'm working on multiligual app using unicode branch and hit an interesting
bit yesterday.
I'm trying to present a (cyrillic) tag in url-ready form. Usually this is
solved by
{{ tagname|urlencode }}
But when the 'tagname' contains non-ascii symbols, urlencode barfs:
KeyError at
> > {% for catetory in categorylist %}
> If this is a cut-and-paste of your template, here's your error. Learn to
> spell "category". :-)
Oh how blind was that. Of course that was the problem, thanks a lot :)
After fixing that i got an "always false" instead of "always true".
The debug line wi
On Tue, 2007-06-05 at 11:45 +0200, Sven Broeckling wrote:
> Hi everyone,
>
> i use django for a small fun website, and it's really fun to create
> applications with it. Now i'm stuck with a behaviour i can't
> comprehend.
>
> I have a category list in my base template :
>
> --[snip]
Hi everyone,
i use django for a small fun website, and it's really fun to create
applications with it. Now i'm stuck with a behaviour i can't
comprehend.
I have a category list in my base template :
--[snip]--
{% if categorylist %}
Buc
Thanks Marcin. I will try your ideas.
--- On Mon 06/04, [EMAIL PROTECTED] < [EMAIL PROTECTED] > wrote:
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]
To: django-users@googlegroups.com
Date: Mon, 04 Jun 2007 09:09:30 -0700
Subject: Re: Big app, big db, all users are authenticated
Thanks Joseph. Middleware is very useful.
--- On Mon 06/04, Joseph Heck < [EMAIL PROTECTED] > wrote:
From: Joseph Heck [mailto: [EMAIL PROTECTED]
To: django-users@googlegroups.com
Date: Mon, 4 Jun 2007 09:41:29 -0700
Subject: Re: Big app, big db, all users are authenticated
Anoth
Cool!
--~--~-~--~~~---~--~~
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 PROTECTED]
For more
On Tue, 2007-06-05 at 07:33 +, simonbun wrote:
> I'm having some trouble solving a newforms problem that other people
> must have run into as well. Feel free to share solutions or
> workarounds if any.
>
> Let's say I have a RegistrationForm that is used for registering new
> users. It has th
I'm having some trouble solving a newforms problem that other people
must have run into as well. Feel free to share solutions or
workarounds if any.
Let's say I have a RegistrationForm that is used for registering new
users. It has the usual 'name', 'email', ... etc fields. When a new
user regist
81 matches
Mail list logo