Re: Import csv file in admin

2010-10-30 Thread Jorge
Felix I try to follow the ideas, but i feel like taking the dirty way. Here's my work: Because i can't replace the modelform created by the admin for the "Data" model with a standard form as the Django docs says, i created a view to replace the "add" view generated by the admin and put a standard

Re: overriding save-method

2010-10-30 Thread skyjur
Write a custom model field: http://docs.djangoproject.com/en/dev/howto/custom-model-fields/ Or even better, take already written one: http://djangosnippets.org/snippets/377/ On Oct 27, 9:14 am, Patrick wrote: > hi, > > i am trying to override the save-method of one of my models. i want to > save

Re: Tracking changes of a model

2010-10-30 Thread Michael
Check out http://bitbucket.org/mhall119/django-audit/wiki/Home -- Michael On Sat, 2010-10-30 at 12:15 +0200, Martin Tiršel wrote: > Hello, > > I am using Django admin to create/update some records. Now, I need to > track changes. After somebody updates a record, I need to see what was > cha

Re: Cherokee for home developing

2010-10-30 Thread Max Countryman
Yes, absolutely. :D Good luck! On Oct 30, 2010, at 5:04 PM, Karim Gorjux wrote: > Yes, I noted that when I edit a url and sometimes the code, I have to > kill the fastcgi process to see the result in the browser. I think > that I could run the fastcgi as explained in the django documentation: >

Poll about geodjango

2010-10-30 Thread diegue...@gmail.com
Hi guys, i will like to much if the users of geodjango (aka django.contrib.gis) can make this poll http://goo.gl/l2od Is for a exposition in college. thanks. -- Diego Andrés Sanabria Ingeniería de Sistemas Universidad Distrital about:me http://www.google.com/profiles/diegueus9 cel 3015290609

Re: Cherokee for home developing

2010-10-30 Thread Karim Gorjux
Thanks for all your answer, the topic get a little divergence, but it's ok, I still use Cherokee for developing even if is not so comfortable as I thought. > The best way to save yourself time and effort is really to use the > Django development server when testing out alterations. Yes I guess so

Re: Import csv file in admin

2010-10-30 Thread Felix Dreissig
The ordinary user won't have to deal with the command line, you just need to get the CSV file. A ModelForm to which an FileField is added doesn't really have anything to do with that. Instead, you should create a standard form with a single FileField to upload the CSV file, save it temporarily or

Re: how to develop cms on django

2010-10-30 Thread Matteius
Please try out Live Demo for Django CMS Classcomm ... http://code.google.com/p/classcomm/ and http://classcomm.geekshack.net/handin/ On Oct 29, 1:47 pm, Oivvio Polite wrote: > > i dont have time i need to start development within  a month.. > > > plz tell me all those crucial topics that i should

Re: server configuration

2010-10-30 Thread Pavel Zinovkin
> Actually there is nothing about that is not possible to use worker MPM > and daemon mode. Sorry. I meant prefork MPM :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To uns

Re: server configuration

2010-10-30 Thread Pavel Zinovkin
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Apache_Requirements >For Apache 2.0 and 2.2, either the single threaded 'prefork' or multithreaded >'worker' Apache MPMs can be used. >To be able to make use of daemon mode of mod_wsgi, either Apache 2.0 or 2.2 is >required and the corr

Re: Using new classbased generic views in contrib.databrowse

2010-10-30 Thread Russell Keith-Magee
On Sat, Oct 30, 2010 at 2:01 AM, Michael wrote: > Hi, > > Do you think it is relevant to rewrite databrowse to use the new class- > based generic views ? > I'm motivate to work around this and submit a patch, but want first to > discuss about what to do.. > IMHO, contrib.databrowse (using class-ba

Re: Tracking changes of a model

2010-10-30 Thread Daniel Roseman
On Oct 30, 11:15 am, Martin Tiršel wrote: > Hello, > > I am using Django admin to create/update some records. Now, I need to   > track changes. After somebody updates a record, I need to see what was   > changed and then create a text log like: > > changed `name`: oldvalue -> newvalue, > changed `

Re: can't open file 'django-admin.py': [Errno 2] No such file or directory'.

2010-10-30 Thread Alex
On Oct 30, 1:00 am, sami nathan wrote: > Whenever I try to execute a python script that is located in the > /usr/local/bin, python gives me the error 'python: can't open file > 'django-admin.py': [Errno 2] No such file or directory'. Please type the following commands (without the $ prompt) and p

table namespace hygiene: should I try to rename auth_* tables, or should I use a separate database?

2010-10-30 Thread Alex
django 1.2, python 2.6, mysql 5.1, etc. I am sharing a database with others on my project, and I would like to keep the table namespace neat and tidy. After poking around the archives for a while, I can't see any good way to specify names other than the default auth_group, auth_group_permissions,

Re: Tracking changes of a model

2010-10-30 Thread DaleB
Hi Martin, i think this should give you the basic idea: http://stackoverflow.com/questions/1365963/diff-django-model-objects-with-manytomany-fields Greetings, Andreas On 30 Okt., 12:15, Martin Tiršel wrote: > Hello, > > I am using Django admin to create/update some records. Now, I need to   > t

Re: write a filter for latex that escapes some chars

2010-10-30 Thread SlafS
thx for that. It's not quite what I was looking for but it led me to the solution Thank You. On 29 Paź, 15:42, Brian Bouterse wrote: > We have done this before and used something like the code below.  This > sample is pretty basic. > >    def fixchar(string,char): > >     #fixes chars for latex

Tracking changes of a model

2010-10-30 Thread Martin Tiršel
Hello, I am using Django admin to create/update some records. Now, I need to track changes. After somebody updates a record, I need to see what was changed and then create a text log like: changed `name`: oldvalue -> newvalue, changed `email`: o...@mail.xy -> n...@mail.xy Where is the righ

Re: can't open file 'django-admin.py': [Errno 2] No such file or directory'.

2010-10-30 Thread Daniel Roseman
On Oct 30, 6:00 am, sami nathan wrote: > Whenever I try to execute a python script that is located in the > /usr/local/bin, python gives me the error 'python: can't open file > 'django-admin.py': [Errno 2] No such file or directory'. That makes no sense. That message is a Windows error, and Windo