Re: using ajax in django

2009-05-14 Thread veasna bunhor
Thanks for your shearing a good knowledge. I'll do it. Veasna, On Thu, May 14, 2009 at 9:42 PM, zayatzz wrote: > > Im also a django beginner, but i have bit more advanced knowledge > about js/jquery > > Here's what ive learned so far: All js events happen in browser

Re: Limiting the queryset for a foreign key field in the admin change_list view

2009-05-14 Thread Colin Bean
On Thu, May 14, 2009 at 5:26 PM, Margie wrote: > > Sorry for the length of this - I hope someone knowledgable about ajax > has a minute to take a look, I've been working on it for awhile. > George - if you are reading this - this is my attempt to do the jquery/ > ajax

Re: disable django cache

2009-05-14 Thread online
Thanks, this kind of design is interesting, not what i expected though. I thought the server is running whatever my script i want to use return render_to_response('home.html') or return render_to_response('index.html') On May 14, 7:55 pm, David Zhou wrote: > On Thu,

Re: Multiple 404.html pages

2009-05-14 Thread James Bennett
On Thu, May 14, 2009 at 10:56 PM, Lee Hinde wrote: > Because I would be using different base.html files, I'm wondering if > there is a work around to having a single 404.html file. For instance, > can I determine at run time where to find my base.html file? Write a view

Multiple 404.html pages

2009-05-14 Thread Lee Hinde
Hi; The site I'm working on will have two groups of users, the public and staff. The 404.html page that the public sees needs to look different than what the staff will see. Primarily because the staff is stuck with the look and feel that I come up with, but the public side will be skinned to

Re: disable django cache

2009-05-14 Thread David Zhou
On Thu, May 14, 2009 at 9:53 PM, online wrote: > > Whatever i changed 'home.html' to other page i always get the same > result. Are you restarting your serving? If by "changed home.html to other page" you mean you modified your view function to return a different

Re: disable django cache

2009-05-14 Thread Colin Bean
On Thu, May 14, 2009 at 6:53 PM, online wrote: > > This is my code > > > from django.http import HttpResponse > from django.template import Context, loader > from django.shortcuts import render_to_response > from django.views.decorators.cache import cache_control >

Re: disable django cache

2009-05-14 Thread online
This is my code from django.http import HttpResponse from django.template import Context, loader from django.shortcuts import render_to_response from django.views.decorators.cache import cache_control @cache_control(no_cache=True) def index(request): #t =

Re: Gravatar django apps

2009-05-14 Thread Joshua Partogi
Thanks Rama. I will try this out too and I will see which one fits best. I didn't know it was this simple :-) Cheers. On May 14, 11:08 pm, Rama Vadakattu wrote: > Integrating with Gravatar is very easy > > 1) Get MD5 hash of user's email id >  import hashlib > >    

Re: Gravatar django apps

2009-05-14 Thread Joshua Partogi
Thanks for the redirection Erreon. I will try it out. :-) Best regards, On May 15, 5:00 am, Erreon wrote: > If you don't want to implement your own solution you could > use.http://code.google.com/p/django-gravatar/ > > On May 14, 6:30 am, Joshua Partogi

Re: Limiting Choices of a ForeignKey with 'self'.

2009-05-14 Thread Margie
I am working on this. I think it is not simple. The queryset for the forms in the change_list view are created at a point in the code where there is no info on what the actual object associated with that form is. There is no simple way (ie, an arg or callback) to make a foreign key field in

Limiting the queryset for a foreign key field in the admin change_list view

2009-05-14 Thread Margie
Sorry for the length of this - I hope someone knowledgable about ajax has a minute to take a look, I've been working on it for awhile. George - if you are reading this - this is my attempt to do the jquery/ ajax that you recommended a few days back when I posted a more general question. Ok -

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Graham Dumpleton
On May 14, 11:08 pm, Valery wrote: > By the way, regarding the 30 func calls per HTTP request you'd mean > it is a bare conflict WSGI vs mod_python? That is likely to be a Django issue, you will have to explain that one better and maybe someone else can help. Graham

