Re: One to Many+foreign key Query: best way to build the optimal result

2009-06-18 Thread BenW
I'm not sure I completely understand the problem, but I'll give it a stab: events = Event.objects.filter(start__gte=datetime.today()) locations = Location.objects.filter(location__in=events) results = [ {'start': loc.location.start, 'title': loc.location.title, 'id': loc.location.id, 'state_i

Re: Scientific Data Frontend with Django

2009-06-18 Thread Rick
Sorry, I forgot to mention the key point about codenode: it provides an interactive web page, which accepts direct Python (or Sage) commands, and includes the ability to render plots, etc. Access to a database could be provided through a Python API. --Rick On Jun 18, 10:13 pm, Rick wrote: > Hi,

Re: Developing on Apache w/ mod_python

2009-06-18 Thread Graham Dumpleton
On Jun 19, 2:49 pm, gte351s wrote: > Graham - Great post, I'll give mod_wsgi a try. Thanks. > > And thanks for all the replies. Here's the configuration file I ended > up > using, which worked (kinda): > > # > FILE-- > > LoadModule

Re: Scientific Data Frontend with Django

2009-06-18 Thread Rick
Hi, Have you looked at codenode (formerly known as knoboo)? This is a distributed application with a Django frontend, and backends that can run on a variety of platforms, including Google App Engine, or even locally. --Rick [1] http://codenode.org/ On Jun 18, 1:28 pm, jordan wrote: > I've bee

Re: how do I show a non-editable field in the admin site

2009-06-18 Thread ankit rai
use readonlyadmin in your admin.py.U can easily get it on search On Thu, Jun 18, 2009 at 7:17 PM, Eernst Bunders wrote: > > Hello > > I am new to django, and am in the process of discovering what it can > and can not do (out of the box). We are primarily interested in jango > as a content genera

Re: Developing on Apache w/ mod_python

2009-06-18 Thread gte351s
Graham - Great post, I'll give mod_wsgi a try. Thanks. And thanks for all the replies. Here's the configuration file I ended up using, which worked (kinda): # FILE-- LoadModule python_module /usr/lib/apache2/modules/mod_python.so

Re: Django and CSS

2009-06-18 Thread Brian Neal
On Jun 18, 2:50 pm, Chris DPS wrote: > Hi, > > I'm new to Django. > I've read the > doc:http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs > which is about static files but still do not quite understand what to > call everything and it isn't working > On my development machine

Trouble with a django snippet FieldAccessForm (per-field user access for forms derived from models)

2009-06-18 Thread dj
snippet: http://www.djangosnippets.org/snippets/1148/ This snippet is exactly what I need, however, I am having difficulty understanding how to render the fields so that they contain the values from the instance object. I setup the form according to the sidebar instructions. I pass the form to t

Re: Django for Google API - Google Search, Google Map

2009-06-18 Thread Brian Neal
On Jun 18, 5:42 pm, Olavgo wrote: > I want to write a website that I think will be using the Google API > (search and map). > > Is there any special reason the do it with Python?  Django? Well, I'm not real sure about the search API, but the Maps API is all Javascript. BN --~--~-~--~---

how to control access the urls like : r'django/\w+'

2009-06-18 Thread lee tony
Hi all, I am new to django. Now I have a problem: When someone hasn't the authority to access some urls(like: r'test/\w+'). How can I control it? Should I use the "requst.user.has_perm()" in all apps belonged to "test"? Is there any shortcut? Thanks in advaced! --~--~-~-

Re: Should this be its own app?

2009-06-18 Thread Wiiboy
Thanks. --~--~-~--~~~---~--~~ 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 to django-users+unsubscr...@

Re: Should this be its own app?

2009-06-18 Thread Kenneth Gonsalves
On Friday 19 June 2009 06:37:59 Wiiboy wrote: > Right. > > I was wondering what would be best.  Would it make sense to have that > be it's own app? I personally would put everything in one app at the start. If things start to grow and you want to reuse that part in another project, or release it

Re: Should this be its own app?

2009-06-18 Thread Wiiboy
Right. I was wondering what would be best. Would it make sense to have that be it's own app? --~--~-~--~~~---~--~~ 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@go

Re: Should this be its own app?

2009-06-18 Thread Kenneth Gonsalves
On Friday 19 June 2009 06:12:12 Wiiboy wrote: > I've got a website (project 'myproject'), in which people can make > their own newsletter articles for submission to a group newsletter. > Should everything that deals with newsletter stuff (storing articles, > etc.) be in it's own app, or be part of

Should this be its own app?

2009-06-18 Thread Wiiboy
I've got a website (project 'myproject'), in which people can make their own newsletter articles for submission to a group newsletter. Should everything that deals with newsletter stuff (storing articles, etc.) be in it's own app, or be part of the main app along with everything else? --~--~--

Preset foreign key in Model Form

2009-06-18 Thread adelaide_mike
Try again. I am new to Django and the web, so I do not know all the right vocabulary. Sorry. I need my ModelForm to be displayed, for creation of a new record, with a date field and a foreign key (pointing to the Source table) selector list aleady populated. I am doing this: form = ListingFor

configuring postgresql_psycopg2 with geodjango

2009-06-18 Thread Dhruv Adhia
Hello, I tried installing and running geodjango and went into some troubles. I am fairly new to django. I tried following the docs out here http://geodjango.org/docs/install.html and got stuck on postgis part and was not able to proceed further ./configure --datadir=`pg_config --sharedir` (dont

Equivalent of timesince in the view

2009-06-18 Thread Matt
I am working on a project involving PyAMF to do display in Flash, so I don't believe I'm able to use the timesince template tag. Is there a way to pass along timesince-type information in my view for each record in a QuerySet? I'm basically looking for something similar to the annotate() method u

Django for Google API - Google Search, Google Map

2009-06-18 Thread Olavgo
I want to write a website that I think will be using the Google API (search and map). Is there any special reason the do it with Python? Django? Technical? Free "pluggables"? Many developers with experience? Is there any reason to see this in connection with the Google App Engine? (Would pr

Empty [] using objects.all() on legacy database

2009-06-18 Thread geraldcor
Hello all, I am trying to work with a legacy database and I ran inspectdb and have a model with the 2 tables that I want to use. The first table, the main table is not working at all. The second table which is related via a foreign key seems to be working just fine. Here are the symptoms: In the

Re: Is it possible to override the method used to call Django’s admin delete confirmation page?

2009-06-18 Thread huu...@gmail.com
I just tried that and I didn't have any luck. As a sanity check, does this look right: class PersonAdmin(admin.ModelAdmin): form = PersonAdminForm def delete_view(self, request, object_id): print 'it worked' When I click the Delete button, I would expect to see "it wo

Re: History timeframe

2009-06-18 Thread Joshua Russo
On Jun 18, 7:36 pm, Karen Tracey wrote: > On Thu, Jun 18, 2009 at 3:42 PM, Joshua Russo wrote: > > > > > Yes, there is a link that says history on the admin pages. But I do > > believe it pulls from the admin logs. > > I just checked and I've got history going back 3 years.  I've never run > ac

Re: Ajax with JSON-RPC -- new Django handler

2009-06-18 Thread lkcl
On Jun 3, 5:14 pm, BenW wrote: > I just posted a JSON-RPC handler I've been working with on the wiki: > > http://code.djangoproject.com/wiki/Jsonrpc > > I'd be interested in feedback from anyone doing async javascript with > Django over RPC. ben, hi, there are many jsonrpc implementations.

Re: Is it possible to override the method used to call Django’s admin delete confirmation page?

2009-06-18 Thread Daniel Roseman
On Jun 18, 9:41 pm, "huu...@gmail.com" wrote: > On Django's admin pages, I'd like to perform an action when the > administrator clicks the Delete button for an object.  In other words, > I'd like to execute some code prior to arriving on the "Are you sure?" > delete confirmation page. > > I reali

Is it possible to override the method used to call Django’s admin delete confirmation page?

2009-06-18 Thread huu...@gmail.com
On Django's admin pages, I'd like to perform an action when the administrator clicks the Delete button for an object. In other words, I'd like to execute some code prior to arriving on the "Are you sure?" delete confirmation page. I realize I could override the template page for this object, but

Re: Scientific Data Frontend with Django

2009-06-18 Thread jordan
I've been wanting to do a similar kind of project for a long time. Just haven't found anyone else who was interested. So, if anyone wants to try to build something like this, send me a note. Jordan On Jun 18, 2:11 pm, Vincent wrote: > Good question. Don't know. My guess is that if you just wan

Re: History timeframe

2009-06-18 Thread Karen Tracey
On Thu, Jun 18, 2009 at 3:42 PM, Joshua Russo wrote: > > Yes, there is a link that says history on the admin pages. But I do > believe it pulls from the admin logs. > I just checked and I've got history going back 3 years. I've never run across any mention of code that prunes history. Why do yo

Re: Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Alex Gaynor
On Thu, Jun 18, 2009 at 3:21 PM, Adam V. wrote: > > Alex, thanks; that's what I was afraid of. > If no one else has, I'd be willing to take a stab at a patch for 1.2. > > On Jun 18, 12:40 pm, Alex Gaynor wrote: > > On Thu, Jun 18, 2009 at 2:38 PM, Adam V. wrote: > > > > > When enabling bulk edi

Re: Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
Alex, thanks; that's what I was afraid of. If no one else has, I'd be willing to take a stab at a patch for 1.2. On Jun 18, 12:40 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 2:38 PM, Adam V. wrote: > > > When enabling bulk edit mode for an Admin list view, is it possible to > > control the

Re: Sports Model ( ManyToMany through Intermediary Table ) Help

2009-06-18 Thread pysports
Awesome advice. To give some context, I am building a minor league sports management system for players, family, officials, league organizers to manage local minor sports ( hockey, soccer, lacrosse, etc...). My biggest challenge so far was modelling these administration features via the admin sys

Django and CSS

2009-06-18 Thread Chris DPS
Hi, I'm new to Django. I've read the doc: http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs which is about static files but still do not quite understand what to call everything and it isn't working On my development machine, I want to use this hack and not deal with other se

Re: gettext vs gettext_lazy?

2009-06-18 Thread Joshua Russo
On Jun 18, 6:30 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 2:22 PM, Joshua Russo wrote: > > > > > I'm a little confused about where to use translation.ugettext and > > translation.ugettext_lazy. The documentation says to always use the > > lazy translation method in models, but it doesn't

Re: History timeframe

2009-06-18 Thread Joshua Russo
Yes, there is a link that says history on the admin pages. But I do believe it pulls from the admin logs. On Jun 18, 6:40 pm, chefsmart wrote: > I guess Joshua is talking about the Django admin logs. > > On Jun 19, 12:31 am, Alex Gaynor wrote: > > > > > On Thu, Jun 18, 2009 at 2:28 PM, Joshua

Re: Ajax with JSON-RPC -- new Django handler

2009-06-18 Thread Adi Andreias
This module could be useful, but there are all sort of problems in code. Like, __public__ = True you meant: self.__public__ = True ? After fixing that I get: AttributeError: 'tuple' object has no attribute 'args' on line return [ a for a in getargspec(self.method).args if (a != "self") ] This c

Re: Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Alex Gaynor
On Thu, Jun 18, 2009 at 2:38 PM, Adam V. wrote: > > When enabling bulk edit mode for an Admin list view, is it possible to > control the widgets used? For the normal editor you can of course > specify a custom form, but I'm not seeing a way to customize the > fields in the list view. > > Basicall

Re: History timeframe

2009-06-18 Thread chefsmart
I guess Joshua is talking about the Django admin logs. On Jun 19, 12:31 am, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 2:28 PM, Joshua Russo wrote: > > > > > It appears that history is only kept for about 2 months. Is this > > correct and can you change the length of time history is kept for?

Re: Conditionally bypassing Django form validation

2009-06-18 Thread chefsmart
Hi, Now when I think about this, even when I POST the form, I would somehow have to tell Django to check for uniqueness in the following way: - SELECT * from my_table WHERE short_name = [short_name parameter goes here] AND id != [primary key parameter goes here] and SELECT * from my_table WHER

Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
When enabling bulk edit mode for an Admin list view, is it possible to control the widgets used? For the normal editor you can of course specify a custom form, but I'm not seeing a way to customize the fields in the list view. Basically, I want to specify that some text fields fields in the list

Re: Beginners question: select box with very much options

2009-06-18 Thread Daniel Roseman
On Jun 18, 4:37 pm, Mathias Waack wrote: > Hello django experts, > > let me first note I'm a beginner in both django and web-development at all. > > I have a form with some select boxes containing several million options. Now > I'd like to have something like the search field in wikipedia, where

Re: History timeframe

2009-06-18 Thread Alex Gaynor
On Thu, Jun 18, 2009 at 2:28 PM, Joshua Russo wrote: > > It appears that history is only kept for about 2 months. Is this > correct and can you change the length of time history is kept for? > > > Erm, history where? You haven't provided a lot of information, or asked a question that's specific e

Re: gettext vs gettext_lazy?

2009-06-18 Thread Alex Gaynor
On Thu, Jun 18, 2009 at 2:22 PM, Joshua Russo wrote: > > I'm a little confused about where to use translation.ugettext and > translation.ugettext_lazy. The documentation says to always use the > lazy translation method in models, but it doesn't say why. Are there > other places that need the lazy

Re: Conditionally bypassing Django form validation

2009-06-18 Thread chefsmart
Thank you Daniel, That's absolutely what it was. So posting all that amount of code was fruitful after all, else we would have gone back and forth trying to find out where the problem lay!! Regards, CM On Jun 19, 12:19 am, Daniel Roseman wrote: > On Jun 18, 8:02 pm, chefsmart wrote: > > > >

History timeframe

2009-06-18 Thread Joshua Russo
It appears that history is only kept for about 2 months. Is this correct and can you change the length of time history is kept for? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Beginners question: select box with very much options

2009-06-18 Thread Peter Herndon
Jannis Leidel implemented autocomplete in admin, and I've done it a few times in user forms. Jquery has a nice autocomplete plugin (http://bassistance.de), plus I think there's one in the next Jquery UI beta/trunk. IIRC, there's a current GSoC project to add autocomplete to admin. In short, the

Re: Mysql and utf8

2009-06-18 Thread Vitaly Babiy
Thanks Ramiro Vitaly Babiy On Thu, Jun 18, 2009 at 3:08 PM, Ramiro Morales wrote: > > On Thu, Jun 18, 2009 at 4:01 PM, Vitaly Babiy wrote: > > Is there a way to tell django with a setting to include the character-set > on > > the create of tables? > > This (the whole thread topic) is one of th

gettext vs gettext_lazy?

2009-06-18 Thread Joshua Russo
I'm a little confused about where to use translation.ugettext and translation.ugettext_lazy. The documentation says to always use the lazy translation method in models, but it doesn't say why. Are there other places that need the lazy functionality and what makes models special that you can only u

Re: Beginners question: select box with very much options

2009-06-18 Thread chefsmart
Hi, What you are trying to achieve will require you to venture out into deeper web-development waters and learn about JavaScript, which is not related to Django at all. You will need to use Django in conjunction with JavaScript in your templates to get what you want to achieve. Please take a loo

Re: Conditionally bypassing Django form validation

2009-06-18 Thread Daniel Roseman
On Jun 18, 8:02 pm, chefsmart wrote: > Hi, > Now consider the following view: - > > def edit_diploma(request, did): >     diploma_to_edit = Diploma.objects.get(id=did) >     if request.method == 'POST': >         form = EditDiplomaForm(request.POST) >         if form.is_valid(): >             di

Re: Scientific Data Frontend with Django

2009-06-18 Thread Vincent
Good question. Don't know. My guess is that if you just want to show the data in a view using data structures Django knows might be quicker. However, if you are going to process the data (graphs, summary stats, etc.) you might prefer to have numpy arrays to work with. Vincent On Jun 18, 2:02 pm,

Re: Mysql and utf8

2009-06-18 Thread Ramiro Morales
On Thu, Jun 18, 2009 at 4:01 PM, Vitaly Babiy wrote: > Is there a way to tell django with a setting to include the character-set on > the create of tables? This (the whole thread topic) is one of the many topics covered by the profuse MySQL-specific notes that are part of the Django documentation

Re: Sports Model ( ManyToMany through Intermediary Table ) Help

2009-06-18 Thread eric.frederich
I can't help you if you're trying to be able to do this through the admin interface. I'd have no idea how to do this. I would think it would be very complicated or impossible. However, if you create your own form it wouldn't be too hard if you do it in two steps. First create your EventRoster o

Re: Scientific Data Frontend with Django

2009-06-18 Thread Blaine Booher
Thanks for the link, Vincent. Is it easy to have the django view system (generic views) use a PyTables data structure, or would that be a pretty large feat by itself? Definitely worth considering, pyTables boasts great performance. Blaine On Thu, Jun 18, 2009 at 2:32 PM, Vincent wrote: > > I

Conditionally bypassing Django form validation

2009-06-18 Thread chefsmart
Hi, [ Please excuse if this post is a little verbose, but I want to present my case thoroughly ] I am using my own form to edit my models instead of using Django admin (because of client compulsions) Let's consider the following model: - class Diploma(models.Model): short_name = models.Cha

Re: Mysql and utf8

2009-06-18 Thread Vitaly Babiy
Is there a way to tell django with a setting to include the character-set on the create of tables? Vitaly Babiy On Thu, Jun 18, 2009 at 2:18 PM, Karen Tracey wrote: > On Thu, Jun 18, 2009 at 2:06 PM, Vitaly Babiy wrote: > >> I am using MySQL. >> >> Sorry I should have mentioned it in the body

Re: Beginners question: select box with very much options

2009-06-18 Thread Bruno Tikami
Hello Mathias, On Thu, Jun 18, 2009 at 12:37 PM, Mathias Waack wrote: > > Hello django experts, > > let me first note I'm a beginner in both django and web-development at all. welcome! > > I have a form with some select boxes containing several million options. > Now > I'd like to have someth

Re: Scientific Data Frontend with Django

2009-06-18 Thread Vincent
If you have a lot of data pytables may be an option (see link below). It can store data as numpy arrays directly rather than having to convert to such an array after reading from an sql database. http://www.pytables.org Vincent On Jun 18, 1:15 pm, Blaine Booher wrote: > Thank you Rajesh, Vin

Re: Mysql and utf8

2009-06-18 Thread Karen Tracey
On Thu, Jun 18, 2009 at 2:06 PM, Vitaly Babiy wrote: > I am using MySQL. > > Sorry I should have mentioned it in the body not only in the subject. > Yeah, sorry I tend to be blind to subjects. You can configure your server to use utf8 by default by including: default-character-set=utf8 somewh

Sports Model ( ManyToMany through Intermediary Table ) Help

2009-06-18 Thread pysports
Hi Django-Users Hoping someone can take a look at my Models and give some direction. I have having issues trying to relate my Models for a Sports site I'm building to learn python and django. The challenge is as follows... I have an Event model which maps home_team(Team) and away_team(Team), bu

django-logging

2009-06-18 Thread eric.frederich
I need some advice on using the python logging module with django- logging. I have djangologging installed and working. I read the documentation and am trying to figure out how I can best take advantage of the built in logging module. The djangologging docs mention adding handlers and other thi

Re: Scientific Data Frontend with Django

2009-06-18 Thread Blaine Booher
Thank you Rajesh, Vincent, Nick, and Hernan for the helpful suggestions. This is definitely a route I am going to explore. I'll post some updates to the list if anything comes out of it. Would you recommend importing the data into django models and tables, or keeping the db separate and independe

Re: Mysql and utf8

2009-06-18 Thread Vitaly Babiy
I am using MySQL. Sorry I should have mentioned it in the body not only in the subject. Thanks Vitaly Babiy On Thu, Jun 18, 2009 at 1:46 PM, Karen Tracey wrote: > On Thu, Jun 18, 2009 at 1:44 PM, Vitaly Babiy wrote: > >> Hey All, >> How can I have django create the tables that are utf8 encod

Re: Mysql and utf8

2009-06-18 Thread Karen Tracey
On Thu, Jun 18, 2009 at 1:44 PM, Vitaly Babiy wrote: > Hey All, > How can I have django create the tables that are utf8 encoding. > What database are you using? Without knowing that it's going to be rather hard to help you. Karen --~--~-~--~~~---~--~~ You recei

Mysql and utf8

2009-06-18 Thread Vitaly Babiy
Hey All, How can I have django create the tables that are utf8 encoding. Thanks, Vitaly Babiy --~--~-~--~~~---~--~~ 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@go

Re: How to convert a unicode string into something that can call an object?

2009-06-18 Thread Bastien
Thank you both, I think the dictionary is the safest method here but I'm glad to know the existence of eval too because I've been searching for it all day and sure will use it in the future. Bastien On Jun 18, 6:52 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 11:50 AM, Dennis Schmidt > > >

django-navbar

2009-06-18 Thread Lars Stavholm
Has anyone been able to use django-navbar successfully in latest Django 1.1 (from trunk)? Any ideas on how to use it appreciated. Or maybe there's a better navigation bar plugin? /Lars Stavholm --~--~-~--~~~---~--~~ You received this message because you are sub

Re: How to convert a unicode string into something that can call an object?

2009-06-18 Thread Alex Gaynor
On Thu, Jun 18, 2009 at 11:50 AM, Dennis Schmidt wrote: > > object = eval(request.POST['type']).objects.get(pk=int(request.POST > ['id'])) > > should work. But you have to be very careful with what's inside of > your 'type' param, since it will get executed as Python code. So > always make sure n

Re: How to convert a unicode string into something that can call an object?

2009-06-18 Thread Dennis Schmidt
object = eval(request.POST['type']).objects.get(pk=int(request.POST ['id'])) should work. But you have to be very careful with what's inside of your 'type' param, since it will get executed as Python code. So always make sure nobody can inject malicious code there. On 18 Jun., 18:40, Bastien wr

Problem displaying application data

2009-06-18 Thread Francis
Hi, In my project, the admin interface is not able to display tables content of one application. The other application table listing works fine. I did change the SITE_ID for some test, but now I'm screw an I can't find any solution to make it works again. Is there someone with any idea to solve

How to convert a unicode string into something that can call an object?

2009-06-18 Thread Bastien
Hi, in one of my views I receive some unicode from javascript, namely I receive a type of object and its pk. Then I do this: object = request.POST['type'].objects.get(pk=int (request.POST['id'])) and of course Django tells me that a unicode object has no attribute 'objects'. So how c

Re: Alternate authentication

2009-06-18 Thread Daniel Jewett
Thanks Ben, I'll see if I can figure out how to put the class together. On Jun 17, 5:20 pm, Ben Davis wrote: > I believe what you are looking for is a custom authentication backend.  I > had to do this for one of my sites that used an XMLRPC api to authenticate > against a remote server.  You'll

Re: Cucumber clone

2009-06-18 Thread Dennis Schmidt
Very briefly it is a testing framework for BDD, that lets you specify features of your product in plain, NATURAL text. For every "step" you describe there test code can then be executed. (hope this gets the idea, just see the first 6 pictures on their site http://cukes.info/) It's a really great t

Re: Cucumber clone

2009-06-18 Thread Alex Gaynor
On Thu, Jun 18, 2009 at 11:09 AM, Dennis Schmidt wrote: > > Hi there, > > I guess the Rails programmers here all know Cucumber. I wonder if > someone knows anything comparable for Python / django? > > greets, Dennis Schmidt > > > For those of us who aren't rails programmers would you mind providi

Extending ModelForm/Set

2009-06-18 Thread impulze
Heya, as i'm playing around i was wondering how to add custom fields to my form so i can use them while iterating in my templates (e.g. headings), i so far came up with this: class MyModel(models.Model): field = models.IntegerField() class MyForm(forms.ModelForm): class Meta: model = MyM

Cucumber clone

2009-06-18 Thread Dennis Schmidt
Hi there, I guess the Rails programmers here all know Cucumber. I wonder if someone knows anything comparable for Python / django? greets, Dennis Schmidt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: multitable inheritance - child doesn't accept parent link

2009-06-18 Thread Karen Tracey
On Thu, Jun 18, 2009 at 11:21 AM, Luc Saffre wrote: > > Okay, when I add an explicit parent link in my example: > >contact = models.OneToOneField(contacts.Contact,parent_link=True) > > then the TypeError disappears. But still I would now expect that the > following works: > > >>> c = Custome

Re: nginx fastcgi continued..

2009-06-18 Thread Matt Bartolome
Hi Matt, Your issue seems oddly familiar to me but I forget how I fixed it. I'm running nginx-0.7.34 built from source and django trunk Rev: 10558. I would try doing a source build of the current release of nginx which is 0.7.60 first to see if that fixes it. The fastcgi_params are also picky so ch

Beginners question: select box with very much options

2009-06-18 Thread Mathias Waack
Hello django experts, let me first note I'm a beginner in both django and web-development at all. I have a form with some select boxes containing several million options. Now I'd like to have something like the search field in wikipedia, where I get suggestions during typing. I'm fairly su

Re: multitable inheritance - child doesn't accept parent link

2009-06-18 Thread Luc Saffre
On 18.06.2009 14:05, Ramiro Morales wrote: > > Why do you thing there should be a automatically created one to one > relationship from Customer to Contact named "contact"?. Why I think there should be a automatic one-to-one relation from Customer to Contact? Because that's what the MTI documenta

Thumbnail On Save

2009-06-18 Thread Josh
We have an in-house application that allows our clients to upload images to their site from the admin. This application also handles making thumbnails of images on upload if the user desires to do so. The code works perfectly on our development server, but something about it doesn't behave well o

Dual Storage Backends?

2009-06-18 Thread Sean Brant
has anyone come across dual storage backend, ideally id would like a way to save a file locally and then in a back ground process save to s3, the guess the storage class would handle the files locally until the background process has finished then switch to serving the files off of s3? Basecamp d

Re: change list multi-field sort?

2009-06-18 Thread Joshua Russo
On Jun 17, 8:17 pm, Rajesh D wrote: > Hi Josh, > > On Jun 17, 10:25 am, Joshua Russo wrote: > > > Is there a generally accepted workaround for the problem of sorting > > relational models by more than one field? I have a model that > > represents recurring payments between a person and an object

Re: Bug in admin area in SVN

2009-06-18 Thread Karen Tracey
On Thu, Jun 18, 2009 at 9:50 AM, Cole Mickens wrote: > > Sorry, this is my first time posting to a mailing list, I'm more used > to a forum approach to such discussions... > > It appears there is a bug in the administrative area right now. > The link to "Change Password" should be "/admin/password

Bug in admin area in SVN

2009-06-18 Thread Cole Mickens
Sorry, this is my first time posting to a mailing list, I'm more used to a forum approach to such discussions... It appears there is a bug in the administrative area right now. The link to "Change Password" should be "/admin/password_change" but instead is current "admin/password_change" causing

how do I show a non-editable field in the admin site

2009-06-18 Thread Eernst Bunders
Hello I am new to django, and am in the process of discovering what it can and can not do (out of the box). We are primarily interested in jango as a content generation tool, so I am focusing on modeling and using the admin site. One thing I can't realy figure out is how to show fields in admin f

Re: Lighttpd rewrite and django login next

2009-06-18 Thread steveneo
OK, answer myself: setting.FORCE_SCRIPT_NAME="" On Jun 18, 9:12 pm, steveneo wrote: > Anyone can answer me? I am still stuck here Thanks. > > On Jun 17, 11:19 pm, steveneo wrote: > > > > > I am quite new on all these things - lighttpd(1.4.18), django(ver > > 1.0.2 final) and python:(.  My

Re: Lighttpd rewrite and django login next

2009-06-18 Thread steveneo
Anyone can answer me? I am still stuck here Thanks. On Jun 17, 11:19 pm, steveneo wrote: > I am quite new on all these things - lighttpd(1.4.18), django(ver > 1.0.2 final) and python:(.  My lighttpd and django are ready. One > problem I got is the login next URL is always append to lighttpd

Re: multitable inheritance - child doesn't accept parent link

2009-06-18 Thread Ramiro Morales
On Thu, Jun 18, 2009 at 7:00 AM, Luc Saffre wrote: > > sandbox.contacts.models > --- > > from django.db import models > class Contact(models.Model): >    first_name = models.CharField(max_length=200) > [...] > class Customer(contacts.Contact): >    payment_term = models.Integer

Re: change list multi-field sort?

2009-06-18 Thread Joshua Russo
On Jun 17, 8:17 pm, Rajesh D wrote: > Hi Josh, > > On Jun 17, 10:25 am, Joshua Russo wrote: > > > Is there a generally accepted workaround for the problem of sorting > > relational models by more than one field? I have a model that > > represents recurring payments between a person and an object

Re: Why why why not write a search module for Django user?

2009-06-18 Thread Daniel Roseman
On Jun 18, 9:39 am, Shuge Lee wrote: > Search is used in most of CMS, > for avoid re-invent the wheel,  please provider a search engine module. http://haystacksearch.org/ Django is not a CMS. -- DR. --~--~-~--~~~---~--~~ You received this message because you ar

Why why why not write a search module for Django user?

2009-06-18 Thread Shuge Lee
Search is used in most of CMS, for avoid re-invent the wheel, please provider a search engine module. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

nginx fastcgi continued..

2009-06-18 Thread Matt Davies
I'm on ubuntu hardy heron, 2.6.24-19-server 64 bit nginx/0.5.33 django 1.0.2 Python 2.5.2 mysql 5.0.51a-3ubuntu5.4 Here's how I installed everything from the beginning http://pastie.org/515408 Here's how I restart my django app #!/bin/sh if [ -f /var/www/django/conf/pid/$1.pid ]; then

Re: django nginx fastcgi and flup

2009-06-18 Thread Matt Davies
Hi Adam I'm more than willing to help out mate, especially if I can help myself in the process :-) In the wiki you say this Restarting python Fastcgi is odd right now. Do this for now: I think this might be connected to my issue, but I'm not certain. I've written up my process, roughly, and I'm

Re: Is Django multithread safe in Apache or isn't it?

2009-06-18 Thread Graham Dumpleton
On Jun 18, 4:49 pm, "I.S." wrote: > http://code.djangoproject.com/wiki/DjangoSpecifications/Core/Threading > states that "as of 1.0.2, Django has no known threading bugs," and > then promptly goes on to list a lot of annoying things you have to do > in a multithreaded system. Do you or don't yo

Re: Is Django multithread safe in Apache or isn't it?

2009-06-18 Thread Alex Gaynor
On Thursday, June 18, 2009, I.S. wrote: > > http://code.djangoproject.com/wiki/DjangoSpecifications/Core/Threading > states that "as of 1.0.2, Django has no known threading bugs," and > then promptly goes on to list a lot of annoying things you have to do > in a multithreaded system. Do you or do

Re: Scientific Data Frontend with Django

2009-06-18 Thread Hernan Olivera
I think it would be really great if you can interface with R too. There`s a library to acces to R power from Python, and then from Django. 2009/6/18 Nick Fishman > A friend of mine is using Django with matplotlib to create graphs from CSV > files, and it's turning out pretty well. I haven't yet