Good you asked, I don't know because I couldn't try it yet. This a bit
complicated. We are spread across Europe and I don't have the access as
admin to the server, so what I am doing is the best I can because then the
admin will test it. She set up the apache to restart every hour. So you see,
if I
On Sat, 2009-01-10 at 08:03 +, Alan wrote:
> Good you asked, I don't know because I couldn't try it yet. This a bit
> complicated. We are spread across Europe and I don't have the access
> as admin to the server, so what I am doing is the best I can because
> then the admin will test it. She s
I use mac book pro, and I didn't like the way I have to set put apache2 +
mod_wsgi in mac osx... poor documentation by the way.
I will give a 2nd thought about it.
Thanks Malcolm.
Alan
On Sat, Jan 10, 2009 at 08:27, Malcolm Tredinnick
wrote:
>
> On Sat, 2009-01-10 at 08:03 +, Alan wrote:
>
On Jan 10, 7:32 pm, Alan wrote:
> I use mac book pro, and I didn't like the way I have to set put apache2 +
> mod_wsgi in mac osx... poor documentation by the way.
> I will give a 2nd thought about it.
Huh, what are you talking about?
The mod_wsgi package builds against Apple supplied Apache
It looks like it's clear video conversion is your bottleneck.
I would also suggest doing that on a different worker process.
You will also want to avoid converting the same file again if you've
done it before...
I was suggesting to give a shot of using ONLY nginx with Django.
If you search in G
You can simply append django's bin directory to your _system_ PATH
variable (still the same way as on the earlier versions - through the
computer properties - advanced)
I do not have my Vista laptop on hand, but I believe, this it what I
have done to make it work
On Jan 10, 5:55 am, Rex wrote:
>
On Sat, Jan 10, 2009 at 6:27 AM, Ariel Mauricio Nunez Gomez
wrote:
>>> In the view for a single article, I would like to be able to pull up
>>> related articles based on shared keywords. Just pulling up all the
>>> articles that share at least one keyword would be to imprecise. What
>>> I'd like
Thanks Graham, indeed I was being stupid, I didn't realise that mac leopard
holds apache 2.2 now...
About docs, where can I find something about apache2 + mac osx + mod_wsgi
in http://docs.djangoproject.com or google? All I get is puzzles with
missing pieces...
OK, I am maybe just being lazy... I
On Jan 10, 9:37 pm, Alan wrote:
> Thanks Graham, indeed I was being stupid, I didn't realise that mac leopard
> holds apache 2.2 now...
> About docs, where can I find something about apache2 + mac osx + mod_wsgi
> inhttp://docs.djangoproject.comor google? All I get is puzzles with
> missing pie
On Sat, 2009-01-10 at 10:37 +, Alan wrote:
> Thanks Graham, indeed I was being stupid, I didn't realise that mac
> leopard holds apache 2.2 now...
>
>
> About docs, where can I find something about apache2 + mac osx +
> mod_wsgi in http://docs.djangoproject.com or google? All I get is
> puzz
juhu, it works...
I have to admit after reading my initial post again I could habe been
more clear.
So here my example & test case which now works with Umapathy S
suggestion.
I created a model:
class Diameter(models.Model):
thickener_diameter = models.SmallIntegerField()
when I add a few
Not hurt Malcolm. In fact I really try to avoid asking at the list, trying
to google first, and I really appreciate the work of guys like you and
Graham. I confess I don't have the patience enough to run a mailing list.
And you guys here are pretty much helpful, like Karen for example, besides
you
Can't you use crontab to submit your conversion task?
Cheers,
Alan
On Sat, Jan 10, 2009 at 09:19, Stefan Tunsch wrote:
>
> It looks like it's clear video conversion is your bottleneck.
>
> I would also suggest doing that on a different worker process.
>
> You will also want to avoid converting t
Hello!
I am newbie in django now reading Django Book at
http://www.djangobook.com/en/1.0/.
As far as I know it covers django version 0.96, not modern releases of
1.* branch. So my questions are:
1) How relevant this book on the 1.* django ?
2) What should I keep in mind while reading this book
On Jan 10, 7:22 am, timur wrote:
> Hello!
>
> I am newbie in django now reading Django Book
> athttp://www.djangobook.com/en/1.0/.
> As far as I know it covers django version 0.96, not modern releases of
> 1.* branch. So my questions are:
>
> 1) How relevant this book on the 1.* django ?
> 2) W
I've got a Topic model, which is a bit like a category. Then there are
TopicItem objects, which have a foreign key to a Topic, and a generic
foreign key to anything else in the website, so that I can attach
anything to a particular Topic. In my admin site, a few models have a
generic inlin
Hello,
I'm sure this is a easy question.
In one of my views I need to delete the session variable
'request.session['percent']'. However, sometimes 'request.session
['percent']' never gets created. When this is the case I get an error
when I do 'del request.session['percent']'. How do I check t
Hi all,
I've created a directory for all my usable apps, configured PYTHONPATH
and everything's fine.
But I got a problem when some apps release new versions and I want to
update them on my hd.
Plus, usually I get the svn version of an app to quickly update it.
How do you resolve this kind of pro
Hi,
I'm trying to write a generic filter function do something like
following:
MyModel.objects.filter( getattr(???,my_dict['search_field']
+'__iexact')=my_dict['search_value'] )
But I don't know what to put in place of '???'
Where does 'field__iexact' actually come from?
Is it part of MyMo
rabbi wrote:
> Hi,
> I'm trying to write a generic filter function do something like
> following:
>MyModel.objects.filter( getattr(???,my_dict['search_field']
> +'__iexact')=my_dict['search_value'] )
>
> But I don't know what to put in place of '???'
> Where does 'field__iexact' actually
Michael wrote:
> Hello,
> I'm sure this is a easy question.
>
> In one of my views I need to delete the session variable
> 'request.session['percent']'. However, sometimes 'request.session
> ['percent']' never gets created. When this is the case I get an error
> when I do 'del request.session['
High 5! :-)
On Jan 10, 7:30 pm, Christian Joergensen wrote:
> rabbi wrote:
> > Hi,
> > I'm trying to write a generic filter function do something like
> > following:
> > MyModel.objects.filter( getattr(???,my_dict['search_field']
> > +'__iexact')=my_dict['search_value'] )
>
> > But I don'
On 10 Sty, 18:42, "uber.ubiwanken...@gmail.com"
wrote:
> Hi all,
> I've created a directory for all my usable apps, configured PYTHONPATH
> and everything's fine.
> But I got a problem when some apps release new versions and I want to
> update them on my hd.
Why? What is the problem?
> Plus, usu
Sorry, I'm afraid I was not too clear.
For example:
I've got 2 projects 'myproject1' and 'myproject2' that use django-cms
(and django-tinymce and so on...).
'myproject1' use an old version of django-cms, 'myproject2' a new one.
In settings.py of my projects I have:
INSTALLED_APPS = (
On Sat, Jan 10, 2009 at 1:15 PM, uber.ubiwanken...@gmail.com
wrote:
>
> Sorry, I'm afraid I was not too clear.
> For example:
>
> I've got 2 projects 'myproject1' and 'myproject2' that use django-cms
> (and django-tinymce and so on...).
> 'myproject1' use an old version of django-cms, 'myproject2
On 10 Sty, 20:15, "uber.ubiwanken...@gmail.com"
wrote:
> Sorry, I'm afraid I was not too clear.
> What I have to do? How I have to put the new version?
> How can I have both versions of django-cms?
Use virtualenv! It is what you need :)
--~--~-~--~~~---~--~~
You re
hi folks,
I am currently trying to create an app which allows the user to
generate flowsheets (of a chemical plant)
So far I have created all the basics and allow the user to enter
information about the individual unitsw chemicals etc and the user can
even run a simulation.
what I now want to d
Hello,
I able to send an html email using the code below:
///
def emaildiscount(request):
subject, from_email, to = 'hello', 'u...@domain.com',
'u...@domain.com'
text_content = 'This is an important message.'
html_content = 'This is an important message.'
msg = EmailMultiAlternat
Hey Alistair,
For static image generation, I've used pygraphviz (
http://networkx.lanl.gov/pygraphviz/), a Python interface to AT&T's graphviz
library.
Regards,
Jeff
On Sat, Jan 10, 2009 at 12:41 PM, Alistair Marshall <
runninga...@googlemail.com> wrote:
>
> hi folks,
>
> I am currently trying
You can create a template and render it the same way you would in a
view, checkout the render_to_string function(it's in django.template I
believe).
Alex
On Jan 10, 2:41 pm, Michael wrote:
> Hello,
> I able to send an html email using the code below:
>
> ///
>
> def emaildiscount(request):
>
Hello List,
So, using django server por development and my apps were working fine. Now
that I got apache2 + mod_wsgi working (on Mac Leopard), when trying to
access a page, I always get a error saying "TemplateDoesNotExist" and I can
see why, it's looking for templates in $HOME folder (eg.
"/Users/
On Jan 10, 3:44 pm, Alan wrote:
> Hello List,
> So, using django server por development and my apps were working fine. Now
> that I got apache2 + mod_wsgi working (on Mac Leopard), when trying to
> access a page, I always get a error saying "TemplateDoesNotExist" and I can
> see why, it's looki
First, I understand that the world economy is in a slump, and that
the job market as a whole has not fared well of late. But even before
the recent downturn, I noticed that there are precious few jobs in
Django development (yes, I know about DjangoGigs.com). A simple
keyword search on popu
And there's a new version in the works:
http://holovaty.com/blog/archive/2009/01/09/0133
I found the book was good for getting a broader explanation of certain
concepts, especially when I first started with Django.
On Jan 10, 5:22 am, timur wrote:
> Hello!
>
> I am newbie in django now reading
On Jan 10, 9:41 pm, Alistair Marshall
wrote:
> hi folks,
>
> I am currently trying to create an app which allows the user to
> generate flowsheets (of a chemical plant)
>
> So far I have created all the basics and allow the user to enter
> information about the individual unitsw chemicals etc a
My opinion, RoR was just right there when people were getting
frustated with java and perl and it was very well marketed hence much
wider adoption. now Ruby has another framework - MERB which is
gaining traction.
Django is like RoR + MERB + more based on presentations I have seen on
RoR and MERB
Javascript:
document.getElemnetById(’textareacontent’).value.replace(/\n/
g,’’);
PHP:
preg_replace(”/\n/”,””,$_REQUEST['t1']);
Ruby:
(teaxtareacontent).gsub(/\n/,””)
( reference -
http://rkutti.wordpress.com/2008/01/31/display-textarea-content-with-line-breaks-in-html-page/)
--~--~-~--
On Jan 10, 8:13 pm, zweb wrote:
> Javascript:
> document.getElemnetById(’textareacontent’).value.replace(/\n/
> g,’’);
> PHP:
> preg_replace(”/\n/”,””,$_REQUEST['t1']);
> Ruby:
> (teaxtareacontent).gsub(/\n/,””)
>
> ( reference
> -http://rkutti.wordpress.com/2008/01/31/display-textarea-content-w
Hi all, extreme Django newbie here (trying it out for the first time
today) so I apologize in advance if my question turns out to be
stupid.
I was running through the intro tutorial and reached the "Customize
the admin form" section (http://docs.djangoproject.com/en/dev/intro/
tutorial02/#customi
Hi Guys,
I am unable to save to table TEST_QST ,it returns error QstForm
object has no attribute 'save'
I have confirmed that
form.is_bound returns true
form.is_valid returns true
I have included my code in this post
Please asssit
#MODEL -
class TEST_TYPE(models.Model
I am having trouble with setting up a pre_save signal. I want to be
able to set a location in a model instance, but only have 1 entry at
any time. I thought about just overriding the save, and adding an
update something like:
def save(sefl):
oa = Article.objects.filter(location=self.location)
On Sat, 2009-01-10 at 15:38 -0700, David Lindquist wrote:
> First, I understand that the world economy is in a slump, and that
> the job market as a whole has not fared well of late. But even before
> the recent downturn, I noticed that there are precious few jobs in
> Django development (ye
On Sat, 2009-01-10 at 21:38 -0800, Dmitri13 wrote:
> Hi Guys,
> I am unable to save to table TEST_QST ,it returns error QstForm
> object has no attribute 'save'
> I have confirmed that
> form.is_bound returns true
> form.is_valid returns true
> I have included my code in this post
[...]
> # Cre
On Sat, 2009-01-10 at 22:26 -0800, juice wrote:
> I am having trouble with setting up a pre_save signal. I want to be
> able to set a location in a model instance, but only have 1 entry at
> any time. I thought about just overriding the save, and adding an
> update something like:
>
> def save(se
On Sat, 2009-01-10 at 12:58 -0800, Jeff Hammerbacher wrote:
> Hey Alistair,
>
> For static image generation, I've used pygraphviz
> (http://networkx.lanl.gov/pygraphviz/), a Python interface to AT&T's
> graphviz library.
pydot is another Python library for working with Graphviz. Whichever one
yo
45 matches
Mail list logo