Re: Limiting Choices of a ForeignKey with 'self'.

2009-05-14 Thread Jamie
Have you found a solution for this? I'm surprised no one has at least responded that it is or is not possible. On Apr 9, 1:09 pm, Nicky Bulthuis wrote: > Hello Django Users, > > I'm trying to learn Django as best as i can, however i've come to   > problem which i hope

Save() method doesn't update until an item has been saved twice

2009-05-14 Thread Jamie
I'm running into a problem with the save() method in which I need Django to update items in Model_B when an item from Model_A is saved. The problem is that I save Model_A but Model_B is not updated. However, if I save Model_A a second time (without changing anything) then Model_B is updated.

Re: Allow only superusers to log into admin

2009-05-14 Thread ringemup
Thanks, that looks like a good place to start. I'm literally setting up two separate admin sites -- I need to prevent the "staff" from even accessing the site for the superusers, as it presents a lot of options I don't want to even be visible to them, displays different inlines, etc. On May

Re: Allow only superusers to log into admin

2009-05-14 Thread Michael
On Thu, May 14, 2009 at 6:10 PM, ringemup wrote: > > Is there a way to limit admin login to superusers? I'd like to set up > multiple admin areas -- one for regular users and one for superusers. > > Thanks! You can subclass the AdminSite Class and just overide the

Re: how to work with web service in django

2009-05-14 Thread Michael
On Thu, May 14, 2009 at 5:20 PM, lperk wrote: > > hello everyone! > > I'm trying to make application in wich you will search some product > and for > response my application will list you products from other pages(for > example > amazon or some e-shop).. I want to do it with

Re: django-admin.py not working...HELP!

2009-05-14 Thread Karen Tracey
On Thu, May 14, 2009 at 6:20 PM, Karen Tracey wrote: > Nothing that does from django.whatever will match, since Python will then > be looking for Nothing that does 'from django.whatever import something' is what I meant to type there.

Re: django-admin.py not working...HELP!

2009-05-14 Thread Karen Tracey
On Thu, May 14, 2009 at 8:46 AM, bsisco wrote: > > Ok. I updated to the latest trunk release this morning and now when I > run django-admin.py startapp I get the following: (specs: > Python 2.5, Win XP Pro, Django trunk release 10781) > What did you update from? How did

Allow only superusers to log into admin

2009-05-14 Thread ringemup
Is there a way to limit admin login to superusers? I'd like to set up multiple admin areas -- one for regular users and one for superusers. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Django superusers

2009-05-14 Thread Karen Tracey
On Thu, May 14, 2009 at 4:06 PM, Mike Driscoll wrote: > > Hi, > > I am working my way through the Django 1.0 book by Ayman Hourieh from > Packt and I just reached the Admin Interface chapter (which is number > 8 if you have the book). Anyway, when I login to my site's admin,

modelling question / many-to-many / intermediary

2009-05-14 Thread chris
Hi, I'm working with Django since a few weeks and I really *love* it! I came across a problem I didn't find any help so I thought it might be a good idea to ask the pros. I need to model persons and each person should have a list of other persons (a 'collaborates-with'-property). I have to

Re: disable django cache

2009-05-14 Thread John M
Are you sure it isn't your browser? have you tried testing your concern with curl? On May 14, 12:19 pm, online wrote: > Hi all, > > I have a small project still under development. I don't set any cache > stuff yet. But for somehow django still cache all web pages.

how to work with web service in django

2009-05-14 Thread lperk
hello everyone! I'm trying to make application in wich you will search some product and for response my application will list you products from other pages(for example amazon or some e-shop).. I want to do it with web service and I have no idea where to start..does someone know how to do it? Or

Re: creating objects in views

2009-05-14 Thread Gene
You may still be able to use the built-in django-comments, as it's easy to customize (especially if your just adding extra fields). You can read about it here: http://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/#ref-contrib-comments-custom Gene On May 14, 12:59 pm, Oleg Oltar

