Non-Programmer Help: filter_insterface error?

2008-10-14 Thread David
Hello, I'm not a python programmer, this is the first time I've ever worked with a python app. I'm trying to install "Surftrackr" for my company and I have a problem. I have searched and can not find any clear answers. I have the installed the latest svn of Django. (I started out with the

Graphs

2008-10-14 Thread Ramdas S
Sorry, I tried making them myself. NBut it looks horrible. I think you must make them as pie charts. Please ask the designer to do so Ramdas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: How to get additional dynamic data into ModelChoiceField and ModelMultipleChoiceField?

2008-10-14 Thread Alexis Bellido
Replying to myself :) I haven't found the solution yet but after reading a few posts in the group I think I have to try the "dynamic choices in a ChoiceField" approach and forget about the ModelChoiceField. There seems to be a few options on getting that done so I'll try tomorrow with a fresh

How to get additional dynamic data into ModelChoiceField and ModelMultipleChoiceField?

2008-10-14 Thread Alexis Bellido
Hello, I have a Django app with two models: User and ChatRoom. Each user can be the owner of many chatrooms and can also link to his friends's chatrooms. There's is no authentication in this little app, the User model is just a custom model containing user ids. This is an app that will work with

Re: RESTful API or SOAP in pre-magic

2008-10-14 Thread James Bennett
On Tue, Oct 14, 2008 at 10:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thank you Malcolm for the feedback. > I would prefer to use REST. So write yourself a REST API. (in other words, the answers you get will be precisely as detailed as the questions you ask) -- "Bureaucrat Conrad,

Re: RESTful API or SOAP in pre-magic

2008-10-14 Thread [EMAIL PROTECTED]
Thank you Malcolm for the feedback. I would prefer to use REST. On Oct 14, 9:02 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 11:32 -0700, [EMAIL PROTECTED] wrote: > > Hello, > >  I am trying to get REST or SOAP working in 0.91 pre-magic version of > > Django. The

Re: No module named core

2008-10-14 Thread [EMAIL PROTECTED]
Thank alot! I'm obviously new to django and have been really eager to set this up on dreamhost but have been stuck with this for a while. Cheers! J On Oct 14, 4:31 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > My directory structure is: > > > projects/ > >    

use vObject for event calender application?

