Re: why not django's default server?

2008-10-25 Thread Graham Dumpleton
On Oct 26, 12:32 pm, "Adam Fast" <[EMAIL PROTECTED]> wrote: > It's worth mentioning as well that the Django "built-in" dev server is > single-threaded the last time I heard, and with transferring large > files / the application itself, I see a lot of your users getting > "busy signals" so to spe

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread Kenneth Gonsalves
On Saturday 25 October 2008 09:15:19 pm Keyton Weissinger wrote: > Is there an equivalent to the Rails Rumble for the Django community? and what exactly is Rails Rumble? -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message

Re: Manager to add entries where there is a ManyToMany relationship

2008-10-25 Thread dodgyville
Hi, I have the same problem. Does anyone have any suggestions for how to save forms when the "through" attribute is used on a ManyToMany attribute? Regards, Luke SnappyDjangoUser wrote: > Hi Everyone, > > I need some guidance with adding table entries where I have a M2M > table relationship. I

tinymce help

2008-10-25 Thread Bobby Roberts
hi. I'm using django 1.0 over at webfaction. I have the following setup /static (serves js, css, flash, images etc) /www (my django app) I have tiny_mce loaded to /static/js/tiny_mce/ I have followed the steps at this page: http://code.djangoproject.com/wiki/AddWYSIWYGEditor in this

Re: why not django's default server?

2008-10-25 Thread Adam Fast
It's worth mentioning as well that the Django "built-in" dev server is single-threaded the last time I heard, and with transferring large files / the application itself, I see a lot of your users getting "busy signals" so to speak from the server when they request pages. A few thousand pageviews a

Re: GeoDjango problem -- server hangs on GEOSGeometry calls