Re: disable django cache

2009-05-14 Thread Daniel Roseman
On May 14, 8:19 pm, online wrote: > Hi all, > > I have a small project still under development. I don't set any cache > stuff yet. But for somehow django still cache all web pages. > > Why django default uses cache?  How can i disable the all level > caches? > > I

Re: I/O operation on closed file

2009-05-14 Thread Tim Sawyer
On Tuesday 12 May 2009 21:28:35 Alex Gaynor wrote: > On Tue, May 12, 2009 at 3:27 PM, Tim Sawyer wrote: > > ValueError: I/O operation on closed file > > This is probably a symptom of http://code.djangoproject.com/ticket/11084 . > Thanks Alex. I've just updated to 10784 (without a fix for that

Re: has date template filter been fixed?

2009-05-14 Thread Mr. T
Thanks! On May 14, 1:28 pm, Alex Gaynor wrote: > On Thu, May 14, 2009 at 3:20 PM, Mr. T wrote: > > > Pretty big WTF moment for me to debug what went wrong, eventually > > discovering DJango's |date:"U" tempate filter is nonsense. It renders > > to

Re: has date template filter been fixed?

2009-05-14 Thread Alex Gaynor
On Thu, May 14, 2009 at 3:20 PM, Mr. T wrote: > > Pretty big WTF moment for me to debug what went wrong, eventually > discovering DJango's |date:"U" tempate filter is nonsense. It renders > to bogus values. Eventually found this: > > http://tinyurl.com/rbop9g > > Using

has date template filter been fixed?

2009-05-14 Thread Mr. T
Pretty big WTF moment for me to debug what went wrong, eventually discovering DJango's |date:"U" tempate filter is nonsense. It renders to bogus values. Eventually found this: http://tinyurl.com/rbop9g Using 1.0. Has this been fixed? --~--~-~--~~~---~--~~ You

Re: django-admin.py not working...HELP!

2009-05-14 Thread Laszlo Antal
On Thu, May 14, 2009 at 11:45 AM, Blake M. Sisco wrote: > Laszlo, > django/bin is in my pathnot sure why gmail decided to format that so > oddly but it's four lines up from the bottom of the quote in my last > post.:-) I made sure that it was there just now as well

Django superusers

2009-05-14 Thread Mike Driscoll
Hi, I am working my way through the Django 1.0 book by Ayman Hourieh from Packt and I just reached the Admin Interface chapter (which is number 8 if you have the book). Anyway, when I login to my site's admin, I'm told that I don't have permission to edit anything. I loaded up the shell and did

Re: file upload docs obsolete?

2009-05-14 Thread msoulier
On May 14, 3:51 pm, msoulier wrote: > I looked here > > http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ > > and it mentions request.FILES being a dictionary, but the 1.0 porting > guide here > >

file upload docs obsolete?

2009-05-14 Thread msoulier
I looked here http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ and it mentions request.FILES being a dictionary, but the 1.0 porting guide here http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/ says otherwise. Was this overlooked? I think the page needs an

App command line args for degugging in IDLE?

2009-05-14 Thread Joshua Russo
Is there a way to specify arguments for your app when debugging in IDLE? Like manage.py runserver. I can't figure out how to add the runserver to the command to start debugging. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Problem with map widget on admin change page (GIS / OpenLayers)

2009-05-14 Thread intrepidweb
Hi there, I have a model called Locality that has a coordinates field. When I view the admin change form for the model, the mapping widget appears, but the actual map is grayed out. For example, for Atlanta, GA, the coordinates are 33.69132, -84.40137. When the OpenLayers map widget is

disable django cache

2009-05-14 Thread online
Hi all, I have a small project still under development. I don't set any cache stuff yet. But for somehow django still cache all web pages. Why django default uses cache? How can i disable the all level caches? I tried from django.views.decorators.cache import cache_control

Re: temporarily log in as another user

