On 2006-12-14, Victor Ng <[EMAIL PROTECTED]> wrote:
>
> The patch I previous sent in mostly adds a couple functions to the
> psycopg2 backend in the introspection module. The only big changes
> that affect the mainline django code are in django.core.management.
>
> I'm using my patches, so that's
Hi All -- Sorry if this is a newbie faux pas. I am having an issue with
viewing the adding admin interfaces I created for a number of my
models. Everything appears fine when accessing the admin site using the
development server, but when I try to view my changes running through
Apache, none of the
Very cool,
Just something apparently the rich editor FCK, dont have some languages, It
can be fix by copying the en.js to es.js(for Spanish).
It's Amazing how small are Django application!!!
On 12/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> This is a weblog application, source code
Hello,
I would like to loop through the fields in my model and print the names
(verbose_name) and value of the fields. I've been hacking at it for
sometime but can't figure it out. I had some help from Magus on IRC
but still can't find solution.
See: http://simon.bofh.ms/logger/django/2006/12/1
This is a weblog application, source code is open
--~--~-~--~~~---~--~~
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 gr
Exist any info about estimates values for memory and cpu for django?
--~--~-~--~~~---~--~~
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 unsub
I am having trouble using django's test facility.
I have written a unit test (copied from the example on the website):
# Issue a GET request
response = self.client.get('/archive/')
# Check that the respose is 200 OK
self.failUnlessEqual(response.status_code, 200)
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
> So 'DATABASE_NAME' should be the full name of a non-existant file. I
> had thought they wanted the path to where the file was located.
>
> !!Works fine now!!
>
> Two problems for Django with Python 2.5
FYI, the 0.95 tarball on the site is prett
On 12/14/06, Crispin Bennett <[EMAIL PROTECTED]> wrote:
> I assume it would be possible to get at child instances via some kind
> of introspection on instances of the base class (ie. so I could
> iterate usefully over collections of base class instances)?
You may want to read this thread from the
You can run your code outside of the block tag, so the block tag will
not push your context into the stack.
--
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou
--~--~-~--~~~---~--~~
You received this mess
On 12/14/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
> Django does have the ability to do a sort of model inheritance, using
> OneToOneFields. This establishes a 1-1 relationship between a base
> class and a child class.
I assume it would be possible to get at child instances via some ki
So 'DATABASE_NAME' should be the full name of a non-existant file. I
had thought they wanted the path to where the file was located.
!!Works fine now!!
Two problems for Django with Python 2.5
bug 1)
ez_setup.py in Django .95 folder should have:
DEFAULT_VERSION = "0.6c3"
instead of
DEFAULT_VERS
On 12/15/06, Crispin Bennett <[EMAIL PROTECTED]> wrote:
> But out of interest, does anyone here know what those
> semantic changes relate to?
They relate to the new model inheritance code. Usage of 1-1 relations
will change a bit when the model inheritance features become
available.
Yours,
Russ
The the name to a file in a directory - SQLite databases are a single file,
and it won't be able to create one if a directory already exists with the
same name.
-joe
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
>
> I tried to do:
> Python manage.py syncdb
> and got the error "No module name
I tried to do:
Python manage.py syncdb
and got the error "No module named pysqlite2". I edited the file
\Python25\Lib\site-packages\Django-0.95-py2.5.egg\django\db\backends\sqlite3\base.py
to read:
from sqlite3 import dbapi2 as Database
instead of
from pysqlite2 import dbapi2 as Database
and the e
>From Django Djumpstart I attemptd:
python manage.py syncdb
and got an error:
C:\Django\gtd>python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.
Thanks but I don't have, and don't want an irc client, so I'll just
struggle along and try not to ask stupid questions. My problem is that
Python 2.5 and sqlite3 seems to be a buggy combination. (Is that true?)
Maybe sqlite3 hasn't really been integrated yet?
I have had to edit
"C:\Python25\lib\s
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
> Jeremy Dunck wrote:
> > On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
...
> > Python's path (which is the list included in sys.path) is totally
> > separate from the window path.
> >
> So how do I put Django on this path?
>
> > You probably wan
On 12/14/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
>
> Yes and No.
>
> Django does have the ability to do a sort of model inheritance, using
> OneToOneFields. This establishes a 1-1 relationship between a base
> class and a child class. For example:
>
> class Base(Model):
>name = Ch
>> Are there any "best practices" tips for swapping among them for
>> testing/experimenting? Preferably without causing /too/ much
>> damage. :)
>
> Hey Tim,
>
> I've added some more instructions to the "Using branches" part of our
> documentation. Let me know if this helps.
>
> http://www.dja
Jeremy Dunck wrote:
> On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
> >
> > The command
> > C:>django-admin.py
> > does find it (tho it doesn't know what to do with it).
> >
> > It seems Python does not understand the path environment variable
> > or is there something I'm missing?
>
> Python'
The patch I previous sent in mostly adds a couple functions to the
psycopg2 backend in the introspection module. The only big changes
that affect the mainline django code are in django.core.management.
I'm using my patches, so that's been tested through 3 schema updates
in production. As previo
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
> The command
> C:>django-admin.py
> does find it (tho it doesn't know what to do with it).
>
> It seems Python does not understand the path environment variable
> or is there something I'm missing?
Python's path (which is the list included in sy
On 12/14/06, Tim Chase <[EMAIL PROTECTED]> wrote:
> Now I'd like to toy with both the Schema Evolution and the
> row-level user privs branches.
>
> Are there any "best practices" tips for swapping among them for
> testing/experimenting? Preferably without causing /too/ much
> damage. :)
Hey Tim,
On 12/14/06, Tim Chase <[EMAIL PROTECTED]> wrote:
> Are there any "best practices" tips for swapping among them for
> testing/experimenting? Preferably without causing /too/ much
> damage. :)
I can only speak to Unix-based systems, but what I've done with lots
of things of this nature is write a
I setup my path env var:
C:\Django>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\ATI Tech
nologies\ATI Control
Panel;C:\Apps\Eps12\Bin;C:\Python25;c:\Python25\Scripts;c:\
Django\django\bin
And I get:
C:\Django>python django-admin.py
python: can't open file 'django
> If you don't use Schema Evolution, you shouldn't be affected."
>
> I'd really like to try it, but I don't have time to keep up to date with
> two branches.
Early on, I naively just did the generic install of Django which
put it in the usual system-wide place.
Now I'd like to toy with both th
I know the company line on the SOC Schema Evolution code is that it will
be integrated into the trunk after enough people have tested it, but I
think this creates a chicken and egg problem. People aren't going to use
it until it's in trunk and it won't be in trunk until enough people test
it.
Doe
It really just depends on how you're accessing the data. I tend to optimize
for developer simplicity first, and then go in and adjust/split/modify code
as needed when performance isn't where it needs to be for whatever
application I'm working with.
The case where multiple models might work a littl
Jay,
Thank you for your comments. At least it looks like I will be able to
use Django. I guess the next thing for me to do is to spend alot of
time with the documentation and built a couple of simple apps/tutorials
to flush out my understanding of how Django will work.
Regards.
Thomas
Jay Pa
On Dec 14, 2006, at 12:49 AM, MC wrote:
>
> Problem:
> I order dates and null values in ascending order under MySQL. To my
> surprise, null values are listed first, then actual dates. Turns out
> that in MySQL, null values are LOWER than non-null values, whereas
> Postgresql is the reverse. As out
I have this model:
class Photo(Model):
title = CharField(
maxlength = 80,
)
description = TextField()
photo = ImageField(
upload_to = "photos/%Y/%m/%d",
height_field = "H",
width_field = "W",
)
W = PositiveSmallIntegerField("Width",
Found it. Highlite the text with the mouse, then right-click copies to
clipboard
Right-click on the dos box with nothing highlighted causes a paste!
(I think Bill has something against dos boxes!)
Karl
--~--~-~--~~~---~--~~
You received this message because you
I need some help installing Django. (not a good sign for my ability to
use it!)
I have installed Python25 on Windows2000, and added it to the path.
Its at C:\Python25
I downloaded and unzipped Django 0.95 to C:\Django-0.95
I opened a console in c:Django-.095 and entered 'sudo python setup.py
insta
Hello,
i'm having some problems with the OneToOneField. I have a content app with a
class Content that i want to use as base class in several other classes (like
Project in the below example):
class Content(models.Model):
title = models.CharField('Title', maxlength=255, core=True)
body
This is for EVERY Pakistani Muslim to know about the amendments in
hudood ordinance, so called "Adults' rights ordinance"...
Please download and listen to the following...
http://www.tanzeem.org/tanzeemeislami/2006-12-08.ra
This is not an enforcement, but a humble request. Don't just listen to
t
On 12/14/06, T. Size <[EMAIL PROTECTED]> wrote:
>
> I would appreaciate any comments about if Django is a good framework of
> developing an application like is described below. If it is a good
> framework for this I would appreciate pointers to applicable
> documentation or examples.
>
> In the n
I would appreaciate any comments about if Django is a good framework of
developing an application like is described below. If it is a good
framework for this I would appreciate pointers to applicable
documentation or examples.
In the near future I will be developing an application that will be
u
Jeremy Dunck wrote:
> Here's a 3rd: you can cut and paste from a dos box. They change it
> on each version of windows, but I think on 2k, you click the icon for
> the dos window (or perhaps it's right-click the title bar), and select
> Mark. Drag your cursor around to highlight a segment, and
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
> Now thats what I expected -- no error messages
>
> Interestingly, installing Django has taught me two things I never knew
> about WIN2K
> You can redirect stderr with '2>'
> The File syatem has symbolic links ( just no tools to access them!)
He
Now thats what I expected -- no error messages
Interestingly, installing Django has taught me two things I never knew
about WIN2K
You can redirect stderr with '2>'
The File syatem has symbolic links ( just no tools to access them!)
Thanks for the help.
Karl
--~--~-~--~~
I ran out of ideas. :) Maybe somebody else has any thoughts regarding new lines?
Good luck with Django!
Aidas Bendoraitis [aka Archatas]
On 12/14/06, zhongke chen <[EMAIL PROTECTED]> wrote:
> firefox shows utf-8
>
> my firefox is 2.0
>
> On 12/14/06, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
> I can't ccut and paste from a dos box. Fortunately I just discovered
> that I can redirect stderr using '2>' !!
>
Ahh, I think I see what's happening. Django 0.95 is reasonably old
now, and by default, it tries to download setuptools 0.6c1, for
I can't ccut and paste from a dos box. Fortunately I just discovered
that I can redirect stderr using '2>' !!
Traceback (most recent call last):
File "setup.py", line 2, in
ez_setup.use_setuptools()
File "C:\Django-0.95\ez_setup.py", line 72, in use_setuptools
egg = download_setuptoo
Waylan -
I removed the egg and voila! manage.py now knows about "test." Thanks
for your help.
- Bob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djan
Not sure how to trouble-shoot this. (And I could've sowrn it worked yesterday.)
When I add a column that's a foreign key to list_display, admin hangs.
The change list just never loads. (The add/edit page loads and saves
just fine.)
I've tried deleting the database tables for the app and reinstal
Yup, save() will be called whenever a model is written to the database,
including through a manipulator (again, afaik)
self.name is just for example purposes. You need to change the name of the
file in the ImageField or FileField object within your model. But yes, if
you do this from an overloaded
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
> Not that I am aware of. Windows 2000, Sygate personal firewall. Comcast
> cable.
> Plain vanilla I think.
>
Could you paste in the full text of the traceback?
Jay P.
--~--~-~--~~~---~--~~
You received this mes
Not that I am aware of. Windows 2000, Sygate personal firewall. Comcast
cable.
Plain vanilla I think.
Karl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
firefox shows utf-8
my firefox is 2.0
On 12/14/06, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
> And what encoding is showed in the page info? ...when you right click
> somewhere in the page and choose "View Page Info" from the menu. Maybe
> just the default character encoding in your firefox se
Am 14.12.2006 um 17:05 schrieb Daniel Kvasnicka jr.:
>
> Hi djangees,
> I'm a TurboGears user, I like CherryPy, Kid and so. I like Django as
> well and tried the tutorials.
> What I like about Django is (obviously) the auto-generated admin
> interface.
>
> However, what I need to know is how
> e
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
> I need some help installing Django. (not a good sign for my ability to
> use it!)
> I have installed Python25 on Windows2000, and added it to the path.
> Its at C:\Python25
> I downloaded and unzipped Django 0.95 to C:\Django-0.95
> I opened a c
Did anything ever come of Luke's work?
--~--~-~--~~~---~--~~
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 em
I need some help installing Django. (not a good sign for my ability to
use it!)
I have installed Python25 on Windows2000, and added it to the path.
Its at C:\Python25
I downloaded and unzipped Django 0.95 to C:\Django-0.95
I opened a console in c:Django-.095 and entered 'python setup.py
install'
I
Hi, i'm testing the firstof tag in templates, but i want to filter some
vars. In this case, the vars are dates, and usually y use {{
week|date:"W" }} to get the week number (week is a full date), but i
also want to get the same with {{ day|date:"W" }} (also a full date).
It,of course, can be done
Hi djangees,
I'm a TurboGears user, I like CherryPy, Kid and so. I like Django as
well and tried the tutorials.
What I like about Django is (obviously) the auto-generated admin
interface.
However, what I need to know is how
easy/difficult/deprecated/encouraged is to hack the auto-generated
admin
I need some help installing Django. (not a good sign for my ability to
use it!)
I have installed Python25 on Windows2000, and added it to the path.
Its at C:\Python25
I downloaded and unzipped Django 0.95 to C:\Django-0.95
I opened a console in c:Django-.095 and entered 'python setup.py
install'
I
You were quite right, Wayne, there was a mistake in my model (Charfield
instead of SlugField)...so don't I feel stupid!
A million thanks to everyone anyway!
(I feel quite well qualified to write an idiot's guide now...)
--~--~-~--~~~---~--~~
You received this me
If anyone wants to poke at our schema evolution code you should be
able to apply this patch attached.
It's mostly working. The bugs I know about are:
1) M2M fields can't be repointed at new tables properly
2) there's some weird quirk with modifying null and db_index at the
same time. i have to
I'm new to Django, so I was looking for some advice on good model and
app design and on how that affects performance.
My first app has nine models, and after working with it for a bit, it
seems like it's actually two apps: one for meta data and another for
content management.
Are there any rules
On Nov 13, 9:31 pm, "PoBK" <[EMAIL PROTECTED]> wrote:
> Umm guys,
>
> I think I'm being a bit dense this evening...
>
> I'm attempting to build set of template tags for some widget framework.
>
> The current way it works is:
>
> {% use_widget [pythonic path to widget] [args if required]%} tag load
This isn't working for you?
{% for organisation in object.organisation_set.all %}
{{
organisation.org_name }}
{% endfor %}
If the name works, but not get_absolute_url I'd say you have something
wrong with your model. Open a shell and play with you model to make
sure everything is wor
On 12/14/06, Bob <[EMAIL PROTECTED]> wrote:
>
> Waylan -
> I have revision 4198, so that's okay, and my PYTHONPATH does not have
> anything about Django or site-packages in it at all. However, when I
> run python and print sys.path, I see:
>
> ['', 'c:\\Python24\\lib\\site-packages\\setuptools-0.
> >That's easy.
Hi Timm,
Okay, this is a very simple example :-)
But Luke Plant's Tagging App modell is realy a bit more comple.
See>>
http://groups-beta.google.com/group/django-users/browse_frm/thread/a7cbd4fd843583be/5ef4a59b78dbb2e1?lnk=gst&rnum=1&hl=nl#5ef4a59b78dbb2e1
--~--~-~--
On 12/13/06, Steve Hutton <[EMAIL PROTECTED]> wrote:
> Does it have a realistic chance of being accepted into core if it's found
> to be bug free? Is it fully documented? Is the design controversial or
> does it follow a community consensus?
There was discussion about the general problem of sc
On 12/12/06, naitsirhc <[EMAIL PROTECTED]> wrote:
> This seems to be working quite well, and stays generic enough to use
> for any M2M non-symmetrical field for a given model. Any thoughts,
> comments, criticisms?
Obviously, it would be nice to be able to support this sort of thing
without havi
On 12/14/06, Crispin Bennett <[EMAIL PROTECTED]> wrote:
>
> My first experiment with Django is a kind of wiki that involves being
> able to add a variety of different types of pages, each with their own
> set of fields. The obvious way to do this would be to create a base
> model page class which
MC wrote:
> Problem:
> I order dates and null values in ascending order under MySQL. To my
> surprise, null values are listed first, then actual dates. Turns out
> that in MySQL, null values are LOWER than non-null values, whereas
> Postgresql is the reverse. As outlined here
> http://troels.arvin
Waylan -
I have revision 4198, so that's okay, and my PYTHONPATH does not have
anything about Django or site-packages in it at all. However, when I
run python and print sys.path, I see:
['', 'c:\\Python24\\lib\\site-packages\\setuptools-0.6c1-py2.4.egg',
'c:\\Python24\\lib\\site-packages\\django
And what encoding is showed in the page info? ...when you right click
somewhere in the page and choose "View Page Info" from the menu. Maybe
just the default character encoding in your firefox settings is set
wrongly?
You can always override admin templates copying them into your
custom_templates/
It's not my html page, but the django admin page.
the head of admin page is like this:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; lang="zh-cn" xml:lang="zh-cn" >
站点管理员
no encoding here, but lang = 'zh-cn'.
and all chinese characters in my pages and my
Hi.
Terji7 schrieb:
> Oliver Lavery wrote:
> > It seems that the most obvious way would be to alter _save_FIELD_file in
> > django/db/models/base.py ~ line 335.
[...]
>
> That sounds like a horrible way to me. Rather use the save() method in
> the models:
The uploaded image file is being saved b
Joseph Heck wrote:
> You can avoid the test database issue by having the students use SQLite as
> the database backend. They can store the database in their home directories
> and be good to go.
>
> -joe
In addition, depending on your thin client solution, if you start
tracd locally on your thin
In other words, why can't I simply put
{{organisation.get_absolute_url}}
to return the organisation's detail page?
Surely the whole point of the get_absolute_url is to be able to call an
object from wherever?
So what would I put in the model and/or urls.py to be able to do this?
At the moment I
Problem:
I order dates and null values in ascending order under MySQL. To my
surprise, null values are listed first, then actual dates. Turns out
that in MySQL, null values are LOWER than non-null values, whereas
Postgresql is the reverse. As outlined here
http://troels.arvin.dk/db/rdbms/#select-o
I´m also interested in this extension.
does anyone has some information?
thanks,
patrick
Am 13.12.2006 um 23:35 schrieb Justin:
>
> It looks like this edit_external option may be what you're looking
> for:
> http://code.djangoproject.com/ticket/1476
>
> Does anyone know if this enhancement i
76 matches
Mail list logo