Hello, I have recently switched over to nginx as my front end server.
All is well. However i have a view that sets the Cache-Control header
to no-cache. But when going to this view, it looks like nginx is
either overwriting the header value or removing/ignoring it all
together.
I'm not 100% i ha
uff in there.
Chrome uses the same network stack as IE, i thought, so i'm not sure
what the deal is.
IE's even more painful to develop for :)
On Sep 18, 5:02 am, Ramiro Morales wrote:
> On Fri, Sep 17, 2010 at 8:11 PM, TheIvIaxx wrote:
> > Hello all, I just downloaded the IE9
Hello all, I just downloaded the IE9 beta to see if everything worked
as expected. However when going to 127.0.0.1 with IE9 using the
django dev server, i get:
[Errno 10054] An existing connection was forcibly closed by the remote
host
Not sure what is going on. Any ideas?
Thanks
--
You rece
that only seems to work on ModelForm, not Model. Or did i miss
something? That functionality seems to be what i'm after though :)
On Jul 8, 4:07 pm, Kenneth Gonsalves wrote:
> On Friday 09 July 2010 03:16:28 TheIvIaxx wrote:
>
> > I'd like to save the image file into a
e to do:
>
> > >>> my_pk = my_inst.pk
>
> > and use this for the other field that you need to set. If the other
> > field is a foreign key to my_inst, then you should just be able to do:
>
> > >>> other_model_inst.related_object = my_inst
> > >>> other_model_in
27;t sound correct. So i think i'll have a cron task just
update a field in a table each week that the actual Feed view will
pull from. It's still a db hit, but a very simple one.
On Jun 21, 6:15 pm, Andy McKay wrote:
> On 2010-06-21, at 5:48 PM, TheIvIaxx wrote:
>
> > I was
Hello all, i tried searching for a solution to this but didn't find
it. If it's answered somewhere, please point me in the right
direction :)
I was wondering how to create a weekly feed for django. Lets say i
have a table of objects that gets added to all week long. I'd like to
allow people to
Its a lot of little files and from what i've seen, the stat call is a
bottleneck. If they are all in memcache, then it should scream.
Which "hints" would you be referring?
On Jun 18, 10:56 am, Javier Guerra Giraldez
wrote:
> On Fri, Jun 18, 2010 at 12:22 PM, TheIvIaxx wrot
This probably isnt the *best* place to post this, but I figured a lot
of folks here have had experience with this.
I am switching off lighty to nginx for static file serving as it
handles memcached (as far as i know, lighty does not). Anyhow, I have
it up and running ok, but im not sure what the
Hello, I am trying to figure out how to get a pk in the middle of a
transaction. I need to set a field in the model based on the
ID(default pk) to be given. As far as a i know, this ID should be
allocated during the transaction. So i would imagine it would do the
INSERT, then i could get the pk a
>
> [1]http://code.google.com/p/django-selectreverse/
>
> On 17 mrt, 18:55, TheIvIaxx wrote:
>
>
>
> > I made a mistake in my model definitions above. The Term field on
> > Image is a ManyToMany() not ForeignKey().
>
> > Anyhow I did look into value_list, however it d
as far as I could tell, select_related did not follow m2m
relationships, only FK.
On Mar 18, 2:12 am, bruno desthuilliers
wrote:
> On Mar 18, 8:42 am, koenb wrote:
>
> > Take a look at something like django-selectreverse [1] for inspiration
> > on how to reduce your querycount for M2M relations.
What sort of server are you running your site on ? What option did you choose
> for using apache with python ?
> I had dreadful results on a shared hosting calling python code (Django)
> through cgi scripts (around 1 sec before the first byte is send).
>
> Xavier.
>
> L
e what is
causing it.
The .72 is after all views have be ran, all DB access has been made,
and templates have been rendered to the HTML. I get my last
time.clock() right before returning the HttpResponse object
On Mar 22, 4:37 pm, Daniel Roseman wrote:
> On Mar 22, 11:25 pm, TheIvIaxx wrote:
Not sure whose jurisdiction this falls under, but from my findings,
this is what i have:
Firebug reports 1.46/.055 sec waiting/downloading. I need the
"waiting" part to be less than 1 sec.
It looks like sending the response is very fast, but preparing it is
not.
So i investigated as to where th
n Mar 17, 1:38 am, bruno desthuilliers
wrote:
> On Mar 17, 4:24 am, TheIvIaxx wrote:
>
>
>
>
>
> > Hello all, i have a question about a certain query i have. Here is my
> > model setup:
>
> > class Term():
> > term = CharField()
>
> &g
of images to return? Another
> thing you could do is cache this info so you don't have to do it
> multiple times.
>
> Aditya
>
> On Mar 16, 10:24 pm, TheIvIaxx wrote:
>
>
>
> > Hello all, i have a question about a certain query i have. Here is my
> >
it works pretty well, however i couldn't get m2m to work. i guess
that doesnt translate well to BigTable
On Mar 16, 6:17 am, Waldemar Kornewald wrote:
> On Mar 16, 8:03 am, Tsolmon Narantsogt wrote:
>
> > How to use the Django with Google App Engine ?
>
> Use Django
> nonrel:http://www.allbutt
Hello all, i have a question about a certain query i have. Here is my
model setup:
class Term():
term = CharField()
class Image():
image = FileField()
terms = ForeignKey(Term)
These have been abbreviated for simiplicity, ut you get the gist of
it. Anyhow i have to query for a few h
:
> On Oct 27, 8:56 am, TheIvIaxx wrote:
>
> > Hello, I have a simple page model that has created and modified fields
> > with auto_add and auto_now set to True. I'd like to keep track of the
> > number of views per page so i added a views field to the model.
> &g
Hello, I have a simple page model that has created and modified fields
with auto_add and auto_now set to True. I'd like to keep track of the
number of views per page so i added a views field to the model.
However if i increment the views and save, then the modified gets
changed. This trivializes
Assume i have the following:
class Image(models.Model):
image = models.ImageField(upload_to="path/to",
width_field="width", height_field="height"
do i create new Integer fields there for width and height? With this
i can do things like:
>>> Image.objects.get(pk=1).image.width
However this
; On Thu, Aug 6, 2009 at 9:28 AM, TheIvIaxx wrote:
>
> > Hello, I have a question that probably spans a few different groups.
> > However I know this setup is familiar withing the django community.
>
> > I have apache handling all django/python stuff and have lighttpd
> &
Hello, I have a question that probably spans a few different groups.
However I know this setup is familiar withing the django community.
I have apache handling all django/python stuff and have lighttpd
handling the static content. All is well,works fine and fast. Auth
is my problem on the stati
* call the desired methods on the obtained object
>
> On Jul 14, 4:22 am,theiviaxx wrote:
>
>
>
> > Sorry i didnt explain very well. The folder objects are django
> > objects, not file system paths
>
> > On Jul 13, 6:19 pm, Almir Karic wrote:
>
> > > F
served before everything is passed to django).
>
> For development purposes you should have a look
> athttp://docs.djangoproject.com/en/dev/howto/static-files/
>
> python/django hacker & sys
> adminhttp://almirkaric.com&http://twitter.com/redduck666
>
>
>
&
I tried searching but didnt really find much.
Is there a way to set up a url conf to get a url of a folder path?
Basically i have a site that has folder-ish objects that contain
stuff. However i cannot seem to find a way to get a url pattern to
work. how would i get:
http://example.com/path/to
I have an object that will be viewed, edited, or added. I would like
to give a url for edit/add but default to view if nothing is given.
For example:
http://www.example.com/page/edit --> Goes to edit page template
http://www.example.com/page/ -- Goes to view template
however if i put an argumen
So i have been trying to get a solid search going in django. I have
seen things liek Whoosh and Solr or Lucene(sp?) which all add fulltext
searching to your models. Are these better than the mysql fulltext
searches? Is there a major benefit to go with one of these other
packages or write someth
I tried do the whole 64 bit thing but ran into several headaches with
compiling the modules for AMD64 on vista. I've never done it before
and i kept having to download this and that sdk just to find it not
working. So i just left everything 32 bit and got to work on the
django app.
I'll try lau
Hello, on my dev machine I am running a django instance on its little
dev server with python 2.5.2 32bit. Works fine. But all of our tool
are written for python 2.5.x 64bit. These are irrelevant to django.
Having both python versions installed causes and issue with django.
How do I tell django
Ok, i got it all sorted out. Thanks Rob and Malcom. It was a problem
in my accounts.urls.py file. I had made some placeholder urls to
edit and save but never put them into the view.py. I commented them
out for now and it worked like a champ.
Its wierd this never poped up in my windows box us
So i've narrowed down the problem more. Its failing on the template
call to {% url django-admindocs-docroot as docsroot %} on the admin
page and all other pages. If i remove this line, the site works just
fine, recognizing all urls defined. Not sure just the template engine
would fail to see th
Its going to be running on apache, but right now im getting this error
on the development server for django. The PYTHONPATH in the error has
the project dir in it. I verified that PYTHONPATH has the project dir
from putty. Not sure what else to try. Oh and starting the shell
from a temp dir, i
I just moved my site to a production environment and i get this error
when trying to view the admin stuff. I want to say its a path issue?
If i use manage.py shell, i can import urls just fine. Any ideas on
why this error is popping up?
Request Method: GET
Request URL:http://X.X.X.X:8000/ad
This isnt really a django specific question, but i figured some folks
have a similar setup and might be able to offer advice. I'm
developing my django site on vista and i have a server running linux/
apache. Im not sure how to get all my files from the windows box onto
the server. The linux box
this to a MySQL list somewhere? This in not
> a Django question.
>
> On Sep 6, 2008, at 2:43 PM, TheIvIaxx wrote:
>
>
>
> > After searching around for a bit for a build of MySQLdb, i have found
> > that i will probably need to build the module for AMD64 on windows.
>
After searching around for a bit for a build of MySQLdb, i have found
that i will probably need to build the module for AMD64 on windows.
Is there a guide or something that shows what needs to be done to
build a module for a certain architecture?
Thanks
--~--~-~--~~~-
38 matches
Mail list logo