2009-05-14 Thread Sam Chuparkoff
On Wed, 2009-05-13 at 05:21 -0700, Dave Brueck wrote: > Has anyone in this group implemented any sort of login-as-another-user > functionality with Django? I implemented "sticky superuser logins" about a year ago (the last time I worked with django until now), so I can attest it is a neat trick,

Re: Gravatar django apps

2009-05-14 Thread Erreon
If you don't want to implement your own solution you could use. http://code.google.com/p/django-gravatar/ On May 14, 6:30 am, Joshua Partogi wrote: > Dear all > > Does anybody know a good django application for gravatar > (http://gravatar.com) ? > > Thank you very much

Re: django-admin.py not working...HELP!

2009-05-14 Thread Blake M. Sisco
Laszlo, django/bin is in my pathnot sure why gmail decided to format that so oddly but it's four lines up from the bottom of the quote in my last post.:-) I made sure that it was there just now as well even went as far as rebooting the machine and still no joy... Blake M. Sisco LOR

Re: django-admin.py not working...HELP!

2009-05-14 Thread Laszlo Antal
On Thu, May 14, 2009 at 11:02 AM, Blake M. Sisco wrote: > import django works fine. i posted the results of >echo %pythonpath% and > echo %path% in my first message but here it is again: > > *>echo %pythonpath% >> C:\Python25;C:\Python25\Lib\ >>

Re: Signals giving: global name 'MyModel' is not defined

2009-05-14 Thread Colin Bean
On Thu, May 14, 2009 at 6:48 AM, phoebebright wrote: > > Have been at this now for some hours and still can't see the wood for > the trees.  Failed to get two signals working - one called on pre_save > to keep an audit trail of one field on a model (didn't implemenet

Re: django-admin.py not working...HELP!

2009-05-14 Thread Blake M. Sisco
import django works fine. i posted the results of >echo %pythonpath% and echo %path% in my first message but here it is again: *>echo %pythonpath% > C:\Python25;C:\Python25\Lib\**site-packages\django;C:\**django_projects; > > and my win path is : > >echo %path% > C:\Program

Re: django-admin.py not working...HELP!

2009-05-14 Thread bsisco
I've uninstalled and reinstalled django and I still can't get this to work. Any help would be greatly appreciated... On May 14, 8:46 am, bsisco wrote: > Ok.  I updated to the latest trunk release this morning and now when I > run django-admin.py startapp I get the

Re: django-admin.py not working...HELP!

2009-05-14 Thread Bruno Tikami
On Thu, May 14, 2009 at 2:41 PM, bsisco wrote: > > I've uninstalled and reinstalled django and I still can't get this to > work. Any help would be greatly appreciated... > > On May 14, 8:46 am, bsisco wrote: > > Ok. I updated to the latest trunk

Re: creating objects in views

2009-05-14 Thread Daniel Roseman
On May 14, 5:59 pm, Oleg Oltar wrote: > Well, the problem with built in comments framework is that I need few more > fields in comments. > > What I created is: > > MODEL: > > class Comment(models.Model): >     name = models.CharField(max_length = 30) >     body =

Re: creating objects in views

2009-05-14 Thread Oleg Oltar
Well, the problem with built in comments framework is that I need few more fields in comments. What I created is: MODEL: class Comment(models.Model): name = models.CharField(max_length = 30) body = models.CharField(max_length = 2000) article = models.ForeignKey(Article) def

Re: New Project - want advice

2009-05-14 Thread Lee Hinde
On Wed, May 13, 2009 at 6:30 PM, Technicalbard wrote: > > Hi, > > I'm planning a new project, and I want the following feature set > (eventually).  It will of course be rolled out in parts as apps are > completed.  The purpose of this is to manage knowledge in various >

how to import variable from view to form

2009-05-14 Thread Yang
Hello, I'd like to import the variables from view to form, but after trying several ways, I failed. For example: user01 inputs his username/password(apache authentication) to login, then based on this username, function, get_list_from_ldap, will get a relative list from LDAP. Different username

