Recently I wrote some ajax code in my django project. And as I
invoking xmlhttprequest to call view methods, and sometimes I see
nothing happened in browser, but I found some messages in development
server's log output, just like:
[21/Jul/2006 08:35:36] "POST /easyadmin/add/users/TPermission/
HTT
On 7/21/06, limodou <[EMAIL PROTECTED]> wrote:
> Recently I wrote some ajax code in my django project. And as I
> invoking xmlhttprequest to call view methods, and sometimes I see
> nothing happened in browser, but I found some messages in development
> server's log output, just like:
>
> [21/Jul/
On Fri, 2006-07-21 at 15:53 +0800, limodou wrote:
> On 7/21/06, limodou <[EMAIL PROTECTED]> wrote:
> > Recently I wrote some ajax code in my django project. And as I
> > invoking xmlhttprequest to call view methods, and sometimes I see
> > nothing happened in browser, but I found some messages in
On 7/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2006-07-21 at 15:53 +0800, limodou wrote:
> > On 7/21/06, limodou <[EMAIL PROTECTED]> wrote:
> > > Recently I wrote some ajax code in my django project. And as I
> > > invoking xmlhttprequest to call view methods, and sometimes
Hello,
This may be a rudimentary question, sorry if is...
I would like to use the generic create_object view, but populate a
hidden form field with a location_id argument which is extracted from
the url. I've tried this url pattern below, but get this error:
create_object() got an unexpected key
I have a database of articles, where I want each article to have
several prices for different price groups. So I have the following:
class PriceGroup (models.Model):
description = models.CharField(maxlength=255)
code = models.IntegerField(unique=1)
class Admin:
pass
def _
I use FireBug https://addons.mozilla.org/firefox/1843/ with mozilla.it lets me see each Ajax request, with the responses in a separate window.(so you can see the actual exception).(I also put modified the debug.py so it prints a stack trace at the very top of the HTML as well)regardsIanOn 21/07/200
I have done some more reading of other tutorials, and Im slowly getting
further. I now understand that I can use django generic views instead
of writing my own view. (sorry Malcolm, I diden't get that before). I
have now made one url pattern for my project listing. It's listing all
of my project,
Hi ALL,
I m new to Django.
My linux box does not have net connection.
Can someone suggest me how to intsall Django with MySQL on Linux RH FC4 without net connection.
Anyway i can transfer file on Linux machine from my windows machine by FTP.
--~--~-~--~~~---~--~~
Yo
On Fri, 2006-07-21 at 01:16 -0700, Steve Wedig wrote:
> Hello,
>
> This may be a rudimentary question, sorry if is...
>
> I would like to use the generic create_object view, but populate a
> hidden form field with a location_id argument which is extracted from
> the url. I've tried this url patt
On Fri, 2006-07-21 at 04:53 -0700, Tomas Jacobsen wrote:
> I have done some more reading of other tutorials, and Im slowly getting
> further. I now understand that I can use django generic views instead
> of writing my own view. (sorry Malcolm, I diden't get that before). I
> have now made one url
On Fri, 2006-07-21 at 22:00 +1000, Malcolm Tredinnick wrote:
[...]
> If you want to pass extra information into a generic view that requires
> some processing (as in this case), write a little view of your own that
> does the processing and then passes off handling to the generic view:
>
>
Sweet.
Thanks guys for the quick answer. This is very reassuring. Of course,
this also means that I'm now looking at several hours of
reorganization. Part of me was hoping you'd say "No! Don't touch."
>From Jacob's example it looks like you guys take it a step further and
more or less invert the
On 7/20/06, Julio Nobrega <[EMAIL PROTECTED]> wrote:
>
> Hi all!
>
> After some time I've managed to be able to run Django 0.91 and and
> the SVN version together on Dreamhost. I had a few projects done in
> 0.91 and I couldn't simply "svn update" the django_src directory.
>
> I don't know i
when I use login(request, user), shouldn´t the field last_login be
updated automatically?
patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-u
On Jul 20, 2006, at 9:58 PM, Elver Loho wrote:
> Speaking of duct-tape, though. The various "magic" bits of Django
> seemed, to me at least, to be somewhat duct-tape-ish. Yeah, it was
> certainly useful being able to just set a variable and have it do
> something cool that you need, but it made me
On Jul 20, 2006, at 9:43 PM, Sean Schertell wrote:
>> How about memory footprint? Can I run 100+
>> Django sites on a shared server and expect smooth sailing?
Well, it certainly depends on the server, of course -- you obviously
get what you pay for.
The memory consumption for a single mod_pyth
On 7/20/06, Martin <[EMAIL PROTECTED]> wrote:
> I have already implemented a CGI interface for Django... I'm still in a
> test phase but so dar it does look prety good.
>
> And the performance it not really bad. I don't have any comparison with
> a FCGI or mod_python installation, but it fast enou
On 7/21/06, Ian Holsman <[EMAIL PROTECTED]> wrote:
>
> I use FireBug https://addons.mozilla.org/firefox/1843/ with
> mozilla.
> it lets me see each Ajax request, with the responses in a separate window.
> (so you can see the actual exception).
>
so do I.
> (I also put modified the debug.py so it
On 21-Jul-06, at 7:44 PM, Jacob Kaplan-Moss wrote:
>>> How about memory footprint? Can I run 100+
>>> Django sites on a shared server and expect smooth sailing?
>
> Well, it certainly depends on the server, of course -- you obviously
> get what you pay for.
>
> The memory consumption for a singl
On 7/21/06, Martin <[EMAIL PROTECTED]> wrote:
>
> Adrian,
>
>
> So, if anyone is interested in the code, I could make it available
> somewhere...
>
There is a short reference to CGI on the wiki[1]. Perhaps you could
point to your code from there?
[1]: http://code.djangoproject.com/wiki/ServerArr
On Fri, 21 Jul 2006 09:14:39 -0500
Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> * My personal server just got Dugg and handled it without
> hiccupping. The box cost me around $3k, has 8GB of RAM and dual
> Opteron processors; load peaked around 0.7.
What's the digg link out of curiousity?
I'm wondering if anyone out there has build a classified ads
application. I'm pretty new to Django and Python (but I LOVE it so far)
and I find I really learn from example (compared to reading the docs).
I guess I'm mainly looking for the models, the urls stuff, the views
and template (and any tem
On 7/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On Jul 20, 2006, at 9:58 PM, Elver Loho wrote:
> > Speaking of duct-tape, though. The various "magic" bits of Django
> > seemed, to me at least, to be somewhat duct-tape-ish. Yeah, it was
> > certainly useful being able to just set a var
On Jul 21, 2006, at 11:50 AM, Josh Trutwin wrote:
> What's the digg link out of curiousity?
http://digg.com/offbeat_news/Dog_eats_Nintendo..._DS_Lite%3B_Oh%
2C_and_NIntendo_s_Customer_Service_rocks.
Wow, almost 1200 diggs now... schweet.
Jacob
--~--~-~--~~~---~--~-
On 7/21/06, Tim <[EMAIL PROTECTED]> wrote:
> I'm wondering if anyone out there has build a classified ads
> application.
Yes.
:)
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
--~--~-~--~~~---~--~~
You received this me
I'm inclined to agree with Jacob. On the note of "magic", it never
ceases to amaze me how people complain that there's too much of it, but
also complain when they have to keep passing the same objects around (a
common sign of no/little magic).
CherryPy has its share of magic as well, including th
On 7/21/06, Elver Loho <[EMAIL PROTECTED]> wrote:
> On 7/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> > I wonder if you could be a bit more explicit here... I can't think of
> > a single place where you "just set a variable and have it do
> > something cool", so I'd like to know more abou
On 21 Jul 2006, at 17:55, Elver Loho wrote:
>> I wonder if you could be a bit more explicit here... I can't think of
>> a single place where you "just set a variable and have it do
>> something cool", so I'd like to know more about what scares you.
>
> The admin module? http://www.djangoproject.
I am new to Django (Rails convert) and I have a quick question. I am
trying to build a basic CMS for my company. For each entry into the
system I want to align the user that is logged in to the entry. I have
a foreign key for the user which works because when I go to the admin I
get a drop-down
On 7/21/06, Seth Buntin <[EMAIL PROTECTED]> wrote:
> I am new to Django (Rails convert) and I have a quick question. I am
> trying to build a basic CMS for my company. For each entry into the
> system I want to align the user that is logged in to the entry. I have
> a foreign key for the user w
Thanks Adrian. BTW nice framework!!! I have thouroghly enjoyed
working with it.
--~--~-~--~~~---~--~~
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.
On 7/21/06, Tim <[EMAIL PROTECTED]> wrote:
>
> I'm wondering if anyone out there has build a classified ads
> application. I'm pretty new to Django and Python (but I LOVE it so far)
> and I find I really learn from example (compared to reading the docs).
> I guess I'm mainly looking for the models
Is there a way to create data from a model when running syncdb or
something? I have a couple of tables that hold the same data and when
I during development I sometime reset my data can I put this in the
model or something and it create the data when the tables are created?
--~--~-~--~-
On 7/21/06, Elver Loho <[EMAIL PROTECTED]> wrote:
>
> On 7/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> >
> > On Jul 20, 2006, at 9:58 PM, Elver Loho wrote:
> > > Speaking of duct-tape, though. The various "magic" bits of Django
> > > seemed, to me at least, to be somewhat duct-tape-ish.
On 7/21/06, Seth Buntin <[EMAIL PROTECTED]> wrote:
> Is there a way to create data from a model when running syncdb or
> something? I have a couple of tables that hold the same data and when
> I during development I sometime reset my data can I put this in the
> model or something and it create t
Hi,
I'm definitely willing to contribute. I like django, so I guess you
will see me around here more often in the future (it's a shame that I
didn't found django a few month ago).
My only problem is that I don't really have a server where I can put
the code on (at least not at the moment).
So,
On 7/21/06, Martin <[EMAIL PROTECTED]> wrote:
> My only problem is that I don't really have a server where I can put
> the code on (at least not at the moment).
>
> So, what's the best way to proceed here?
No problem at all. You can post the code as an attachment to a ticket
in Django's ticket sy
Just what I needed. Thanks again.
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email
On Fri, 21 Jul 2006 11:56:14 -0500
Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On Jul 21, 2006, at 11:50 AM, Josh Trutwin wrote:
> > What's the digg link out of curiousity?
>
> http://digg.com/offbeat_news/Dog_eats_Nintendo..._DS_Lite%3B_Oh%
> 2C_and_NIntendo_s_Customer_Service_rocks.
>
Elver Loho wrote:
> In CherryPy, every "directory" of the website is mapped to a class
> with its exposed methods being the "files" in that directory. It's a
> godsend as you can write any kind of functionality (shopping cart,
> blog, whatnot) into a class or two and plop it anywhere else. Very
>
OK,
sounds simple enough but guess my code needs some tweaking to match
your coding guidelines
So, will change it and create the ticket during the weekend,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
The JRuby project recently announced that their next release will
include the ability to run Ruby on Rails within J2EE application
servers like JBoss or WebSphere. Would there be any interest in
pursuing a similar project for Django + Jython?
Jython has been stuck at version 2.1 for a long time
On 7/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The JRuby project recently announced that their next release will
> include the ability to run Ruby on Rails within J2EE application
> servers like JBoss or WebSphere. Would there be any interest in
> pursuing a similar project for Django
On Fri, 21 Jul 2006 09:50:15 +1000, Malcolm Tredinnick wrote:
> Because of the way QuerySets are constructed, there's no easy way to
> tell when a user is walking into this case. The current behaviour may
> reasonably be considered a semi-bug, however it's unavoidable at the
> moment since we for
On Jul 21, 2006, at 1:57 PM, [EMAIL PROTECTED] wrote:
> The JRuby project recently announced that their next release will
> include the ability to run Ruby on Rails within J2EE application
> servers like JBoss or WebSphere. Would there be any interest in
> pursuing a similar project for Django +
Hello, world!
I finally convinced my boss to ditch php in favour of django (this
little screencast with an automagical admin generation made his jaw hit
the floor), but I've got a question - is it possible to reorder stuff?
It's not covered in the tutorial and it is one of the most basic needs
of
On 22/07/2006, at 2:54 AM, Tim wrote:I'm wondering if anyone out there has build a classified adsapplication. I'm pretty new to Django and Python (but I LOVE it so far)and I find I really learn from example (compared to reading the docs).I guess I'm mainly looking for the models, the urls stuff, th
Admin panel can be customized, see this docs:
http://www.djangoproject.com/documentation/tutorial2/ and similar
tutorial, in Polish can be found on my site - www.linux.rk.edu.pl
some tips are also in
http://www.djangoproject.com/documentation/model_api/
--~--~-~--~~~
I too waiting for .NET support...
I try to run a django site and found that os module is not done... so I
think is a large way to go...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
"reorder stuff" is quite vague...
If you mean specifying the order of and which fields should appear on
the admin page you can do that using the ´´fields´´ parameter to
Admin as is shown in tutorial 2:
http://www.djangoproject.com/documentation/tutorial2/
If you want to control the order in which
Hi, I've just installed Django (last development version) and when I add
my app to the settings.py file I get this error:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299,
a) does your app is called "menues" ? (typos?)
b) try it on the django server. If it works the mod_python doesn't have
all the settings it needs :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
I'm thinking about making a simple JavaScript and CSS manager that
would look like this:
- It generates one JavaScript and one CSS file for a current
page/template
- It uses a database or a pickle/shelve/flat files (?) to store code
snippets: id, code, comment, show_always
- Extra code snippets ca
I'm not sure I fully understand your suggestion, I just wanted to bring
up the point of JS and CSS caching, and speed of loading.
In the PHP world (where I've had most of my experience) serving CSS
files through a PHP script is always slower than just serving a static
CSS file (even if the PHP
it would be rather pre-generated - if style_2_4_.css doesn't exist -
generate it, else use it. When I edit snippet id 4 then kill all css
files with_4_ or regenerate them :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
Malcolm asked, how to find the classes that were attended by all of the
students from a given list.
http://www.pointy-stick.com/blog/2006/06/12/sql-puzzle/
Then, he proposed a solution with HAVING clause:
http://www.pointy-stick.com/blog/2006/06/13/sql-puzzle-solution/
I'd like to submit another
On 22-Jul-06, at 12:27 AM, [EMAIL PROTECTED] wrote:
> The JRuby project recently announced that their next release will
> include the ability to run Ruby on Rails within J2EE application
> servers like JBoss or WebSphere. Would there be any interest in
> pursuing a similar project for Django +
On Jul 21, 2006, at 3:19 PM, [EMAIL PROTECTED] wrote:
> I'm thinking about making a simple JavaScript and CSS manager that
> would look like this:
> - It generates one JavaScript and one CSS file for a current
> page/template
This could get ugly fast when you take into account CSS cascading.
C
Hi,
I have a 'Product' model that has the following list_display
list_display = ('title','category','price_adjusted', 'on_sale',
'featured', 'visible')
'price_adjusted' is the following method
def price_adjusted(self):
if self.on_sale:
return self.sale_p
Hi,
I was wondering what is the best way to define new tags which don't
really belong to a specific application.
For example, I would like to create a urlmatch tag:
{% urlmatch "^accouonts/login/$" }
Should only be display the current url matches the specified reg-ex
{% endurlmatch %}
Lookin
On Sat, 2006-07-22 at 02:39 +, Martin wrote:
> Hi,
>
> I was wondering what is the best way to define new tags which don't
> really belong to a specific application.
> For example, I would like to create a urlmatch tag:
>
> {% urlmatch "^accouonts/login/$" }
>Should only be display the c
Malcolm,
thanks for the suggestion... I tried it and it wokrs like expected.
I don't know why, but I had the impression that an application only
load templatetags define it it's own namespace. I should have read the
documentation a more carefully.
Thanks,
Martin
--~--~-~--~~--
Hi All,
Can anybody provide step by step procedure for installing django on Win XP on Linux with MySQL.
Thanks in advance.
rsj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou
Hi All,
Can anybody provide step by step procedure for installing django on Win XP on Linux with MySQL.
Thanks in advance.
rsj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g
Wait, Linux or XP?
Regardless, you might want to read the documentation first:
http://www.djangoproject.com/documentation/install/
-Tyson
On Jul 21, 2006, at 9:52 PM, Rajeshwar Singh Jenwar wrote:
> Hi All,
> Can anybody provide step by step procedure for installing django on
> Win XP on L
I am messing with feeds for the first time with Django and was
wondering if there is anyway to do authentication (i.e. grab the
session) from inside the my Feed class? I followed the high level
framework example from the documentation page if that helps in
understanding how I implemented this feed
Thanks everyone for your input. So far I'm really pleased with what I
see. I'm gonna take Django for a test drive on a website project I'm
about to start now and see how it goes -- but I do get the feeling
I'm falling in love :-)
The one thing I think I may miss about Rails most is Ruby. Py
On Fri, 2006-07-21 at 23:25 -0700, afarnham wrote:
> I am messing with feeds for the first time with Django and was
> wondering if there is anyway to do authentication (i.e. grab the
> session) from inside the my Feed class? I followed the high level
> framework example from the documentation page
The Django documentation refers to the pagination:
http://www.djangoproject.com/documentation/generic_views/#notes-on-pagination
And suggests following pagination scheme:
^objects/ -- object list, first page
^objects/page2/ -- second page
^objects/page3/ -- third page, and so on
Let's say I'm c
On 7/22/06, Maciej Bliziñski <[EMAIL PROTECTED]> wrote:
>
> The Django documentation refers to the pagination:
> http://www.djangoproject.com/documentation/generic_views/#notes-on-pagination
>
> And suggests following pagination scheme:
>
> ^objects/ -- object list, first page
> ^objects/page2/ --
71 matches
Mail list logo