2008-10-14 Thread sotirac
Has anybody had any experience using vObject (http:// vobject.skyhouseconsulting.com/). I want to try to create an event calendar application in django and all blogs/website suggest that I use this as part of the backend. Just want to make sure that I am going down the correct path. I haven't

Re: POST data delay

2008-10-14 Thread david
On Oct 15, 11:42 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 17:38 -0700, david wrote: > > Hi hope all is well.  Please tell me if this is related to Django. > > > Using Django 1.0 with Apache 2.2.9. > > > Have a very simple form by writing to the Httpresponse

Populating form from existing model

2008-10-14 Thread Adam
I have a model called "myRegion" defined like so: class myRegion(models.Model): area = models.CharField(max_length=50, blank=False) state = models.CharField(max_length=2, blank=False) def __unicode__(self): return self.area + ", " + self.state What I

Re: RESTful API or SOAP in pre-magic

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 11:32 -0700, [EMAIL PROTECTED] wrote: > Hello, > I am trying to get REST or SOAP working in 0.91 pre-magic version of > Django. The idea is to let a third-party vendor check via xmlrpc to > see if a user is authorized on our system and get a username. I was > planning on

Re: unable to get rid of app name via rewrite

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 08:43 -0700, jwing wrote: > Hi all, I just moved to Django from Pylons. Django never ceases to > amaze me so far, but when I tried to deploy my app on apache > (fastcgi), I got the rewrite issue with no any corresponding solution > via Google, well, I can't find it at least

Re: 1.0 Transactions and Caching ...

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 07:33 -0700, dbee wrote: > I'm upgrading my .97 app to 1.0 and I'm trying to figure out > transactions and caching ... > > In my app at present I have ... > > def event_editor(request): > > . > > return > > # Defeat caching for the event_editor >

Re: Data too long for column problem

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 06:12 -0700, zjffdu wrote: > but I found that I can not even store one Chinese word into the column > with 100 bytes capacity. Since you've provided no example of what you're actually doing, or information about what database you're using, it's impossible for us to guess

Re: Data too long for column problem

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 21:05 +0800, DULMANDAKH Sukhbaatar wrote: > chinese and some other complex or unicode characters takes more than > one byte to be stored. but as I know char(250) means 250 bytes or you > can store about 80 chinese chars if we assume 1 char takes 4 bytes. > then you need to

Re: Once-only initialization of per-process resources following Django startup.

2008-10-14 Thread Malcolm Tredinnick
On Mon, 2008-10-13 at 19:18 -0700, Lifto wrote: > > Greetings Django Users, > > How do you control the initialization of your Django process? Do you > rely exclusively on Python's module-loading to initialize your > namespaces and reusable resource-connections? Since modules can be (and are)

Re: POST data delay

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 17:38 -0700, david wrote: > Hi hope all is well. Please tell me if this is related to Django. > > Using Django 1.0 with Apache 2.2.9. > > Have a very simple form by writing to the Httpresponse directly. > > > r = HttpResponse() > r.write('') > r.write('First name: ') >

POST data delay

2008-10-14 Thread david
Hi hope all is well. Please tell me if this is related to Django. Using Django 1.0 with Apache 2.2.9. Have a very simple form by writing to the Httpresponse directly. r = HttpResponse() r.write('') r.write('First name: ') r.write('') r.write('') return r After the form is displayed on the

Re: Making queries guide, incomplete code.

2008-10-14 Thread KillaBee
On Oct 14, 4:52 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 14 oct, 23:25, KillaBee <[EMAIL PROTECTED]> > wrote: > > > > > On Oct 14, 4:17 pm, bruno desthuilliers > > > <[EMAIL PROTECTED]> wrote: > > > On 14 oct, 21:35, KillaBee <[EMAIL PROTECTED]> > > > wrote: > > > (snip) > > > >

Re: a bug about models EmailField

2008-10-14 Thread [EMAIL PROTECTED]
Thank you very much :) I just read the django-trunk original source, and compare it with django0.96 There's much different On Oct 14, 3:50 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Wiadomość napisana w dniu 2008-10-14, o godz. 09:43, przez [EMAIL PROTECTED] > : > > > > > > > I meet a bug in

DB record retrieval from every N minutes

2008-10-14 Thread grahamu
I'd like to find an efficient method to retrieve a list of Django DB records (model has a DateTimeField `timestamp`) between datetime 'start' and datetime 'end' with a few conditions. First, we're looking for a record once every 'interval' minutes. Second, I only want a record if it's timestamp

Re: No module named core

2008-10-14 Thread Steve Holden
[EMAIL PROTECTED] wrote: > My directory structure is: > > projects/ >django/ > __init__.py > trunk/ > django/ >__init__.py > core/ > __init__.py > > and my PYTHONPATH is: > > export

Re: No module named core

2008-10-14 Thread [EMAIL PROTECTED]
My directory structure is: projects/ django/ __init__.py trunk/ django/ __init__.py core/ __init__.py and my PYTHONPATH is: export PYTHONPATH=$HOME/projects:$HOME/projects/django/trunk:$HOME/

Re: manage.py tab completion

2008-10-14 Thread Jeff Anderson
[EMAIL PROTECTED] wrote: > Depending on your site's setup, there is a variety of extra manage.py > commands that could be available. Is it possible to set up tab > completion on these commands? for example: > > ./manage.py syn > => /manage.py syncdb > > If it is not currently supported, how hard

Re: HTTPS Service for Django

2008-10-14 Thread Jeff Anderson
Harish wrote: > Hi Friends, > > I configured a django site using apache, which is running on Fedora 9. > Now I want to enable the > HTTPS (secured ) service on that site > > Any ideas on how to achieve this? > Configure apache to do SSL-- no special setup needed for Django. signature.asc

Re: Template Tags in Text

2008-10-14 Thread bruno desthuilliers
On 14 oct, 23:06, Tim Sawyer <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to puzzle out the best way of achieving something, and I'd > appreciate some help. > > My website contains text writeups of events, and a gallery. I'd like to embed > some images from the gallery into the text writeups.