Re: login decorator losing POST data

2009-05-14 Thread aa56280
Tim, Thanks for the fantastic insight into the browser issues with 307 redirects. I'll explore this a bit further and see which route I want to take. Given that the form in question is simply a button that says "Join network," I may be inclined to just let the user login, come back to the page

Re: login decorator losing POST data

2009-05-14 Thread aa56280
On May 14, 8:29 am, TiNo wrote: > Isn't it possible to force the user to login before filling out the form? > That eliminates all the issues with redirecting the POST data. How ironic. I clicked on the Reply link and Google told me I need to sign in in order to reply. I was

Re: Production install 'admin' failing with 500 internal server error

2009-05-14 Thread Vincent
Ccorrection: The names and paths in WSGIScriptAlias and Directory were inconsistent. The sample config file should read as follows: httpd/conf.d/python.conf LoadModule wsgi_module modules/mod_wsgi.so WSGIDaemonProcess myapp WSGIProcessGroup

Re: Production install 'admin' failing with 500 internal server error

2009-05-14 Thread Vincent
Hi Dan, Thanks for the tips. I think I've figured out what went wrong. First up: no, I am not using a virtualenv. I was able to serve the site using "./manage.py runserver" albeit a bit slow (due to load issues I believe). So the problem ultimately was my mod_wsgi setup. The fix: For

Re: using ajax in django

2009-05-14 Thread zayatzz
Im also a django beginner, but i have bit more advanced knowledge about js/jquery Here's what ive learned so far: All js events happen in browser and are all related/attached to some DOM elements. Basic (model)form flow works like that: You create a model You create a modelform (in apps

Re: django.contrib.auth tests fail

2009-05-14 Thread Kegan Gan
This could be related to ticket #10521 http://code.djangoproject.com/ticket/10521, which has been fixed. It's currently in the trunk already, since changeset http://code.djangoproject.com/changeset/10674 . ~KEGan On May 14, 12:36 am, Sean Brant wrote: > I am also having

Re: Return multiple counts from the same table in one query?

2009-05-14 Thread Up2L8
Yeah, I've used count() before but I didn't see how to do 2 counts in the same query. I thought maybe the new annotate or aggregate stuff might help, but it wasn't obvious to me. Thanks, Eric On May 13, 8:30 pm, raman wrote: > This is a "count()" method for querysets: > >

Re: Query by date + offset

2009-05-14 Thread TiNo
On Wed, May 13, 2009 at 5:00 PM, eric.frederich wrote: > > I have a model called Offering which has a start date and a duration > in days. > I want to do a query and get instances where the end date (not > modeled) is in the past. > I know that I can add a non-editable

Signals giving: global name 'MyModel' is not defined

2009-05-14 Thread phoebebright
Have been at this now for some hours and still can't see the wood for the trees. Failed to get two signals working - one called on pre_save to keep an audit trail of one field on a model (didn't implemenet the Audit.py version in the wiki as more complex than I needed). The other to create some

Re: uneditable fields

2009-05-14 Thread Rama Vadakattu
So you need dynamic form as below Class MyForm(forms.ModelForm): fields ... def __init__(self, user,*args , **kwargs): super(MyForm,self).__init__(*args,**kwargs) if user is not superuser :

python manage.py dbshell throws error

2009-05-14 Thread bvemu
Hi All I am executing the command "python manage.py dbshell" and it throws the following error "Profiling timer expired" I have an alias in my .bashrc of alias mysql='mysql -u subramanyam -pxxx' Tried unaliasing mysql but didnt work whereas it works fine from command line Any pointers on

Re: login decorator losing POST data

2009-05-14 Thread TiNo
On Wed, May 13, 2009 at 11:56 PM, aa56280 wrote: > > Hello there, > > I have a form. Once it's submitted (method=POST) the view handling the > submit uses the @login_required decorator.\ Isn't it possible to force the user to login before filling out the form? That

swingtime keyerror