2008-10-25 Thread Info Cascade
Justin, More, different information -- On further investigation, I've discovered that it's actually hanging when I try to do a search: > bbpoly = GEOSGeometry('POLYGON(( 38.302807 -122.867744, > 38.482792 -122.867744, 38.482792 -122.633660, 38.302807 -122.633660, > 38.302807 -122.86774

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread James Bennett
On Sat, Oct 25, 2008 at 10:45 AM, Keyton Weissinger <[EMAIL PROTECTED]> wrote: > Is there an equivalent to the Rails Rumble for the Django community? > Shouldn't there be one? What do you think? There was one a couple months ago: http://djangodash.com/ Google is your friend :) -- "Bureaucrat

Re: database API from external tools?

2008-10-25 Thread Russell Keith-Magee
On Sat, Oct 25, 2008 at 3:55 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > Very much a Django newbie here, I'm trying to evaluate a few things > before diving right in. > > I was all set to write something in Ruby Rails, but the reason for > looking at Django is because I also

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread Jeremy Sandell
On Oct 25, 11:45 am, "Keyton Weissinger" <[EMAIL PROTECTED]> wrote: > Hello everyone! > > Long time listener. First time caller > > Is there an equivalent to the Rails Rumble for the Django community? > Shouldn't there be one? What do you think? > > Keyton Having just googled it, I personall

Re: datetime widget without admin

2008-10-25 Thread Adi Jörg Sieker
On 25.10.2008 16:42 Uhr, Low Kian Seong wrote: > Dear all, > > I am using generic views to create my forms without using the admin interface. > > When I try to recreate the form in my template using the form function: > > {{ form.as_p }} > > Everything is okay except that my date fields have no da

Re: Receiving emails via app

2008-10-25 Thread Jeff Anderson
umit wrote: > Hi, i am trying to build a quick blog system. But i want users can > send emails to submit messages with pictures. > How can i receive emails and process them? What should i use? > We use Python's email module. We have an alias set up in postfix that sends the e-mail to our script

Receiving emails via app

2008-10-25 Thread umit
Hi, i am trying to build a quick blog system. But i want users can send emails to submit messages with pictures. How can i receive emails and process them? What should i use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: wrong redirect from admins "View on site" link

2008-10-25 Thread Adi Jörg Sieker
Hi, On 25.10.2008 13:48 Uhr, felix wrote: > its gets the domain value from the Site object. I'm guessing that you > have that domain set to "localhost" thank you very much. That was excatly the problem. Setting the site to localhost:8000 did the trick. adi -- Adi J. Sieker mobile: +4

RSS feed only returning one result, but table has 10 results.

2008-10-25 Thread Darthmahon
Hey Guys, Got a very strange thing going on with the RSS feed framework in Django. Here is the code for one feed: * class LatestNotes(Feed): title = "Title" link = "Link" description = "Description" def items(self): return Note.objects.or

Re: Models not validating

2008-10-25 Thread Daniel Roseman
On Oct 25, 4:09 pm, AdamC <[EMAIL PROTECTED]> wrote: > Thanks Manuel - even if I take that out, I'm still getting the error: > > Error: One or more models did not validate: > tables.pupil: Reverse query name for m2m field 'result' clashes with > m2m field 'Result.pupil'. Add a related_name argumen

Test failures with SQLite :memory: database - contenttypes, auth and sites

2008-10-25 Thread Chris H.
I've noticed at work and with my personal code that since the upgrade to Django 1.0 that I'm getting test failures when I run the unit tests under a SQLite :memory: database. I thought it might be something to do with those two codebases, so this morning I started a fresh project and I'm seeing t

Re: why not django's default server?

2008-10-25 Thread Jeff FW
And you don't need root access to install/run Apache either. It might be a pain to install w/o root, depending on your OS, but running it wouldn't be too hard, as long as you pick a port above 1024. One very good reason (I think) to avoid using Django's development server is the inability to use

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread Karen Tracey
On Sat, Oct 25, 2008 at 11:45 AM, Keyton Weissinger <[EMAIL PROTECTED]>wrote: > > Hello everyone! > > Long time listener. First time caller > > Is there an equivalent to the Rails Rumble for the Django community? > Shouldn't there be one? What do you think? > > You don't say what this Rails Ru

Re: Models not validating

2008-10-25 Thread Karen Tracey
On Sat, Oct 25, 2008 at 11:36 AM, Florencio Cano <[EMAIL PROTECTED]>wrote: > > You are saying that a Pupil is a Team and a Team is a Pupil with that > OneToOneField. In the Team you are saying one Pupil belongs to many > Teams and a Team have many Pupils that seems ok but the OneToOneField > seems

Django Equivalent to Rails Rumble

2008-10-25 Thread Keyton Weissinger
Hello everyone! Long time listener. First time caller Is there an equivalent to the Rails Rumble for the Django community? Shouldn't there be one? What do you think? Keyton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Models not validating

2008-10-25 Thread Florencio Cano
You are saying that a Pupil is a Team and a Team is a Pupil with that OneToOneField. In the Team you are saying one Pupil belongs to many Teams and a Team have many Pupils that seems ok but the OneToOneField seems wrong. 2008/10/25 AdamC <[EMAIL PROTECTED]>: > > 2008/10/25 Manuel Held <[EMAIL PRO

Re: Models not validating

2008-10-25 Thread AdamC
2008/10/25 Manuel Held <[EMAIL PROTECTED]>: > > > Hi Adam, > > use: > > table = models.OneToOneField(Table) > > instead of > > table = models.OneToOneField('Table') > > You don't have to use ' there. > > Happy Coding > > Manuel > Thanks Manuel - even if I take that out, I'm still getting the err

datetime widget without admin

2008-10-25 Thread Low Kian Seong
Dear all, I am using generic views to create my forms without using the admin interface. When I try to recreate the form in my template using the form function: {{ form.as_p }} Everything is okay except that my date fields have no datepicker. My question is there a way to re-create the admin i

Template Problem with SelectDateWidget

2008-10-25 Thread Manuel Held
Hi all, i have a little Problem with the order of the SelectDateWidget in the Templates. It always as Month - Day - Year. How can i Access the Form Fields separately in the Template? Thanks in advance. Manuel --~--~-~--~~~---~--~~ You received this message beca

Re: Models not validating

2008-10-25 Thread Manuel Held
AdamC schrieb: > I'm really at sea here with my models. I used to have an application > in python with cgi, which would allow children to solve simple > multiplication problems and earn points for their team, which is then > displayed in a league table. > > I thought it would be fun to port this

Re: Hi guys. I'm having problem with new-forms admin site.

2008-10-25 Thread Karen Tracey
On Sat, Oct 25, 2008 at 12:31 AM, astray <[EMAIL PROTECTED]> wrote: > > [snip config details] % models.py % > > from django.db import models > > class Publisher(models.Model): >name = models.CharField(max_length=30) >address = models.CharField(max_length=50) >city = models

Re: Comments in reversed order

2008-10-25 Thread Dmitry Dzhus
jrivero wrote: > yes! but the previous solution was useful to paginate the result with > a another templatetag > > {% get_comment_list for entry as comment_list reversed %} > {% paginate comment_list 10 as page using comment_list_page %} > {% for comment in comment_list_page %} > comment.commen

Models not validating

2008-10-25 Thread AdamC
I'm really at sea here with my models. I used to have an application in python with cgi, which would allow children to solve simple multiplication problems and earn points for their team, which is then displayed in a league table. I thought it would be fun to port this over to django to see how i

Re: Breaking up models into smaller files

2008-10-25 Thread patrickk
for every model, you have to set: class Meta: app_label = "myappname" ... so, let´s say you have: /myappname/ /models/ __init__.py model1.py model2.py ... __init__.py has to look like: from myappname.models.model1 import ... from myappname.models.mode

Re: why not django's default server?

2008-10-25 Thread Alex Ezell
On Sat, Oct 25, 2008 at 12:27 AM, gniquil <[EMAIL PROTECTED]> wrote: > The reason I don't want to use apache is primarily due to 1. restarts Why not use Apache with mod_wsgi? Then, you just touch a file to reload your new code. No restart needed. /alex --~--~-~--~~~

Re: django.contrib.comments and returning to the original object

2008-10-25 Thread Dmitry Dzhus
Brandon Taylor wrote: > Hi everyone, > > I'm using 1.0 and have added contrib.comments to my project which has > a blog. I can preview a comment just fine, but I would like to provide > a way for the user to get back to the original blog entry once they've > posted their comment. Hi Brandon, I ca

Re: order of apps in the admin panel

2008-10-25 Thread Daniel Roseman
On Oct 25, 11:23 am, patrickk <[EMAIL PROTECTED]> wrote: > unfortunately, I don´t think there is. stuff like this doesn´t seem to > be important enough for the django developers. guess you just have to > accept that (and shake your head). Or, since this is an open-source project, open a ticket an

Re: Breaking up models into smaller files

2008-10-25 Thread Low Kian Seong
How is the "app_label" used? Sparse documentation about this. On Sat, Oct 25, 2008 at 6:53 PM, patrickk <[EMAIL PROTECTED]> wrote: > > be aware that you also have to define app_label = "myapp" for every > model when using the admin-interface. > > patrick. > > > On Oct 25, 12:13 pm, TiNo <[EMAIL P

Re: Multi-Table Inheritance

2008-10-25 Thread felix
yes, it should work fine. use the admin of the forms just as for any single table model -flix On Fri, Oct 24, 2008 at 7:47 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Does anyone have any suggestions on how to use mutli-table inheritance > with model forms or some other way of creatin

Re: wrong redirect from admins "View on site" link

2008-10-25 Thread felix
its gets the domain value from the Site object. I'm guessing that you have that domain set to "localhost" the view that actually does the relocation is at django.contrib.contenttypes.views shortcut site = Site.objects.all()[0] site.name site.domain site.domain = "127.0.0.0:8000" site.save()

Re: Breaking up models into smaller files

2008-10-25 Thread patrickk
be aware that you also have to define app_label = "myapp" for every model when using the admin-interface. patrick. On Oct 25, 12:13 pm, TiNo <[EMAIL PROTECTED]> wrote: > They are just normal python files. So you could just create a 'models' > folder and within it an __init__.py. > so: > > - app

Re: order of apps in the admin panel

2008-10-25 Thread patrickk
unfortunately, I don´t think there is. stuff like this doesn´t seem to be important enough for the django developers. guess you just have to accept that (and shake your head). On Oct 25, 1:49 am, shacker <[EMAIL PROTECTED]> wrote: > > On Oct 13, 11:00 am, Vokial <[EMAIL PROTECTED]> wrote: > > >

Re: How to send emails when after an event happened?

2008-10-25 Thread TiNo
> > I had similar issues with my project. I am doing an online auction > website which allows user to bid for products and so forth. One of the > function is to send email to the highest bidder when the product has > met its deadlines. Right now I am using "if statement" in views.py to > compare en

Re: Breaking up models into smaller files

2008-10-25 Thread TiNo
They are just normal python files. So you could just create a 'models' folder and within it an __init__.py. so: - app -- models --- __init__.py --- stocks.py etc. # __init__.py from stocks import StockModel from customers import CustomerModel etc. Now you can still use the same import commands a

Re: How to send emails when after an event happened?

2008-10-25 Thread Cassie
I had similar issues with my project. I am doing an online auction website which allows user to bid for products and so forth. One of the function is to send email to the highest bidder when the product has met its deadlines. Right now I am using "if statement" in views.py to compare end time with

Re: Date Format in Admin

2008-10-25 Thread Botolph
> http://docs.djangoproject.com/en/dev/ref/settings/#date-format > > I would like to change the formatting of dates in the admin from - > > MM-DD to DD-MM-. I have set "DATE_FORMAT" in the settings file, > > but that only changes list_display and not the DateField input. As I said, that

Breaking up models into smaller files

2008-10-25 Thread Low Kian Seong
I am trying to build an app in django which has a few components: 1. Stocks 2. Customers and 3. Sales I noticed that my models.py is getting huge and unwieldy. I tried digging around but could not find anything good but is there a guide on properly breaking a huges models.py into smaller chunks

Re: Ordering M2M field?

2008-10-25 Thread Matías Costa
On Sat, Oct 25, 2008 at 7:26 AM, Russell Keith-Magee <[EMAIL PROTECTED] > wrote: > > On Fri, Oct 24, 2008 at 10:16 PM, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > > OK, I have a model with a many to many relationship.. pretty > > straightforward pre-1.0 code: > > > > class SpecialEvent(mo

Re: Setting up Django on CentOS5 with flup and fastcgi

2008-10-25 Thread [EMAIL PROTECTED]
After doing some research myself i have found that i need to add the path to the users account to the pythonpath normally this would be in ssh as PYTHONPATH=$PYTHONPATH:/home/streamfl/ www but as soon as i close shell this would revert back to how it was... is there a way i can add this to the

Re: Hi guys, I'm having trouble with newform-admin interface

2008-10-25 Thread Christian Joergensen
astray wrote: > ProgrammingError: error: There's no relation named "django_session" > <--- message translated by my own because I'm not English user. Just > focus on the meanig of this message cause this might be not identical. > _ > > I'm guessing thi

Re: Attribute Error when doing a syncdb.

2008-10-25 Thread ஆமாச்சு
//I'm doing a little blog app and I'm going to be using tagging in it. So I wen to the google code page and downloaded it, named it tagging (instead of tagging-0.2.1), and then ran the install.// Does the unzipped folder had a directory 'tagging' inside with the app rests? Please include that to