Re: manage.py tab completion

2008-10-14 Thread bruno desthuilliers
On 14 oct, 21:30, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Depending on your site's setup, there is a variety of extra manage.py > commands that could be available. Is it possible to set up tab > completion on these commands? for example: > > ./manage.py syn > => /manage.py syncdb > >

Re: Problems serving static files with Apache and mod_python

2008-10-14 Thread bruno desthuilliers
On 14 oct, 20:28, Javi <[EMAIL PROTECTED]> wrote: > Dear group, > > sorry for starting another thread on this issue. I've seen loads of > messages with similar but particular problems. > My system: > * apache2 (2.2.9-10) > * libapache2-mod-python (3.3.1-5) > * python-django (1.0-1) > > My

Re: Making queries guide, incomplete code.

2008-10-14 Thread bruno desthuilliers
On 14 oct, 23:25, KillaBee <[EMAIL PROTECTED]> wrote: > On Oct 14, 4:17 pm, bruno desthuilliers > > <[EMAIL PROTECTED]> wrote: > > On 14 oct, 21:35, KillaBee <[EMAIL PROTECTED]> > > wrote: > > (snip) > > > > No, it is very helpful, I know now that I have to learn all of python > > > and I know

manage.py tab completion

2008-10-14 Thread [EMAIL PROTECTED]
Depending on your site's setup, there is a variety of extra manage.py commands that could be available. Is it possible to set up tab completion on these commands? for example: ./manage.py syn => /manage.py syncdb If it is not currently supported, how hard would it be to include? Would it use

Re: Making queries guide, incomplete code.

2008-10-14 Thread KillaBee
On Oct 14, 4:17 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 14 oct, 21:35, KillaBee <[EMAIL PROTECTED]> > wrote: > (snip) > > > No, it is very helpful, I know now that I have to learn all of python > > and I know now that ... means variable. > > No. It means learning a computer

Re: current user

2008-10-14 Thread bruno desthuilliers
On 14 oct, 22:18, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 3:10 PM, gearheart <[EMAIL PROTECTED]> wrote: > >http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser > > Sigh. > > I guess this is the part where I go edit that wiki page to point > people to the

Re: Making queries guide, incomplete code.

2008-10-14 Thread bruno desthuilliers
On 14 oct, 21:35, KillaBee <[EMAIL PROTECTED]> wrote: (snip) > No, it is very helpful, I know now that I have to learn all of python > and I know now that ... means variable. No. It means learning a computer programming language - which in turn means having the slightest clue about what a

Template Tags in Text

2008-10-14 Thread Tim Sawyer
Hi, I'm trying to puzzle out the best way of achieving something, and I'd appreciate some help. My website contains text writeups of events, and a gallery. I'd like to embed some images from the gallery into the text writeups. The text is not in a template, it's in the database and

Re: login problem, Django 1.0

2008-10-14 Thread KillaBee
On Oct 10, 12:02 pm, Robocop <[EMAIL PROTECTED]> wrote: > Unfortunately, that is the explanation.  I really appreciate all the > help though; how disappointing that i didn't learn anything other than > not allowing anyone to touch my projects without me around. > > On Oct 10, 9:59 am, "Karen

Re: modelForm

2008-10-14 Thread Raffaele Salmaso
Alfredo Alessandrini wrote: > I don't understand where is the difference... indentation, so different code paths -- ()_() | That said, I didn't actually _test_ my patch. | + (o.o) | That's what users are for! | +---+ 'm m' |

Re: modelForm

2008-10-14 Thread Raffaele Salmaso
Alfredo Alessandrini wrote: > def setup_player(request): > if request.method == 'POST': > form = PlayerForm(request.POST) > if form.is_valid(): > form.save() > return HttpResponseRedirect(form_successfully) > else: > form =

Re: current user