2009-05-14 Thread gl330k
Hey all, I'm using an app called swingtime that I installed for event management. In the admin interface I'm trying to add events. It works great on my local development setup but when I've uploaded to the web server I'm unable to save events through the admin. It comes up with KeyError at

Re: Gravatar django apps

2009-05-14 Thread Rama Vadakattu
Integrating with Gravatar is very easy 1) Get MD5 hash of user's email id import hashlib def getMD5(self): m = hashlib.md5() m.update(self.user.email) return m.hexdigest() 2) and prepare image url as below http://www.gravatar.com/avatar/{{user-email-MD5-

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Valery
Hi Graham, many thanks for your quick and very helpful reply! > You need to ascertain whether they were Apache parent process, Apache > server child worker processes, or mod_wsgi daemon mode processes. OK i'd check next time, i've seen your hint on how to do it, thanks! > > a. both issues

uneditable fields

2009-05-14 Thread duikboot
Hi, is there a way to have a field editable by the superuser but not by another logged in user, in the admin area? The rest of the model should be editable by the logged in user. example: class Test(models.Model): title = models.CharField(max_length=150) page = models.TextField() So

Re: Include Forms in a Template

2009-05-14 Thread Rama Vadakattu
BY passing instance of form as context to the template and saying {{form.as_table}} in the template. On May 14, 5:22 pm, aruns wrote: > Hi, > > i have included many static pages in my template using > > {% include staticpage.html %} > > i have started using views and

django-admin.py not working...HELP!

2009-05-14 Thread bsisco
Ok. I updated to the latest trunk release this morning and now when I run django-admin.py startapp I get the following: (specs: Python 2.5, Win XP Pro, Django trunk release 10781) >django-admin.py startapp rd Traceback (most recent call last): File

Re: Seperate thread - best practices

2009-05-14 Thread Filip Gruszczyński
Ok, thanks. I'll give it a try :-) W dniu 14 maja 2009 11:40 użytkownik Daniel Roseman napisał: > > On May 14, 10:03 am, Filip Gruszczyński wrote: >> > Best practice here would be to stop trying to use a webserver to do >> > things it wasn't

Re: Dynamic queryset when instantiating a form with a ModelChoiceField within a formset

2009-05-14 Thread SteveB
Hi, well I have a solution, but it's not ideal. It involves extending the BaseFormSet class, and passing an extra parameter into the subclass's __init__ method, and saving this value as an attribute to self. The subclass also had to override the _construct_form method, copying all of the code

Include Forms in a Template

2009-05-14 Thread aruns
Hi, i have included many static pages in my template using {% include staticpage.html %} i have started using views and forms, so i am tring to include a form in my template. I am not sure how to do this. Could any one please help on this.. Thanks and Regards, A

Re: need help in query set

2009-05-14 Thread Michael
On Thu, May 14, 2009 at 12:01 PM, Prabhjyot Singh wrote: > > I am using >resultset = queryset.get(status__in=['pending']) > but it is giving me error which says: > > Exception Type: MultipleObjectsReturned > Exception Value: > > get() returned more

Re: The beginner to develop website using DJANGO

2009-05-14 Thread veasna bunhor
Thanks in advanced. On Thu, May 14, 2009 at 6:37 PM, Tomas Zulberti wrote: > > On Thu, May 14, 2009 at 6:56 AM, veasna.bunhor > wrote: > > > > > >Dear all value Django team, > > > >I am a third-year student in IT field that focus on Computer

Dynamic queryset when instantiating a form with a ModelChoiceField within a formset

2009-05-14 Thread SteveB
Hi, I have a form which has a ModelChoiceField, whose queryset has to be set dynamically (when the form is instantiated). I have read an earlier posting on how to do this:

Re: The beginner to develop website using DJANGO

2009-05-14 Thread Tomas Zulberti
On Thu, May 14, 2009 at 6:56 AM, veasna.bunhor wrote: > > >    Dear all value Django team, > >    I am a third-year student in IT field that focus on Computer > programming in Cambodia. I have known a little about Python. Now, i am > start to learn to develop website by

