I would take a look at BeautifulSoup(http://www.crummy.com/software/
BeautifulSoup/)
On Apr 9, 10:16 pm, [EMAIL PROTECTED] wrote:
> I'm looking for the easiest way to parse xml file in Django/Python
> without using dom methods like getelementbyid etc. I preffer jquery-
> like syntax/selectors.
On Wed, Apr 9, 2008 at 9:06 PM, Fridrik Mar Jonsson <[EMAIL PROTECTED]>
wrote:
>
> Hey fellow Djangorians,
>
> I've got an encoding problem with the latest checkout of Django. I
> just upgraded, on Mac OS X, from 0.96 over to the current SVN trunk.
> The migration worked well except for the fact
I'm looking for the easiest way to parse xml file in Django/Python
without using dom methods like getelementbyid etc. I preffer jquery-
like syntax/selectors. Unfortunatelly I can't find that kind of
library for Python.
--~--~-~--~~~---~--~~
You received this
Both computers have up to date code from svn, running save versions of
python, postgresql, psycopg2, etc. However the following code works on
the dev machine, but not on the production and I have no idea why.
On dev
>>> from django.contrib.comments.models import FreeComment
>>> from
> yeah but the thing is XLS spreadsheets have a lot more
> meta-data than CVS can handle
I've found the easiest way for us was to use the "XML
Spreadsheet" option (available via the Save As->Type drop-down in
at least Excel 2003 if not 2000, and readable in 2007 too). It's
fairly easy to
On Wed, Apr 9, 2008 at 5:44 PM, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> There's also xlrd:
>
> http://www.lexicon.net/sjmachin/xlrd.htm
XLRD seems to have had more active development. However, pyExcelerator
does both reading and writing of XLS which is nice.
They both have their place.
yeah but the thing is XLS spreadsheets have a lot more meta-data than
CVS can handle
On Wed, Apr 9, 2008 at 8:30 PM, Steve M <[EMAIL PROTECTED]> wrote:
>
> It it's just one table, you can write an HTML table and name the file
> with the .xls extension. Excel will open it just fine. Something
It it's just one table, you can write an HTML table and name the file
with the .xls extension. Excel will open it just fine. Something like
this:
On Apr 9, 6:43 pm, Roboto <[EMAIL PROTECTED]> wrote:
> I'm curious =P A couple of my users are requesting that I find a way
> to export some data to
Hey fellow Djangorians,
I've got an encoding problem with the latest checkout of Django. I
just upgraded, on Mac OS X, from 0.96 over to the current SVN trunk.
The migration worked well except for the fact that when I create an
entry with the admin interface that makes use of an Icelandic
I'm looking at the FormWizard code, and in __call__, we have the following:
for i in range(current_step):
form = self.get_form(i, request.POST)
if request.POST.get("hash_%d" % i, '') != self.security_hash(request, form):
return self.render_hash_failure(request, i)
On Thu, Apr 10, 2008 at 6:42 AM, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>
> On Wed, Apr 9, 2008 at 6:54 AM, Russell Keith-Magee <[EMAIL PROTECTED]>
> wrote:
> > On Wed, Apr 9, 2008 at 1:47 AM, andy baxter
> > >
> > > Do you mean middleware specifically written for django? If so not sure,
> > >
On Apr 10, 1:54 am, Peter Rowell <[EMAIL PROTECTED]> wrote:
> > This means that a python version has to be selected before the PythonPath
> > directive is processed.
>
> "Selected" is not quite the right way to think of it.mod_pythonhas
> the Python interpreter linked in at build time, not run
On Wed, Apr 9, 2008 at 5:43 PM, Roboto <[EMAIL PROTECTED]> wrote:
> I'm curious =P A couple of my users are requesting that I find a way
> to export some data to excel so that they can manipulate as fit.
It's easy enough to dump to CSV using the Python standard library, and
Excel reads that
On Apr 9, 11:43 pm, Roboto <[EMAIL PROTECTED]> wrote:
> I'm curious =P A couple of my users are requesting that I find a way
> to export some data to excel so that they can manipulate as fit.
>
> Any thoughts?
We used pyExcelerator to generate Excel reports from The Carbon
Account:
Oops... it's the admin site... sorry 'bout that :/
Check to see if you have:
'django.template.loaders.app_directories.load_template_source',
in your TEMPLATE_LOADERS setting.
-Justin
On Wed, Apr 9, 2008 at 4:05 PM, Justin Fagnani <[EMAIL PROTECTED]>
wrote:
> Sounds like you just need to set
On Wed, Apr 9, 2008 at 6:01 PM, mw <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm having problems with my installation of django on OS X leopard. I
> followed the manual for the installation and installed Django from the
> svn repository.
>
Exactly, precisely, to the letter what you did to install
Sounds like you just need to set the TEMPLATE_DIRS setting
http://www.djangoproject.com/documentation/templates_python/#the-template-dirs-setting
-Justin
On Wed, Apr 9, 2008 at 3:01 PM, mw <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm having problems with my installation of django on OS X
If your users don't need a binary .xls file, there's an XML-based
format for excel. I've rolled my own python code to export data to
it, it's pretty easy to do and the excel users didn't seem to notice
the difference :)
Colin
On Wed, Apr 9, 2008 at 3:45 PM, Jeff Anderson <[EMAIL PROTECTED]>
Roboto wrote:
I'm curious =P A couple of my users are requesting that I find a way
to export some data to excel so that they can manipulate as fit.
Any thoughts?
I remember seeing an MS office library for perl a very very long time
ago. I'm sure that there is something out there for python
There's also xlrd:
http://www.lexicon.net/sjmachin/xlrd.htm
On Wed, Apr 9, 2008 at 1:23 PM, Claudio Escudero <[EMAIL PROTECTED]> wrote:
> Thanks,
>
> I liked it.
> =)
>
> I did that tips for using pyExcelerator with the django
> Http://www.developer.com/lang/other/article.php/3727616
>
> On
I'm curious =P A couple of my users are requesting that I find a way
to export some data to excel so that they can manipulate as fit.
Any thoughts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
On Wed, Apr 9, 2008 at 6:54 AM, Russell Keith-Magee <[EMAIL PROTECTED]>
wrote:
>
> On Wed, Apr 9, 2008 at 1:47 AM, andy baxter
> <[EMAIL PROTECTED]> wrote:
> >
> > Do you mean middleware specifically written for django? If so not sure,
> > but it might be worth looking at dojo
Hello,
I'm having problems with my installation of django on OS X leopard. I
followed the manual for the installation and installed Django from the
svn repository.
Some things seem to be working while others do not. I have reached
the point in the tutorial where I am supposed to access the
On Wed, Apr 9, 2008 at 4:21 PM, ydjango <[EMAIL PROTECTED]> wrote:
> owner = models.ForeignKey(Participant,null=True)
Not the *model* fields, the *form* fields for representing this type
of relationship.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
Yes, They are defined in model as
owner = models.ForeignKey(Participant,null=True)
all I want is to display only the Partcipants for a particular group
in the choice field ( not all participants)
and I am so frustrated now.
eg. Participant.objects.filter(group__exact=my_group)]
thanks
Ashish
Writing it here as lefora is written on django, and he or the developer
who wrote it for him will see it and be ashamed of themselves.
This guy just IM'd me asking me to digg his forum software.
I have never met the guy, and am assuming he also spammed other people
on the mailing list. and am
Hi Karen,
I like to use NaviCat for MySQL and I recreated my database using the
default collation, which did not add a binary collation. I don't see
an option in the database creation menu for utf8_general_ci in NaviCat
though.
I just need a chance to repopulate the DB and I'll try my search
On Wed, Apr 9, 2008 at 3:30 PM, ydjango <[EMAIL PROTECTED]> wrote:
> Miles and Owner are defined as foreign_key to respective tables.
Yes, but did you actually look at the docs for the field types that
make it easy to represent foreign keys?
--
"Bureaucrat Conrad, you are technically correct
I decided to not to use modelform and moved to using form from
newforms.
More coding but much more predictable behavior and easier to customize
Thanks
Ashish
On Apr 9, 1:30 pm, ydjango <[EMAIL PROTECTED]> wrote:
> for Miles, owner,
>
> All I need is subset of data.
> I have tried everything in
On Wed, Apr 9, 2008 at 4:35 PM, Brandon Taylor <[EMAIL PROTECTED]>
wrote:
>
> Here's the output from the 'portfolio_workcategory' table create:
>
>
> -- Table "portfolio_workcategory" DDL
>
> CREATE TABLE `portfolio_workcategory` (
> `id` int(11) NOT NULL auto_increment,
> `title` varchar(30)
Here's the output from the 'portfolio_workcategory' table create:
-- Table "portfolio_workcategory" DDL
CREATE TABLE `portfolio_workcategory` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(30) collate utf8_bin NOT NULL,
`position` smallint(5) unsigned NOT NULL,
PRIMARY KEY
for Miles, owner,
All I need is subset of data.
I have tried everything in code below, passing choices , queryset,
changing to choicefield etc. It just ignores everything and gets data
from __unicode_ function for the foreign key table - all rows. (
I am learning Python through Django, so may
I'm am one of the authors of the 2070 patch [1]. Indeed, it is what
will help you here.
However, I'm not sure how it will work with your code as I don't
really see the context and I'm not omniscient. However, here's how
you'd write to files in #2070::
from django.core.files.filemove import
On Wed, Apr 9, 2008 at 3:31 PM, Brandon Taylor <[EMAIL PROTECTED]>
wrote:
>
> Hi Karen,
>
> Here's an example of one of the models in question:
>
> class WorkCategory(models.Model):
>title = models.CharField(max_length = 30)
>position = models.PositiveSmallIntegerField()
>
>
On Wed, Apr 9, 2008 at 2:56 PM, ydjango <[EMAIL PROTECTED]> wrote:
> Not for model form, if a ChoiceField is based on foreign Key. It is
> getting values from the referenced table using the __unicode__ method
> in that table and ignoring the choices field passed to it.
Not in this case; the
Not for model form, if a ChoiceField is based on foreign Key. It is
getting values from the referenced table using the __unicode__ method
in that table and ignoring the choices field passed to it.
On Mar 27, 7:57 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 27, 2008 at 9:49 PM,
I hope they are documented to some extent. Is there any resource to
know such hidden gems... Its really very helpful at times.
On Apr 9, 8:56 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Apr 9, 11:52 am, stranger <[EMAIL PROTECTED]> wrote:
>
> > Thanks a lot it worked... I never heard of
Hi Karen,
Here's an example of one of the models in question:
class WorkCategory(models.Model):
title = models.CharField(max_length = 30)
position = models.PositiveSmallIntegerField()
def __unicode__(self):
return self.title
class Admin:
Emrah Unal wrote:
I need to show the user a printable pdf after clicking save in an
admin form. Creating pdf and other stuff is easy. I was unable to find
any way to hook that part yet.
I have similar functionality. I simply modified the admin template, and
when you are viewing an instance of
its better to use the existing code structure as much as possible. if
i were u i would first make the cursor return a gql comparable
object.
i plan to help on doing this but right now i dont have the time and a
working app account to do this.
when i am done making all my websites ill give
I need to load ChoiceField in form from table and need it to be
filtered based on parameter.
Following seemed like a good way and works for forms.form , I can
replace object.all() by objects.filter() and pass an arg to __init_
But it works for class ContactUs(form.Form) but NOT for
On Wed, Apr 9, 2008 at 2:16 PM, Brandon Taylor <[EMAIL PROTECTED]>
wrote:
>
> I'm using MySQL 5, and it's using LIKE instead of ILIKE. I'll try
> grabbing the latest from trunk and see how she goes, otherwise I might
> switch to Postgres and file a ticket if the latest trunk doesn't
> address
Django gives you a great interface to the database and lets you pull things
from your objects without having to write custom SQL (which is one of the
reasons PHP still irks me). The hook to your models and applications through
the templates are template tags. You can write your own. Here is the
On Wed, Apr 9, 2008 at 2:00 PM, Andrew D. Ball <[EMAIL PROTECTED]> wrote:
>
> Greetings.
>
> Is there a way for me to intruct Django that I
> want to use InnoDB with MySQL, as well as UTF-8?
>
> Currently, our database defaults to MyISAM and
> some Swedish 8-bit character encoding. I've
> got a
You have 2 options to accomplish this. Inside your models you can hijack
your save function. Here are some docs on that:
http://www.djangoproject.com/documentation/model-api/#overriding-default-model-methods
or there are signals that you can use too. Those are a little bit more under
the hood but
Hello,
is it possible to tell the built-in admin interface to execute a command
when I create a new instance of a certain model?
As part of my AI studies I have written a neural network for character
recognition and now I want to use Django as a kind of frontend. So when
I create a new
thanks karen!
On Apr 9, 12:37 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 9, 2008 at 8:44 AM, Lee Connell <[EMAIL PROTECTED]> wrote:
>
> > Hello All,
>
> > I am trying to customize django to fit into a directory structure that
> > makes sense for me and the project I am working
I'm using MySQL 5, and it's using LIKE instead of ILIKE. I'll try
grabbing the latest from trunk and see how she goes, otherwise I might
switch to Postgres and file a ticket if the latest trunk doesn't
address this.
Thank you SO much for your help!
Brandon
On Apr 9, 1:10 pm, Rajesh Dhawan
Hi Brandon,
>
> I see what the problem is, which isn't related to the SQL at all. It
> appears that "icontains" is not behaving as expected. It's supposed to
> be case-insensitive, but it's doing the opposite.
>
> Example, if I search for a WorkCategory using "print" it will return 0
> results.
Greetings.
Is there a way for me to intruct Django that I
want to use InnoDB with MySQL, as well as UTF-8?
Currently, our database defaults to MyISAM and
some Swedish 8-bit character encoding. I've
got a file of SQL statements that change this
stuff for each table, but would very much like
to
I found it with follow argument :
http://groups.google.fr/group/django-users/browse_thread/thread/e168a85cdd7cc405/df8ad70ae9dfc904?hl=fr=gst=update+generic+view#df8ad70ae9dfc904
On 9 avr, 19:27, picky <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to django and I'm looking how to use generic
I noticed when looking at some code that after setting the queryset,
it appears in the form. I can call ._get_queryset() or .queryset and
it looks updated.
The problem occurs in the actual form rendered.
form.as_ul() does not have the updated choices for the checkbox. I'm
digging through
Thanks Rajesh, that worked great.
I see what the problem is, which isn't related to the SQL at all. It
appears that "icontains" is not behaving as expected. It's supposed to
be case-insensitive, but it's doing the opposite.
Example, if I search for a WorkCategory using "print" it will return 0
Hi,
On 8 Apr., 09:03, jurian <[EMAIL PROTECTED]> wrote:
> I like that concept.
>
> How does one go about including media files required for an
> application to function then?
> (I don't really know how to do this in the project/app configuration
> either)
Unfortunately, there is no standard way
Hi,
I'm new to django and I'm looking how to use generic views.
I see there is a generic view to update an object. I use it perfectly.
Now, I would like to know if it is possible to use it to update only
some field of an object without display an HTML field for each model
field. Actually, I
Thanks,
I liked it.
=)
I did that tips for using pyExcelerator with the django
Http://www.developer.com/lang/other/article.php/3727616
On Wed, Apr 9, 2008 at 2:05 PM, Alex Ezell <[EMAIL PROTECTED]> wrote:
>
> On Wed, Apr 9, 2008 at 12:02 PM, Claudio Escudero <[EMAIL PROTECTED]>
> wrote:
>
> >
On Wed, Apr 9, 2008 at 12:02 PM, Claudio Escudero <[EMAIL PROTECTED]> wrote:
> Anyone knows there is a script to do with manipulation files xls (Excel)?
Hi Claudio,
This is not Django specific, but there is a python module called
pyExcelerator, that while old, seems to work for me.
Hi,
Anyone knows there is a script to do with manipulation files xls (Excel)?
Thanks,
Claudio Escudero
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Having been a PHP programmer for several years and really loving it,
I've heard tons and tons of great things about Python. With this, I
decided to really try out django and the following link is what I've
started out with:
Thanks for the answers. I ended up using Pilgrim & Swartz's
'sanitize.py' [1], and adding a custom 'save' function to the classes
where I need it, like so:
def save(self):
self.summary=util.SomeTags(self.summary,'utf8')
self.body=util.SomeTags(self.body,'utf8')
On Apr 9, 12:44 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Sorry, I have no idea how to make Django execute:
>
> from django.db.models import Q
> from django.shortcuts import render_to_response
> from btaylor_design_v2.portfolio.models import WorkSample
>
> qset = (
>
On Wed, Apr 9, 2008 at 4:01 AM, firtzel <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I created a model (Catalog), which is linked to its items via a m2m
> relationship.
> I added a raw_id_admin=True to the items field (good when I have a
> long list of items).
> Also, for convience reasons I wanted a
Sorry, I have no idea how to make Django execute:
from django.db.models import Q
from django.shortcuts import render_to_response
from btaylor_design_v2.portfolio.models import WorkSample
qset = (
Q(title__icontains='whatever') |
On Wed, Apr 9, 2008 at 8:44 AM, Lee Connell <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I am trying to customize django to fit into a directory structure that
> makes sense for me and the project I am working on. Below is how
> django looks by default, underneath that is how I would like it.
On Apr 9, 11:55 am, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hi Rajesh,
>
> Thanks for the reply. Using select_related() isn't working either. I
> tried that earlier :) I'm not as familiar with running Django form the
> command line as I am with Rails - I'm not quite sure how to tell
>
On Wed, Apr 9, 2008 at 8:45 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> I'm using a non-Django form for a very large file upload ( I've never
> used FileField, because they used to give me problems, and this code
> has worked forever for smaller files ).
>
> It seems to work great with
Hmm, you've got me there! I looked at the source but I'm afraid my
eyes crossed halfway through. Maybe someone else can help?
On Apr 8, 2008, at 12:57 AM, Kevin Monceaux wrote:
>
>
> On Tue, 8 Apr 2008, Eric Abrahamsen wrote:
>
>> You just want plain old {% resetcycle %}, nothing else. It
On Apr 9, 11:52 am, stranger <[EMAIL PROTECTED]> wrote:
> Thanks a lot it worked... I never heard of MONTHS_3_REV. Must be a new
> one or I shouldn't have went through documentation. Anyway thanks
It's not documented but there are a lot of such helpful gems hidden
in django.utils.*
Hi Rajesh,
Thanks for the reply. Using select_related() isn't working either. I
tried that earlier :) I'm not as familiar with running Django form the
command line as I am with Rails - I'm not quite sure how to tell
Python which settings module to use. Can you please help me out?
TIA,
Brandon
> This means that a python version has to be selected before the PythonPath
> directive is processed.
"Selected" is not quite the right way to think of it. mod_python has
the Python interpreter linked in at build time, not run time. To
change which version you have, you need to rebuild
Thanks a lot it worked... I never heard of MONTHS_3_REV. Must be a new
one or I shouldn't have went through documentation. Anyway thanks
On Apr 9, 7:47 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> > Now I want my url to be /2008/apr/08 instead of 2008/04/08. Thats
> > means the
On Apr 9, 11:20 am, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm trying to build a simple search.
>
> Here are the models in question:
>
> class WorkCategory(models.Model):
> title = models.CharField(max_length = 30)
> position =
Hi everyone,
I'm trying to build a simple search.
Here are the models in question:
class WorkCategory(models.Model):
title = models.CharField(max_length = 30)
position = models.PositiveSmallIntegerField()
def __unicode__(self):
return self.title
I am using sqlite as my development server, and as my production
server. On both I am running the
0.97-pre-SVN-7409 version of Django. I have a query that works in
development, but not on production.
The query is:
words=Word.objects.filter(title__iregex=r'^[xyz]$+').order_by('-
length',
Thanks looks very helpful. I will look over that when I get a free
moment.
On Apr 9, 10:39 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Apr 9, 12:30 am, Chris <[EMAIL PROTECTED]> wrote:
>
> > I am trying create a custom model field that will create 2 field
> > instances, a
I have two objects with one being a fk to the other (there are other
fields in my example, but this seems the relevant parts)...
class x(models.Model):
name=models.CharField()
class y(models.Model):
name=models.CharField()
x=models.ForeignKey(x)
I'm currently using the
Hi,
>
> Now I want my url to be /2008/apr/08 instead of 2008/04/08. Thats
> means the 'apr' string coming from url should be converted to 04
> integer for comparision. Any help
Try this in your view where you need this conversion:
from django.utils.dates import MONTHS_3_REV
month_int =
Ah well, shame, never mind then.
Mat
-Original Message-
From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Brett Parker
Sent: 09 April 2008 15:44
To: django-users@googlegroups.com
Subject: Re: Google App Engine Django??
On 09 Apr 15:35, Mat wrote:
> Just found
On 09 Apr 15:35, Mat wrote:
> Just found the current project on code.google.com
>
>
>
> I'm not too upto date with django as you may know, but to me this looks like
> a few googlers are working away at integrating appengine db into django
> models.
>
>
>
>
Hi,
On Apr 9, 12:30 am, Chris <[EMAIL PROTECTED]> wrote:
> I am trying create a custom model field that will create 2 field
> instances, a CharField and a booleanField. I am using this with
> signals and dispatchers to insert data entered from this custom field
> into another model/table that
Just found the current project on code.google.com
I'm not too upto date with django as you may know, but to me this looks like
a few googlers are working away at integrating appengine db into django
models.
http://code.google.com/p/google-app-engine-django/
inparticular settings.py
Anybody successfully deployed their Django app to Appengine, and
willing to share their code? I have a fair bit of code working on the
dev_webserver, but it fails on deploying. Until the logging bug is
resolved I think I am stuck behind seeing 500 server errors. I am sure
I am missing something
I have been using NewForms admin for all of my sites for while. It is
running smooth and so far I have not had any big roadblock problems. Big
HOWEVER though, NewForms Admin is still very much in development. I have
found a few issues, that are easy to get around, but issues nonetheless,
with
Hi,
On Apr 9, 9:46 am, Manuel Meyer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> in a model Article i want to store the user who created the article.
As Felix suggested, the newforms-admin method is the ideal/recommended
method for accomplishing this in the admin. If you can not switch to
the
Hi Manuel,
On Apr 9, 2:46 pm, Manuel Meyer <[EMAIL PROTECTED]> wrote:
> in a model Article i want to store the user who created the article.
> I have this:
>
> class Article(models.Model):
>
> owner = models.ForeignKey(User, null=True, blank=True)
>
> But I wonder, if it is
On Apr 9, 2:54 pm, Kevin Monceaux <[EMAIL PROTECTED]> wrote:
> Django Fans,
>
> > Since newforms-admin will one day replace the current admin my thought
> > was to go ahead and dive into it now to save the trouble of duplicating
> > the effort when it lands on trunk.
>
> That's what I'm
Django Fans,
I'd like to second most of Rob's questions. While pondering some of the
same questions I came across his post and didn't see a reply.
On Sun, 9 Mar 2008, Rob Hudson wrote:
> How's the stability and/or "readiness" of newforms-admin?
I've just recently converted a web site I act
Hi,
in a model Article i want to store the user who created the article.
I have this:
class Article(models.Model):
owner = models.ForeignKey(User, null=True, blank=True)
But I wonder, if it is possible, to set the owner in an overwritten
save() method, as a drop-down list is
> Is there a way to strip out all the Word-generated crap (font
> tags, colors, etc.) while maintaining basic html tags like p, br, ul,
> etc?
>
I've had some success adapting Jeff Atwood's Word HTML regular
expressions to Python in order to remove the MS HTML cruft:
def sanitize(html):
#
I'm using a non-Django form for a very large file upload ( I've never
used FileField, because they used to give me problems, and this code
has worked forever for smaller files ).
It seems to work great with files 32MB and smaller... but anything
over that seems to throw this mod_python
Hello All,
I am trying to customize django to fit into a directory structure that
makes sense for me and the project I am working on. Below is how
django looks by default, underneath that is how I would like it. Is
this possible and how? I was having such a problem trying to get
"python
On Wed, Apr 9, 2008 at 1:47 AM, andy baxter
<[EMAIL PROTECTED]> wrote:
>
> Do you mean middleware specifically written for django? If so not sure,
> but it might be worth looking at dojo (http://www.dojotoolkit.org/). It
> is a javascript toolkit which provides an API to make cross platform
>
In Django's code I see
from imp import find_module [1]
However in google's runtime the app module is empty.[2] Can someone
more experienced than me, tell when this code will be hit, and what
can I do to not hit this code.
[1]
On 8 Apr 2008, at 3:23 am, Rodrigo Culagovski wrote:
> I am using tiny_mce to help the editors on a site edit text areas[1].
> However, I worry that they will paste in text from Word and make a
> mess. Is there a way to strip out all the Word-generated crap (font
> tags, colors, etc.) while
On Apr 9, 10:15 am, "Emrah Unal" <[EMAIL PROTECTED]> wrote:
> Thats my first time in Django. So far everything is great, thanks to
> everybody , who worked in the project.
>
> I need to show the user a printable pdf after clicking save in an
> admin form. Creating pdf and other stuff is easy. I
How can I go about selecting the python version for mod_python to use?
Using PythonPath doesn't seem to be the way to do this, as stated in
the mod_python documentation, this strign is evaluated. This means
that a python version has to be selected before the PythonPath
directive is processed.
Chris Hoeppner napisał(a):
> This is new to me. Dojo will be the official js toolkit for django?
> Above jQuery? How come?
No. It was stated many times: Django would not have any "official js
toolkit" and will not "be bound to" or "embrace" any single toolkit. You
are free to use the toolkit of
Hey Mr. Baxter,
This is new to me. Dojo will be the official js toolkit for django?
Above jQuery? How come?
~ Chris
El mar, 08-04-2008 a las 18:47 +0100, andy baxter escribió:
> Claudio Escudero wrote:
> > Hi,
> >
> > Someone knows there is any middleware that works with Ajax, similar to
> >
Thats my first time in Django. So far everything is great, thanks to
everybody , who worked in the project.
I need to show the user a printable pdf after clicking save in an
admin form. Creating pdf and other stuff is easy. I was unable to find
any way to hook that part yet. With some reading
Can you point me to a reusable social web project code? I have to
create my own social web, and don't want to re invent the wheel. The
features i need to implement are Personal profile, friends network,
uploading photos and video, streamming video...
Any idea?
thanx
1 - 100 of 109 matches
Mail list logo