I'm on ubuntu hardy heron, 2.6.24-19-server 64 bit
nginx/0.5.33
django 1.0.2
Python 2.5.2
mysql 5.0.51a-3ubuntu5.4
Here's how I installed everything from the beginning
http://pastie.org/515408
Here's how I restart my django app
#!/bin/sh
if [ -f /var/www/django/conf/pid/$1.pid ]; then
nd am currently maintaining. Strangely, it
> worked on my previous two installations ...
>
> http://wiki.nginx.org/NginxPythonFlup
>
> I'm using nginx version: nginx/0.6.35
>
> Any assistance on those wiki pages is greatly appreciated.
>
> -Adam
>
> On Jun 12, 1:41 pm,
Has anyone seen an issue where the nginx fastcgi is giving me a resource
unavailable error, but it only happens if I have debug set to False?
With debug set to True it never happens, with it set to False it always
happens, but only in one part of our application.
What are the differences with
;
>
>
>
> On Fri, Jun 12, 2009 at 10:30 AM, Matt Davies <tonm...@gmail.com> wrote:
>
>> Hello everyone
>> I'm going to write down a quite complex problem I'm having that I'm having
>> trouble debugging, but before I start has anyone noticed
Hello everyone
I'm going to write down a quite complex problem I'm having that I'm having
trouble debugging, but before I start has anyone noticed any strange
behaviour using django nginx fastcgi and flup recently?
If there is an obvious problem that I haven't heard about then any links I"d
be
I got it
Thanks for your help James
2009/5/19 Matt Davies <tonm...@gmail.com>
> Thanks James
> I'm serving the sites with nginx, but in my django urls file I'm using this
> line for a simple pages app we've built.
>
> urlpatterns += patterns('fact.pages.views',
>
what you are saying is that I should be able to tell nginx to serve up
the file prior to handing off the request to django, is that about it?
It should be easy, nes't pas?
2009/5/19 James Bennett <ubernost...@gmail.com>
>
> On Tue, May 19, 2009 at 2:47 AM, Matt Davies <tonm...@g
Morning everyone
Stupid question number 243
I've been asked to server up a crossdomain.xml file at the root of our web
sites so that another team of developers can access our data via Flash.
How do I set that up in the urls.py file? I use one urls.py file for many
web sites so it would be far
Thanks Rajesh
That's exactly what I was looking for.
2008/12/16 Rajesh Dhawan
>
> > I'd like to know everything there is to know about using the
> > filter_horizontal method when displaying admin backend choices.
> >
> > I want to re-engineer it.
> >
> > I was
Hello everyone
I'd like to know everything there is to know about using the
filter_horizontal method when displaying admin backend choices.
I want to re-engineer it.
I was wondering if anyone has done anything like this and could give me a
couple of pointers to get started.
Any assistance as
Ok, I remember now that in order to output different things in feeds you
specify what to output in the corresponding template in the feeds folder.
I'm guessing that the freecomments is using the tite and description.html
files in the templates/feeds folder.
Can anyone confirm this? Also, is
Hello peeps
I've got a news applications that is accepting comments on the posts.
I need to build a feed of the comments so I can monitor them and answer any
questions asked in the comments.
So, in my main URLS file I'm doing this
from django.contrib.comments.feeds import
ahh
Thanks Scott, I thought Arien was referring to me writing a script, when in
fact there's one in source code already.
Cheers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
I got you Scott
cron job it is
I seem to remember Adrian putting a nippet up somewhere with the code
in(laxz I know), anyone remember where it was?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Thanks for getting back to me Arien
If that's what people are doing to sort it out then that's fine by me, I can
write a cron job to run a script and everyone is happy.
If anyone has a more elegant solution I'm all ears.
I suppose I could overwrite sections of the middleware so that whenever a
Just a bit more information about how we're using the contrib.sessions
The only mention of it I have in my site is in the settings file, we don't
do anything else with it
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
)
Django source version is
Schedule: normal
Hello everyone
I know one of the uber genii who use this list will have a very easy
solution to this one.
What's the best method of keeping the django_sessions table from growing so
large?
I've just ran a delete from django_sessions where expire_date <= $yesterday
to clear it out a little,
ahh
there's already one written
from django.contrib.comments.feeds import LatestFreeCommentsFeed
I'll be back though as the feed is pumping out FreeComment Object as the
object title in the feed, hmm.
2008/4/30 Matt Davies <[EMAIL PROTECTED]>:
> Sorry for yet another dumbass
Sorry for yet another dumbass question, but can someone point me to a link
on how to set up a feed of all comments on a django site if you're using the
'django.contrib.comments', installed app.
Thanks again.
--~--~-~--~~~---~--~~
You received this message because
Hello everyone
I have a need to overwrite the item_link of my rss items in my feed.
I'm using the item_link method described here.
http://www.djangoproject.com/documentation/syndication_feeds/
If I use this code
def item_link(self, obj):
return 'balls'
and my site url in djangoadmin
Hi Jeff
This error
NoneType' object has no attribute 'startswith'
Usually means that you have got a NoneType obejct back from the database,
and you can't very well ask what it starts with, computer says no.
If I were you I'd spare an hour and go through the two screencasts on this
page with
Can anyone tell me if it's possible to overwrite the GUID of a feed item
with something other than the URL?
The ID of the item itself is what I'm after.
Here's how I'm trying to currently.
http://dpaste.com/32970/
Any help would be greatly appreciated.
I can't work out how the main get_object
Peter
Have you tried running the websites with lighttpd FCGI instead of Apache?
If you have the time and the spare resource, try it out, if your still
having memory problems then you will eliminated apache as the problem.
I doubt very much that it isn't the apache from what you've said though,
/01/2008, Matt Davies <[EMAIL PROTECTED]> wrote:
>
> Hello everyone
>
> Has anyone had any experience of serving up static content with nginx?
>
> Here's the relevant parts from my setings file
>
> MEDIA_ROOT = '/path/to/folder/that/contains/files/in/static/folders
Hello everyone
Has anyone had any experience of serving up static content with nginx?
Here's the relevant parts from my setings file
MEDIA_ROOT = '/path/to/folder/that/contains/files/in/static/folders/'
so that last folder has folders called images, and css etc etc.
MEDIA_URL =
with this pattern
so we changed it to
urlpatterns += patterns('daughter.pages.views',
(r'^(?P.*)/$', 'page'),
)
and it all works OK now.
On 17/12/2007, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
>
> On Fri, 2007-12-14 at 16:31 +, Matt Davies wrote:
> > Thanks Pe
t
> could be a change of behaviour.
>
> On Dec 14, 3:21 pm, "Matt Davies" <[EMAIL PROTECTED]> wrote:
> > Hello everyone
> >
> > I've got some links in our site that do not end in a slash
> >
> > e.g.
> >
> > http://website/even
Hello everyone
I've got some links in our site that do not end in a slash
e.g.
http://website/events/2007/12
Since upgrading from 6838 to 6915 these links to do not work any more, the
server tries to serve them as static files.
Can anyone tell me why they're not working any more?
In 6838 the
Hello everyone
I've got a views.py in my forms application that emails form data off to
another department.
It's a bookign form for events that appears on the events details page.
www.bongo.com/events/EVENTSLUG
The form is displayed in a template and is on our web site, works a treat.
I've
Hello everyone
Can anyone recommed a good tutorial on how to install django mysql
and fastcgi on a Fedora Core 6 box?
It's my box so there's no need to worry about hosting companies not
allowing certain things.
Any help, greatly appreciated.
the product they want and ask them to
use it and if they don't like it they don't have to pay for it
gamble though
On 26/09/2007, r <[EMAIL PROTECTED]> wrote:
>
> On Sep 26, 11:15 am, "Matt Davies" <[EMAIL PROTECTED]> wrote:
> > sorry omat, web2.6 is
sorry omat, web2.6 is how and what
wont be long
:-)
On 26/09/2007, r <[EMAIL PROTECTED]> wrote:
>
> On Sep 26, 8:13 am, omat <[EMAIL PROTECTED]> wrote:
> > I am just trying to find a
> > hack and I'd rather not do it at all then do it in PHP.
>
> As a code janitor, I'd rather you not do it
I like ridiculous, and this certainly is.
web2.5 is approaching, it's all about developers telling the clients
what it is they want
not the other way around
oMat, as you'll be completely lying to them anyway, why not show them
a totally different php site?
they wont know the difference
On
I've fixed the problem
I had to pull /admin/base.html into my templates folder and add this line to
the head
IE6 browsers that have their default character set set to Latin1 can now add
utf8 characters, they could not before.
This line should be in the base.html within django source code
On 29/08/2007, Matt Davies <[EMAIL PROTECTED]> wrote:
>
> Hi Jarek
>
> Yep, got that line in my.cnf, my cocoa Show Variables are all utf8.
>
> curl tells me it's utf8, request.meta tells me it's utf8, bit it really
> doesn't look like it is utf8
>
> any more sugg
to be a pain mate, but it'll really help me out if I can work out
whats going on here.
Interestingly enough only those two characters mess up, the others with
circumflexes are fine.
On 29/08/2007, Jason Davies <[EMAIL PROTECTED]> wrote:
>
>
> Hi Matt,
>
> On Aug 29, 11:19 am,
Thomas, I'm having one hell of a problem getting certain characters to work
in Unicode django
Basically the wW and yY with circumflexes above them.
You don't know if they're in some wierd character set that I need to grab
somehow?
On 29/08/2007, Thomas Badran <[EMAIL PROTECTED]> wrote:
>
>
>
you shouldn't limit your chances so much
"must be US citizens with no criminal history"
that's half the americans gone for starters :-)
Why live in New York?
People can do this from anywhere in the world. You use cutting edge
technology like django, good choice, but you're not prepard to use
carole, thanks
rather than checking the value, check it's there first
:-)
you're a star
On 24/08/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I believe that when a checkbox is not 'checked' it will not be in your
> request object ...
> so:
>
> if data.has_key('s_cymru'):
># it is
Hi James
can yo ucopy the rest of the email in mate, I'm not sure what my poitn was
going to be without seeing it :-)
Lots going on.
On 13/08/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
> hi Matt,
>
> On Aug 13, 3:13 pm, "Matt Davies" <[EMAIL PROTECTED]&
I have a feeds dictionary prepared like this in my urls.py
feeds = {
'latestdocuments': LatestDocuments,
'latestevents': LatestEvents,
'latestnews': LatestNews,
'latestnotices': LatestNotices,
'latestpages': LatestPages,
'latestphotos': LatestPhotos,
'latestjobs':
James, are you talking about putting a context processor into the
settings.py file?
On 13/08/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
> hi,
>
> someone to confirm this?
>
> thanks
> james
>
> On Aug 10, 10:29 am, james_027 <[EMAIL PROTECTED]> wrote:
> > hi,
> >
> > Are the context
xt=%s' % request.path)
et voila
On 08/08/07, Matt Davies <[EMAIL PROTECTED]> wrote:
>
> Ok, I'm now using the login_required decorator, much better
>
> one problem though, here's a snippet of a form
>
> http://pastie.caboo.se/85932
>
> How do I check the I
Ok, I'm now using the login_required decorator, much better
one problem though, here's a snippet of a form
http://pastie.caboo.se/85932
How do I check the IP prior to askign for a login check, and if the IP is
good, not ask for login?
I'm stumped
On 08/08/07, Matt Davies <[EMAIL PROTEC
))
which then throws me back to the page without logging me in at all, I can
put any old rubbish into that form.
I think I somehow need to make this part of the secured views do what I
need, really not sure though.
return HttpResponseRedirect("/accounts/login")
On 08/08/07, Matt Davi
I've copied the /contrib/auth/views.py into my project and edited it like so
redirect_to = request.META["HTTP_REFERER"]
return render_to_response(template_name, {
'form': oldforms.FormWrapper(manipulator, request.POST, errors),
'matts_back_to': redirect_to,
'site_name':
We've got over 70 sites running on lighttpd, no problems at all.
Why apache?
On 03/08/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
>
> On 03-Aug-07, at 4:46 PM, Aljosa Mohorovic wrote:
>
> > on few blogs/web sites it is stated that > 30 django sites on one
> > server running
Hi Przemek
I do, but I hand the request from apache to Lighttpd, which in it's conf
file handles the serving of docs.
I'm not sure but I think you need something extra in apche to tell it where
the static content is.
On 03/08/07, Przemek Gawronski <[EMAIL PROTECTED]> wrote:
>
>
> Hi, I'm
Ben, I'd be interested in looking at that application.
Need someone to help with testing?
On 03/08/07, Ben Ford <[EMAIL PROTECTED]> wrote:
>
> I'm working on a django app at the moment that allows you to define and
> save reports. It has a method similar to templatetags for loading user
>
Hello everyone
I've been testing using the send_mail function, but I've heard that it's now
deprecated, is that right?
I've searched for some documentation on how to use the new Email_Message
function but can't find any.
Can someone send me some links please?
humbly yours
Hi Amit, Malcolm
We're about to build a site that needs english/welsh transation.
Does django.utils.translation.activate() translate from one Language to
another without having to have both languages as text in a database?
On the fly I guess I mean.
vander.
On 11/07/07, Amit Ramon <[EMAIL
switching back
and for between utf8 and unicode all the time.
hmm
On 09/07/07, Matt Davies <[EMAIL PROTECTED]> wrote:
>
> ok, I've done a bit more troubleshooting and it seems the problem isn't in
> the models.py, it's in the edit_event function.
>
> in there I'm
ok, I've done a bit more troubleshooting and it seems the problem isn't in
the models.py, it's in the edit_event function.
in there I'm defining things like this
e.summary = cleaned_data['summary']
If I encode that bit like this now
e.summary = cleaned_data['summary'].encode('utf-8')
the
53 matches
Mail list logo