need help in query set

2009-05-14 Thread Prabhjyot Singh
I am using resultset = queryset.get(status__in=['pending']) but it is giving me error which says: Exception Type: MultipleObjectsReturned Exception Value: get() returned more than one WapAd -- it returned 3! Lookup parameters were {'status__in': ['pending']}

The beginner to develop website using DJANGO

2009-05-14 Thread veasna.bunhor
Dear all value Django team, I am a third-year student in IT field that focus on Computer programming in Cambodia. I have known a little about Python. Now, i am start to learn to develop website by using Python framework Django. Could you please tell very step by step what do i need to

Re: using ajax in django

2009-05-14 Thread veasna bunhor
Dear newbie, I am a fourth-year student in IT in cambodia. I just start to learn Python, and now i just start to learn about how to develop the website by using DJANGO. Could you please give to me any idea and tell me about some document for the very beginner programming. Thanks in

Re: What debugger do you use?

2009-05-14 Thread Andy Mikhailenko
I mostly stick to defensive programming so rarely does the need to debug appear; if it does, I use simple print commands to find the stage on which the data is broken; then I fix the algo or add another assert statement. This enables using Kate (or whatever text editor) + manage.py for

Gravatar django apps

2009-05-14 Thread Joshua Partogi
Dear all Does anybody know a good django application for gravatar ( http://gravatar.com ) ? Thank you very much for the redirection. :-) -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow us on twitter:

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Graham Dumpleton
On May 14, 7:14 pm, Valery Khamenya wrote: > Hi, > > I have 2 issues that presumably could be related: > > 1. when I totally stop apache, I see that some apache processes remain > running. When I repeat the stop operation, apache says that apache is not > running, whereas

Re: modular django site: projects vs. apps

2009-05-14 Thread metge
I believe that's I choose the first option. thx for your answer!! On May 12, 5:06 pm, George Song wrote: > On 5/12/2009 3:27 AM, mabuse wrote: > > > I am developing a django site and my aim is to obtain a site with a > > core  application that would be the site basis and

Re: Seperate thread - best practices

2009-05-14 Thread Daniel Roseman
On May 14, 10:03 am, Filip Gruszczyński wrote: > > Best practice here would be to stop trying to use a webserver to do > > things it wasn't intended for. > > > If you need a separate process/thread to run regularly and perform > > some background processing, then put that

Re: overriding change_list.html causes 'maximum recursion depth exceeded' exception

2009-05-14 Thread Margie
Thanks for confirming it Nick. I saw it also on 1.0.2. I went ahead and created a ticket, it's ticket 5. Margie On May 13, 1:32 pm, NickPresta wrote: > I can confirm this happens with 1.0.2 Final. > > On May 7, 2:44 pm, Margie wrote: > > >

Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Valery Khamenya
Hi, I have 2 issues that presumably could be related: 1. when I totally stop apache, I see that some apache processes remain running. When I repeat the stop operation, apache says that apache is not running, whereas the processes do exist. So, I have to kill them manually. 2. For a single HTTP

Re: Seperate thread - best practices

2009-05-14 Thread Filip Gruszczyński
> Best practice here would be to stop trying to use a webserver to do > things it wasn't intended for. > > If you need a separate process/thread to run regularly and perform > some background processing, then put that code in a standalone script > and use a crontab entry to invoke the script.

Global date format in fields

2009-05-14 Thread Bastien
Hi, I needed to change the date format the user sees in a field and I used 'input_formats'. But I was wondering if there was a setting to change it for the whole project, kind of a locale for dates. I tried to add DATE_FORMAT / DATETIME_FORMAT to the settings file but it did not change the

using ajax in django

2009-05-14 Thread newbie
hi, I'm new to django and dont know much of javascript either. I would like to start working on them. Could someone help me write a simple form which can provide any functionality using ajax, preferably using jquery libraries. It would be great if any event other than the submit event