On 9/14/06, Adam <[EMAIL PROTECTED]> wrote:
> I'm using a copy from subversion, revision 3757. The location of my
> django src location is symlinked from the new site-packages folder in
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/
Make sure that directory is
In an attempt to get the Python Image Library working, I installed the
Universal Python and PIL packages from
http://pythonmac.org/packages/py24-fat/index.html. Originally, I was
set up with a compiled version of 2.4 as was the example at the time.
Now, though, I'm getting this error whenever I
Russell Keith-Magee wrote:
> > 2. In the edit form, the mineral field is not pre-populated with the
> > existing minerals. So, for example, if I want to add one mineral to
> > the specimen, I have to remember what minerals were already associated
> > with it and re-click them, or else those
Guillermo,
here have many projects created with Django that you can download and know it:
http://code.google.com/hosting/search?q=label:django
http://code.djangoproject.com/
2006/9/13, DavidA <[EMAIL PROTECTED]>:
>
>
> Guillermo Fernandez Castellanos wrote:
> > I am thinking of using the
Guillermo Fernandez Castellanos wrote:
> I am thinking of using the comments framework for a project, although
> besides the FreeComment there's no real documentation about it that I
> have found besides the source.
This might help:
On 9/14/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote:
>
> Hi Richard,
>
> Check out http://code.djangoproject.com/wiki/CookBookScriptsNoSuperUserSyncdb
FYI - while the techniques on this page will work, they are somewhat
superceded by the modifications added to manage.py as part of the test
new news --
Add parent named 'foo', fill in some children, save ... parent exists,
no children exists.
Add admin-class to children code, so we can manually add children on
admin page.
Add a child *manually* linked to parent 'foo'.
View parent config --- VOILA, its there.
But ==> add 1 more
On 9/13/06, Benjamin Ward <[EMAIL PROTECTED]> wrote:
> Is hacking markup.py the only way to get smartypants running? Happy to have
> a go, but i was just wondering if there was a more elegant,
> non destructive way.
You can drop a smartypants filter into any templatetag library you
like; there's
On 14/09/2006, at 8:25 AM, Guillermo Fernandez Castellanos wrote:It also seems to be a hack of the django source: """ The "markup" template tag that is included with Django doesn't support SmartyPants by default. It handles Markdown, Textile, and restructured text. I hacked the markup template tag
ditto -- just bumped into this today.
When I edit my "parent" class, can fill in 3 "children" ... but
only saves the parent. The database does not contain the 3 children I
added when creating the parent.
Children have a simple ForeignKey pointing back to parent with an
'inline_edit' setting
Hi Richard,
Check out http://code.djangoproject.com/wiki/CookBookScriptsNoSuperUserSyncdb
On 14/09/06, Henhiskan <[EMAIL PROTECTED]> wrote:
>
> Hi fellows,
>
> How can I run manage.py syncdb without ask me for a user admin.
> I try with manage.py syncdb --noinput but didn't work.
>
> regards.-
i was trying to display some text
it is in utf-8 in postgres and when it
is displayed in firefox and ie, it gets displayed as some symols with
4numbers in a box or so even for ' apostrophe please tell me how to
display this properly i try title.__str__
I'm assuming that you're dynamically
for future reference.
the easiest way to get a hint on what is going on is to look at the
backtrace from the core dump and see what it says.
$ gdb $(which python) --core=
gdb> bt
this is what I have done in the past, when python segfaulted..
for me it turned out to be python was using a
Cheers,
I've been looking at Lost-theories code lately, and actually, after
looking at the Jeff's post, it seems that the smartypants filter is a
filter that he modifie and dropped in the python path:
"""
As for SmartyPants -- there is a Python port. I've found it to be not
quite as perfect as
How about slicing to 1000 (or however much you want to be safe that
you'll get 200 of non-tags), then strip, then slice down to 200.
For a slightly different approach there is a patch I wrote for
providing an html-aware truncatewords filter at
http://code.djangoproject.com/ticket/2027 which you
Hi fellows,
How can I run manage.py syncdb without ask me for a user admin.
I try with manage.py syncdb --noinput but didn't work.
regards.-
--
Richard Rossel
Valparaiso - Chile
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Guillermo Fernandez Castellanos wrote:
> There is an option, the APPEND_SLASH in CommonMiddleware, that will
> rewrite URLs that lack a trailing slash to be redirected to the same
> URL with a trailing slash, unless the last component in the path
> contains a period.
>
On 9/13/06, Hawkeye <[EMAIL PROTECTED]> wrote:
>
> Nevermind...
>
> Looks like Django defaults to the default MySQL table type (MyISAM),
> which doesn't support transactions.
>
> My fault completely.
You can change the default table type in your MySQL server
configuration (/etc/mysql/my.cnf).
I also use laptop with dual boot (Windows/Fedora) and I'm very happy.On 9/13/06, Michael Samoylov <[EMAIL PROTECTED]
> wrote:I use PC with linux. PC laptop is more than twice cheaper than Mac
--~--~-~--~~~---~--~~
You received this message because you are
Cheers,
I don't know if this has to do with the flatpages framework, but
Django is sensitive to the trailing slash. I think some browsers add
the trailing slash automagically, and this may be the case of yours.
There is an option, the APPEND_SLASH in CommonMiddleware, that will
rewrite URLs
Yup, Jeff's code uses it, and I'm using it, but I'd be the first to
admit I don't really know what's going on. I'd love to implement the
Karma functions, but don't have a clue.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I set up a flatpage for my local homebrew club to target the index
page. To do this I set the URL for the flatpage to be "/".
Today I got a few reports that when users visited my site by typing
"www.cascade-brewers.com" they got nothing. But if the added the
trailing slash
On 9/13/06, Guillermo Fernandez Castellanos > My questions are:
> - Did someone use it in a project accesible to others so I can get
> inspired from his example?
Jeff made the source code behind his lost-theories.com site available
freely, and IIRC it uses the registered comments system. See
Cheers,
I am thinking of using the comments framework for a project, although
besides the FreeComment there's no real documentation about it that I
have found besides the source.
My questions are:
- Did someone use it in a project accesible to others so I can get
inspired from his example?
-
Hi,
I have an existing 3GB PostGIS legacy database which i
am inspecting with:
django-admin.py inspectdb > /some/directory/models.py
i have installed psycopg2 so my settings.py looks
like:
DATABASE_ENGINE = 'postgresql_psycopg2'
when i run the command i get the error:
File
On Wednesday 13 September 2006 14:41, James Bennett wrote:
> I've written about that in a "quick summary" sort of way; you might
> want to read it:
> http://www.b-list.org/weblog/2006/06/04/lets-talk-about-frameworks-dba-edit
>ion
Thanks James, a nice "generic" summary.
For my part I would
The solution is:
return HttpResponse(simplejson.dumps("%s" % errors), 'text/javascript')
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Heck, why not get the best of both worlds: Get a MacBook or other
Intel Mac. You can run the delicious UNIX-y goodness of MacOS X for
real work and then drop in to Windows when you need to do whatever it
is that people would want to do in Windows (get headaches?).
Django works wonderfully
Cheers,
You're in a *NIX, aren't you?
The error tells you everything: OperationalError: attempt to write a
readonly database
Just make sure the web server has write rights on the sqlite3
database, and on the "directory" where your database is. It's a common
gotcha, and still now gives me nasty
On OSX, one of the first thing I do is download and installthe latest Python from http://www.python.org/downloadIt's straight forward and let you have up to date python
so you can avoid problems like that.On 9/13/06, Eric Walstad <[EMAIL PROTECTED]> wrote:
One of the developers on my team works on
I use PC with linux. PC laptop is more than twice cheaper than Mac
--~--~-~--~~~---~--~~
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
On 9/12/06, Rafael SDM Sierra <[EMAIL PROTECTED]> wrote:
On 9/12/06, James Bennett <[EMAIL PROTECTED]> wrote:
File a ticket against the search-api branch, and attach your diff :)
Done: http://code.djangoproject.com/ticket/2707
Thanks for your help James :D
Can I attach how much patch I want when
On 9/13/06, keukaman <[EMAIL PROTECTED]> wrote:
>
> I am in the market for a notebook computer that I will be doing my web
> design work on. Could I get some comments related to which is better
> for Django work - P.C. or Mac, as well as some pros & cons of each?
I use OS X as well for all my
Hi. I'm fighting with AJAX-based forms and dev process is stalled
because of such error:
Exception Type: TypeError
Exception Value:
'\xd0\x9e\xd0\xb1\xd1\x8f\xd0\xb7\xd0\xb0\xd1\x82\xd0\xb5\xd0\xbb\xd1\x8c\xd0\xbd\xd0\xbe\xd0\xb5
\xd0\xbf\xd0\xbe\xd0\xbb\xd0\xb5.' is not JSON
Greetings, I'm having trouble using a Field that created in the Admin.
Here is the Field and the Form.
class BitsField(fields.Field):
def get_manipulator_field_objs(self):
return [CheckboxSelectMultipleBitsField]
def get_internal_type(self):
return "IntegerField"
class
Hi All -
The background:
I'm using SVN trunk with sqlite3, and can't access the admin page due
to a write-error on the database ("OperationalError: attempt to write a
readonly database"). I've attempted a number of permissions changes
(even doing a temporary chmod 777) on the database file with
On 9/14/06, Eric Walstad <[EMAIL PROTECTED]> wrote:
> One of the developers on my team works on a Mac, while the other two of
> us are on Linux. Our apps are deployed on Linux PC machines. The Mac
> guy had a harder time setting up his development environment, having to
> compile more packages
Michael ,Some obscure (to me anyhow) tests failed for django. A fresh build (with the compiler used for my mysql installation) and install from source of python and MySQLdb has overcome the problem which I suspect stemmed from mixing elements compiled with different compilers? Thanks for you
keukaman wrote:
> I am in the market for a notebook computer that I will be doing my web
> design work on. Could I get some comments related to which is better
> for Django work - P.C. or Mac, as well as some pros & cons of each?
> Thanks.
One of the developers on my team works on a Mac, while
I use both ( well, mainly the MacBook lately ), and I cannot notice
any real difference between the two ( regarding django development of
course ). Only one thing - postgres setup can be a little tricky on
the macbook, while mySQL has a nice native installer which "just
works". You have
On 9/13/06, keukaman <[EMAIL PROTECTED]> wrote:
> I am in the market for a notebook computer that I will be doing my web
> design work on. Could I get some comments related to which is better
> for Django work - P.C. or Mac, as well as some pros & cons of each?
> Thanks.
I'll be the first to say
I am in the market for a notebook computer that I will be doing my web
design work on. Could I get some comments related to which is better
for Django work - P.C. or Mac, as well as some pros & cons of each?
Thanks.
--~--~-~--~~~---~--~~
You received this message
There are python rails-like helpers:
http://pylonshq.com/WebHelpers/module-index.html
But they aren't used by django. (Pylons for example uses them)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
On 9/12/06, Hawkeye <[EMAIL PROTECTED]> wrote:
>
> The FormWrapper design pattern seems to be great, but I have a
> question.
>
> Is there any way that I can put errors in the response that aren't
> linked with form fields?
>
There is currently a discussion[1] going on in the dev-list regarding
On 9/13/06, npverni <[EMAIL PROTECTED]> wrote:
> Coming from Rails...haven't seen much about Ajax helpers built in to
> Django, are there any?
No, thankfully :)
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
Hello,
I have an strange issue when trying to edit inline my model on the
Django admin. Some of the models works properly and others not.
It doesn't give any error but the data is not saved.
For example:
class Provincia(models.Model):
nombre = models.CharField(maxlength=50, unique =
Coming from Rails...haven't seen much about Ajax helpers built in to
Django, are there any?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On 9/13/06, Gary Doades <[EMAIL PROTECTED]> wrote:
> Database engines such as PostgreSQL and SQLServer etc. have had enormous
> amounts of testing, putting huge empahsis on data integrity and
> efficiency. I'm not sure why many of the ORMs out there (Django is not
> alone in this) presume that
Nevermind...
Looks like Django defaults to the default MySQL table type (MyISAM),
which doesn't support transactions.
My fault completely.
--Ben
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
>
> This comes up every once in a while, and every once in a while I post a
> link to my solution to this issue from a while back:
>
> http://code.djangoproject.com/ticket/1007
>
> This patch, while it might need some small tweaks to work against
> recent trunks, lets you essentially turn
This comes up every once in a while, and every once in a while I post a
link to my solution to this issue from a while back:
http://code.djangoproject.com/ticket/1007
This patch, while it might need some small tweaks to work against
recent trunks, lets you essentially turn this behavior off
On 9/12/06, Hancock, David (DHANCOCK) <[EMAIL PROTECTED]> wrote:
> No matter what I set the time_zone to in settings.py, the behavior of the
> Now button in the Admin for a DateTimeField doesn't change. When I click it
> (and when a date displays) it's my local timezone (Eastern).
The button in
On 9/12/06, Benjamin Ward <[EMAIL PROTECTED]> wrote:
> Any ideas what am i doing wrong? I did search around for some clues
> but had no luck getting a solution.
Django doesn't ship a smartypants filter, so make sure Jeff's defined
one in the code you're using.
--
"May the forces of evil become
I'm trying to modify an ImageField in Admin. That is, I have been able
to upload the Image and now I want to change it.
The Admin gives me an error saying that I must supply a valid
filename. As I have supplied a good one (even the same I upload
sucessfully) I can't understand why it happens,
SmileyChris wrote:
> Hi Mathias,
>
> I think you're looking for the .extra() queryset method.
> http://www.djangoproject.com/documentation/db_api/#extra-select-none-where-none-params
> -none-tables-none
Thats what I do now, but I consider it a hack. I really hoped the
db-api could express this.
because i have to display about 10 elements and each can be over 1 or
2pages long
but i m going to display only 200 characters from each and if i strip
the whole thing it becomes a huge time lag for generating the page..
SmileyChris wrote:
> Why don't you strip before you slice.
56 matches
Mail list logo