2008-10-14 Thread Keith Eberle
thanks gearheart and james. i noticed a little blurb in the gearheart's link that points to a new way to do it (YAY!), instead of threadlocals. it worked beautifully, but i believe there's a typo in that... def save_model(self, request, form, change): i think should be: def save_model(self,

Re: current user

2008-10-14 Thread James Bennett
On Tue, Oct 14, 2008 at 3:17 PM, Keith Eberle <[EMAIL PROTECTED]> wrote: > ah yes, threadlocals... i was thinking maybe there was a newer way. > > its nice how you can override the queryset method of a ModelAdmin class > because that gets passed a request. I was hoping there'd be some similar >

Re: current user

2008-10-14 Thread James Bennett
On Tue, Oct 14, 2008 at 3:10 PM, gearheart <[EMAIL PROTECTED]> wrote: > http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser Sigh. I guess this is the part where I go edit that wiki page to point people to the better solution? Yeah, I think this is the part where I go edit that wiki

Re: current user

2008-10-14 Thread gearheart
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser lingrlongr wrote: > What's the best way to always set a User foreign key to the current > user using the admin site? For example: > > # models.py > class MyModel(models.Model): > my_data = models.CharField(max_length=50) >

Re: current user

2008-10-14 Thread Keith Eberle
ah yes, threadlocals... i was thinking maybe there was a newer way. its nice how you can override the queryset method of a ModelAdmin class because that gets passed a request. I was hoping there'd be some similar new functionality with the ModelForm class... thx keith On Tue, Oct 14, 2008

Re: Making queries guide, incomplete code.

2008-10-14 Thread KillaBee
On Oct 14, 1:47 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 1:52 PM, KillaBee < > > > > [EMAIL PROTECTED]> wrote: > > On Oct 14, 12:14 pm, KillaBee <[EMAIL PROTECTED]> > > wrote: > > > On Oct 14, 12:07 pm, Brian Neal <[EMAIL PROTECTED]> wrote: > > > > > On Oct 14,

Re: password_reset

2008-10-14 Thread Alessandro Ronchi
i must add it also doesn't print the newpassword in the email it sends. If you have a working password_reset template, please share with the community :) 2008/10/14 Alessandro <[EMAIL PROTECTED]>: > I want to let users reset their password, so I've used the password_reset > view. > I don't want

Problems serving static files with Apache and mod_python

2008-10-14 Thread Javi
Dear group, sorry for starting another thread on this issue. I've seen loads of messages with similar but particular problems. My system: * apache2 (2.2.9-10) * libapache2-mod-python (3.3.1-5) * python-django (1.0-1) My project is located at: ~/Desktop/csl2-sdocente/src/candidateTool and the

Re: Making queries guide, incomplete code.

2008-10-14 Thread Karen Tracey
On Tue, Oct 14, 2008 at 1:52 PM, KillaBee < [EMAIL PROTECTED]> wrote: > On Oct 14, 12:14 pm, KillaBee <[EMAIL PROTECTED]> > wrote: > > On Oct 14, 12:07 pm, Brian Neal <[EMAIL PROTECTED]> wrote: > > > > > On Oct 14, 11:35 am, KillaBee <[EMAIL PROTECTED]> > > > wrote: > > > > > > I was reading the

current user

2008-10-14 Thread lingrlongr
What's the best way to always set a User foreign key to the current user using the admin site? For example: # models.py class MyModel(models.Model): my_data = models.CharField(max_length=50) user = models.ForeignKey(User) When this was saved/updated in the admin, "user" should always

RESTful API or SOAP in pre-magic

2008-10-14 Thread [EMAIL PROTECTED]
Hello, I am trying to get REST or SOAP working in 0.91 pre-magic version of Django. The idea is to let a third-party vendor check via xmlrpc to see if a user is authorized on our system and get a username. I was planning on using the sessionid cookie as the query from the 3rd party. I need to

Re: modelForm

2008-10-14 Thread Karen Tracey
On Tue, Oct 14, 2008 at 2:00 PM, Alfredo Alessandrini <[EMAIL PROTECTED]>wrote: > > I've a new error :-) : > > File "./mysite/views.py", line 26, in setup_player >return render_to_response('player_form.html', {'form': form}) > > UnboundLocalError: local variable 'form' referenced before

Re: modelForm

2008-10-14 Thread Alfredo Alessandrini
I've a new error :-) : File "./mysite/views.py", line 26, in setup_player return render_to_response('player_form.html', {'form': form}) UnboundLocalError: local variable 'form' referenced before assignment 2008/10/14 Daniel Roseman <[EMAIL PROTECTED]>: > > On Oct 14, 5:37 pm, "Alfredo

Re: modelForm

2008-10-14 Thread Daniel Roseman
On Oct 14, 5:37 pm, "Alfredo Alessandrini" <[EMAIL PROTECTED]> wrote: > I've setup a form from a model: > > class PlayerForm(ModelForm): >     class Meta: >         model = Player > > I've setup a view function for save the data inserted in the form: > > def setup_player(request): >     if

Re: Making queries guide, incomplete code.

2008-10-14 Thread KillaBee
On Oct 14, 12:14 pm, KillaBee <[EMAIL PROTECTED]> wrote: > On Oct 14, 12:07 pm, Brian Neal <[EMAIL PROTECTED]> wrote: > > > On Oct 14, 11:35 am, KillaBee <[EMAIL PROTECTED]> > > wrote: > > > > I was reading the Making queries guide on the the > > >

method to test for conditions on a per-field basis in a form

2008-10-14 Thread Killarny
I have an application where I need to allow users of various levels access to the same data. For example, I want to render a form representing an employee profile to be displayed to the employee, his supervisor, and the manager. All the fields need to be visible to each of those different types

Re: modelForm

2008-10-14 Thread Alfredo Alessandrini
from http://docs.djangoproject.com/en/dev/topics/forms/#topics-forms-index - Using a form in a view The standard pattern for processing a form in a view looks like this: def contact(request): if request.method == 'POST': # If the form

Forms and saving the image name

2008-10-14 Thread jwesonga
I'm currently developing a Django application that contains allows the user to take a photo using a webcam and save that on the local harddrive. The application won't be accessed remotely in will run from the localhost so there are no security concerns. The image can be saved using some flash

Error Pages and Flatpages

2008-10-14 Thread Hingarajiya,Ravi
Hi All, I am newer in Django Web Framework. I am very curious to know the following How to handle error pages and flat pages? Example : Error : 404 Error : Page not found. Ravi Hingarajiya --~--~-~--~~~---~--~~ You received this message

Re: Making queries guide, incomplete code.

2008-10-14 Thread KillaBee
On Oct 14, 12:07 pm, Brian Neal <[EMAIL PROTECTED]> wrote: > On Oct 14, 11:35 am, KillaBee <[EMAIL PROTECTED]> > wrote: > > > > > I was reading the Making queries guide on the the > > website.http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-que... > > It said: > > > >>>

Re: Making queries guide, incomplete code.

2008-10-14 Thread Brian Neal
On Oct 14, 11:35 am, KillaBee <[EMAIL PROTECTED]> wrote: > I was reading the Making queries guide on the the > website.http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-que... > It said: > > >>> Blog.objects > > >>> b = Blog(name='Foo', > tagline='Bar') > >>> b.objects > >

Re: modelForm

2008-10-14 Thread Steve Holden
Alfredo Alessandrini wrote: > I've setup a form from a model: > > class PlayerForm(ModelForm): > class Meta: > model = Player > > I've setup a view function for save the data inserted in the form: > > def setup_player(request): > if request.method == 'POST': > form =

Re: How to pass a string to a custom filter?

2008-10-14 Thread Mirto Silvio Busico
Thanks; but I was not clear. I'll try to explain: the code is not intended to really create the breadcrumbs. The code tries to identify the problem. The problem is that the statement: parti=aurl.split('/') doesn't generate a list Moreover the statement: aurl.count('/') (with the

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-14 Thread Leaf
Exact same problem, as well. I'm running Ubuntu 8.4 Hardy (server edition), but after running the apparmor_status command, I don't see any active [or even existent] AppArmor profiles that are activated onto httpd, Python, or any other relevant processes. It still didn't work after I disabled

modelForm

2008-10-14 Thread Alfredo Alessandrini
I've setup a form from a model: class PlayerForm(ModelForm): class Meta: model = Player I've setup a view function for save the data inserted in the form: def setup_player(request): if request.method == 'POST': form = PlayerForm(request.POST) if form.is_valid():

Making queries guide, incomplete code.

2008-10-14 Thread KillaBee
I was reading the Making queries guide on the the website. http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-queries It said: >>> Blog.objects >>> b = Blog(name='Foo', tagline='Bar') >>> b.objects Traceback: ... AttributeError: "Manager isn't accessible via Blog instances."

Re: unable to get rid of app name via rewrite

2008-10-14 Thread Steve Holden
jwing wrote: > Hi all, I just moved to Django from Pylons. Django never ceases to > amaze me so far, but when I tried to deploy my app on apache > (fastcgi), I got the rewrite issue with no any corresponding solution > via Google, well, I can't find it at least :( > > I Got: > 1) several apps

password_reset

2008-10-14 Thread Alessandro
I want to let users reset their password, so I've used the password_reset view. I don't want to show my admin site to users, so I've overwritten the template (r'^accounts/password_reset[/]*$', 'django.contrib.auth.views.password_reset' ,{'template_name': 'account/password_reset_form.html'}), In

Re: How to pass a string to a custom filter?

2008-10-14 Thread bruno desthuilliers
On 14 oct, 16:34, Mirto Silvio Busico <[EMAIL PROTECTED]> wrote: > Hi all, > I'm trying to pass a string to a custom tag to create custom breadcrumbs. > > I'm using as a base the snippet athttp://www.djangosnippets.org/snippets/656/ > and using the documentation >

unable to get rid of app name via rewrite

2008-10-14 Thread jwing
Hi all, I just moved to Django from Pylons. Django never ceases to amaze me so far, but when I tried to deploy my app on apache (fastcgi), I got the rewrite issue with no any corresponding solution via Google, well, I can't find it at least :( I Got: 1) several apps under project "demo" (app1,

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-14 Thread Odie
Hello, On Oct 11, 2:02 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 4:24 PM, shawn <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > So I want to be able to use mod_python and apache to host my django > > project, but I'm running into a little problem. When I go to my

How to pass a string to a custom filter?

2008-10-14 Thread Mirto Silvio Busico
Hi all, I'm trying to pass a string to a custom tag to create custom breadcrumbs. I'm using as a base the snippet at http://www.djangosnippets.org/snippets/656/ and using the documentation from http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ But it seems that I'm not able to

1.0 Transactions and Caching ...

2008-10-14 Thread dbee
I'm upgrading my .97 app to 1.0 and I'm trying to figure out transactions and caching ... In my app at present I have ... def event_editor(request): . return # Defeat caching for the event_editor function event_editor = cache_control(no_cache=True)(event_editor) # The

Re: Search Module

2008-10-14 Thread hiwd
Aruns, The two most popular I know of are... djangosearch: http://code.google.com/p/djangosearch/ and django-sphinx: http://code.google.com/p/django-sphinx/ I hope that helps. -Kevin On Oct 14, 6:36 am, aruns <[EMAIL PROTECTED]> wrote: > similar to django "userprofile" is there any other

Re: Update_object and file uploads

2008-10-14 Thread [EMAIL PROTECTED]
> Since both file uploading and file storage has changed a bit between > 0.96 and 1.0, it's not surprising that pre-existing code doesn't work > without porting. Thanks Malcolm. I've read the docs on the new file storage and feel fairly comfortable with it, generally speaking--at least all my

Re: Data too long for column problem

2008-10-14 Thread zjffdu
but I found that I can not even store one Chinese word into the column with 100 bytes capacity. On Oct 14, 9:05 pm, "DULMANDAKH Sukhbaatar" <[EMAIL PROTECTED]> wrote: > chinese and some other complex or unicode characters takes more than > one byte to be stored. but as I know char(250) means

Re: Data too long for column problem

2008-10-14 Thread DULMANDAKH Sukhbaatar
chinese and some other complex or unicode characters takes more than one byte to be stored. but as I know char(250) means 250 bytes or you can store about 80 chinese chars if we assume 1 char takes 4 bytes. then you need to change model, and manually alter table column. -- Regards Dulmandakh

Data too long for column problem

2008-10-14 Thread zjffdu
I encountered a problem: "data too long for column problem" when I input Chinese character in admin site Is there any encoding problem? Anyone know the reason? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Formset - How to avoid required field errors in extra forms

2008-10-14 Thread Federico H
Hello again. I tried this: AsignacionItemFormset = formset_factory(AsignacionItemForm, can_delete=True, extra=0) initial_data = [] for item in initialdataquery: initial_data.append({...}) # Now I append an extra item with the defaul initial data initial_data.append({'asignacion_id':1})

Re: allowing users to create and edit content types without editing model classes

2008-10-14 Thread Steve Holden
webcomm wrote: > I've been playing with django in recent weeks and have been impressed, > but there is one publishing/programming problem I'm not sure how I > would handle with django. I'm thinking of a site where dozens of > different users need to frequently create and edit content types. > >

Re: Formset - How to avoid required field errors in extra forms

2008-10-14 Thread Federico H
Hi, I have been debugin. I understand that assigning initial values directly to each form in the formset is not the way. One question other though. How would you go if you had to change the queryset of a ModelChoiceField inside the view code? Now, I'm doing form.fields['gondola'].queryset =

Re: Freelance Django / Web Developer - Hiring Now

2008-10-14 Thread Ronaldo Zacarias Afonso
Hi, My name is Ronaldo and I live in Brazil. I'm so interrested in this position. I have free 10-30 hours peer, but, as you can see, I'm not able to go to the office in USA "often". I have about 10 years of experience in Linux and about 2 years in Python (4 mounths in Django). These are the

Freelance Django / Web Developer - Hiring Now

2008-10-14 Thread [EMAIL PROTECTED]
We're a small web development company based in San Francisco, USA and Zurich, Switzerland. In order to deal with our growing list of clients and to help move ahead our own products, we are looking for a passionate web developer with django/python knowledge. The workload is between 10 and 30

Search Module

2008-10-14 Thread aruns
similar to django "userprofile" is there any other module which i can plug in and use the search functionality in my site ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: passing data with urls.py

2008-10-14 Thread Tim Chase
>>http://docs.python.org/lib/re-syntax.html >> >> There are several good books and websites that will teach you the >> basics of regexps, and a quick search will bring back a number of >> results. > > Thank alot thats the best response I have had. Glad to help...though in a way, it's as

ManyToMany and Foreignkey fields together (django-admin)

2008-10-14 Thread Anakin
I am deveoping with django for a film web site. I need help with using ManyToMany and Foreignkey fields together and connected to eachother. That is when "Heores" is selected from the foreignkey field, I want the names of actors in "Heroes" to be posted (by ajax or postback) Can I do this

Re: Formset - How to avoid required field errors in extra forms

2008-10-14 Thread gearheart
hi form is being cleaned only if it's values are different from initial values, so debug. btw, you can't do form.field['..'].initial = '..' initial must be dictionary, not list V. On Oct 14, 12:34 am, Federico H <[EMAIL PROTECTED]> wrote: > Hi, > I'm using a formset with hidden fields in the

Re: Issue with starting a process in middleware

2008-10-14 Thread bob
I didn't mean to imply no one was going to look at it. I'm sure it will get fixed. It's strange that on the surface nothing appears to be getting blocked but deep down something is getting deadlocked somewhere. If there is anything I can try to get more info let me know. Regards Bob > > > On

Re: HTTPS Service for Django

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 00:19 -0700, Harish wrote: > Hi Friends, > > I configured a django site using apache, which is running on Fedora 9. > Now I want to enable the > HTTPS (secured ) service on that site > > Any ideas on how to achieve this? There's nothing Django specific about this. In

Re: Which IDE do you choose with django?

2008-10-14 Thread David Reynolds
On 13 Oct 2008, at 7:09 pm, Django users wrote: >> I am a newbie of django, and want to know which IDE is suit for >> django? >> >> thank your Textmate on OS X -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: separate users from django admin'able users

2008-10-14 Thread Malcolm Tredinnick
On Mon, 2008-10-13 at 19:39 -0700, tvaughan wrote: > let's say i'm building and on-line sudoku game. i want two types of > users. the first are those users that would play the game. and the > second are those that are built-in django users who would use the > django admin interface to mange the

check if request.url is a known string

2008-10-14 Thread Alessandro
I have a menu with a class="active" to insert when a page is loaded. I am searching a way to put this class="active" when a page (flatpage, generic or custom view) is the same of the link. something like: {% ifequal request.url "/ricerca/" %} class="active" {% endif %} is it possible? and is

Re: a bug about models EmailField

2008-10-14 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-10-14, o godz. 09:43, przez [EMAIL PROTECTED] : > > I meet a bug in django1.0 > > class Reporter(models.Model): >name = models.CharField(max_length=100) >email = models.EmailField() > >def __unicode__(self): >return '%s : %s ' % (self.name,

Re: Issue with starting a process in middleware

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 08:21 +0100, [EMAIL PROTECTED] wrote: > I did Google around but obviously missed this. Having read it and followed > the links it is definitely the same issue. I will try and investigate but > I think bigger brains than mine have already given up so I may have to > find a

a bug about models EmailField

2008-10-14 Thread [EMAIL PROTECTED]
I meet a bug in django1.0 class Reporter(models.Model): name = models.CharField(max_length=100) email = models.EmailField() def __unicode__(self): return '%s : %s ' % (self.name, self.email) r1 = Reporter() r1.name = 'edison' r1.email = 'x' r1.save() r1.id = 1 Why it

HTTPS Service for Django

2008-10-14 Thread Harish
Hi Friends, I configured a django site using apache, which is running on Fedora 9. Now I want to enable the HTTPS (secured ) service on that site Any ideas on how to achieve this? Thanks Harish Bhat --~--~-~--~~~---~--~~ You received this message because you

Re: Issue with starting a process in middleware

2008-10-14 Thread bob
I did Google around but obviously missed this. Having read it and followed the links it is definitely the same issue. I will try and investigate but I think bigger brains than mine have already given up so I may have to find a dirty work round. Thanks for pointing me in the right direction. Bob

Re: No module named core

2008-10-14 Thread Malcolm Tredinnick
On Tue, 2008-10-14 at 00:10 -0700, [EMAIL PROTECTED] wrote: [...] > and here is the error: > > $ django-admin.py > Traceback (most recent call last): > File "/home/username/projects/django/trunk/django/bin/django- > admin.py", line 2, in ? > from django.core import management >

No module named core

2008-10-14 Thread [EMAIL PROTECTED]
Hello, I attempted to setup django on dreamhost using Gordon Tillman's instructions a while ago but had problems and have been unable to resume the process. I left off with getting an ImportError and have not been able to figure it out. If anyone has resolved this problem or can help me out I

Re: fastCGI: always one server per site ?

2008-10-14 Thread xavier dutoit
> > I am afraid that single pool of fcgi resources is not currently possible for > > multiple django sites. Maybe it would be possible if someone wrote a > > specific script/wrapper for Django but, I guess, it would create more risks > > (think about thread safety) than benefits. > > It is only

Re: fastCGI: always one server per site ?

2008-10-14 Thread Valts Mazurs
On Tue, Oct 14, 2008 at 8:15 AM, Graham Dumpleton < [EMAIL PROTECTED]> wrote: > Dynamically loadable shared libraries even though loaded by > independent process instances will be mapped only once by operating > system. Thanks for the explanation. Valts.

Re: Highlight current active page

2008-10-14 Thread Gerard Petersen
Alex, As the docs state, you can place code in a {% block [name] %} and it gets overwritten when another template has that block defined. This is the base.html: http://paste.pocoo.org/show/87935/ This is a subnavigation with a different active 'tab' in the navigation bar called

Re: Multiple relationships between multiple tables

2008-10-14 Thread Malcolm Tredinnick
On Mon, 2008-10-13 at 15:46 +0300, Necmettin Begiter wrote: > Hello all, > > I have, say, 8 tables: Persons, works, phones, emails, addresses, > eaddresses, articles, books. > > Each one may have relationship with another one, like so: > > A person may have more than one work, phone, email,

  1   2   >