Re: MySQLdb + AMD64

2008-09-25 Thread urukay
if you'r talking about developing pc, than it's no problem. I'm running xp64 with mySQL and no problem so far. Of course, it was little harder to get working apache, or eclipse or eclipse with svn, but with sql, there was no problem at all. Radovan theiviaxx wrote: > > > I understand this

Overriding a ForeignKey field in a form looses it's "Add new" plus sign

2008-09-25 Thread D3f0
I've written a class which has two foreign keys which are displayed as tabular forms. The form gets too long, so, I tried to override those fk fields, but I lost the classic "Add New" plus signs that sits just at the left of FK selects. Any clue how can I get them back, using my custom field?

Re: migration problem from Django0.96 to Django1.0

2008-09-25 Thread vijay bhaskar
Hi karen, sorry for the delay,i did not notice this mail.To solve this issue, i have taken the WEEKDAYS_ABBR code from the trunk and added in the django.utils.dates file. Regards & Thank you, Vijay. On Mon, Sep 15, 2008 at 8:09 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Sep 15, 2008

Re: manyTomany visibility in admin

2008-09-25 Thread urukay
you saved it in Admin or in your own form? If in form, problem could be your "def save()" function. did check table(s) of Book model? is it empty? Radovan [EMAIL PROTECTED] wrote: > > > sorry, i forgot to mention that i am using debian stable version > 0.95.1-1etch2 > >

Absolute URLs (including domain name)

2008-09-25 Thread Karish
I am using {{ MEDIA_URL }} in my templates for images, CSS and JS. For example, {{ MEDIA_URL }}img/abc.gif I want to do something similar when I need absolute URLs, and I was wondering what approaches exist. For example, I could define SITE_URL = 'http://www.domain.com/' in settings.py, and then

Re: 'get_latest' is not a valid tag library

2008-09-25 Thread Rock
You need an empty __init.py__ in the directory or else the python files there will not be found. On Sep 25, 10:29 pm, Matthew Crist <[EMAIL PROTECTED]> wrote: > Here's my template: > > {% load get_latest %} > "http://www.w3.org/TR/html4/loose.dtd;> > >         >                 My Site -

Re: 'get_latest' is not a valid tag library

2008-09-25 Thread Matthew Crist
Here's my template: {% load get_latest %} My Site - {%block pagetitle %}{% endblock %} My Site home Blog

Re: 'get_latest' is not a valid tag library

2008-09-25 Thread R. Gorman
Post your template code as well. R. --~--~-~--~~~---~--~~ 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

'get_latest' is not a valid tag library

2008-09-25 Thread Matthew Crist
I am trying to figure out templatetags, and I keep getting the following error: 'get_latest' is not a valid tag library: Could not load template library from django.templatetags.get_latest, No module named get_latest I started with this guide:

Question about ornery nginx reverse proxy in front of apache mod_wsgi

2008-09-25 Thread Prairie Dogg
I'm trying to set up a new server to host several existing django sites. The stack is: Ubuntu Hardy Heron Apache 2.2 MPM Worker w/ mod_wsgi (for dynamic content) Nginx (for static files) I'm migrating away from mod_python. The django apps run correctly under apache mod_wsgi - I've tested this

Django v0.95 issue

2008-09-25 Thread Xian Chen
Hi All, I have a problem with Django v0.95 ( I cannot convince the administrator to install 1.0 for me.) I got this feedback:( AttributeError at /xianchen/ 'function' object has no attribute 'rindex' Request Method: GET Request URL: http://ubinet.engr.uconn.edu/xianchen/ Exception Type:

Re: A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread mcordes
Hi, I'm not sure generic views are the answer. It sounds to me like you're asking about reducing duplication in the templates themselves by creating something you can reuse. That something is a template tag (http://docs.djangoproject.com/en/dev/howto/custom-template-tags/). I think you probably

Re: A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread Karthik Krishnan
Thanks for replying Daniel. I wanted to know if I can use generic views for web application form objects. I would like to use them to avoid duplication on html pages. On Sep 25, 1:20 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 25, 8:51 pm, Karthik Krishnan <[EMAIL PROTECTED]> wrote: >

Re: Comments in Django 1.0 (free comments?)

2008-09-25 Thread Russell Keith-Magee
On Fri, Sep 26, 2008 at 6:31 AM, Janmansilver <[EMAIL PROTECTED]> wrote: > > I have tried to implement comments in a blog I'm building with this in > my template: ... > In template /home/weiter/webapps/django_v1/lib/python2.5/django/ > contrib/comments/templates/comments/form.html, error at line

Comments in Django 1.0 (free comments?)

2008-09-25 Thread Janmansilver
I have tried to implement comments in a blog I'm building with this in my template: {% render_comment_form for wBlog.entry object.id %} It then goes on to fetch another templete inside django that then fails: Template error In template /home/weiter/webapps/django_v1/lib/python2.5/django/

Re: Apache with home directory Django

2008-09-25 Thread Graham Dumpleton
On Sep 26, 8:26 am, "Xian Chen" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to run my Django app on a shared web server. > > As so many people share this server, I install python and Django(1.0) under > my home directory. > > How can I configure the Apache with mod_python to make the django under

Re: INSTALLED_APPS from a template

2008-09-25 Thread Rock
I have no idea, but it only took me a few minutes to create a filter you can put in some templatetags module: from django import template from django.conf import settings from django.template.defaultfilters import stringfilter register = template.Library() @register.filter @stringfilter def

Apache with home directory Django

2008-09-25 Thread Xian Chen
Hi, I want to run my Django app on a shared web server. As so many people share this server, I install python and Django(1.0) under my home directory. How can I configure the Apache with mod_python to make the django under my directory running? The server administrator refused to install

Re: User Login with Django 1.0

2008-09-25 Thread Jeff Anderson
jeffhg58 wrote: > I just recently upgraded to Django 1.0, but when I log in with users > that I have created I get up a popup window > stating syntax error and after I login the clock and calendar objects > are lost. > You'll need to be much more specific. Where are you logging in. What do you

User Login with Django 1.0

2008-09-25 Thread jeffhg58
I just recently upgraded to Django 1.0, but when I log in with users that I have created I get up a popup window stating syntax error and after I login the clock and calendar objects are lost. Has anyone else experienced this issue? Thanks, Jeff

Re: actual django stack

2008-09-25 Thread [EMAIL PROTECTED]
I'm using django on Amazon EC2. And Django does not serve any static files. Actually they are stored on S3 and we plan to use Amazon new CDN functionnalities for that. So I'm trying to find the best solution for serving dynamic files on instances with 2GB of RAM. These instances are running

INSTALLED_APPS from a template

2008-09-25 Thread Tim Sawyer
Hi Folks, I'd like to conditionally add a link based on whether a specific app is included in INSTALLED_APPS or not. Is there an easy way to do this from a template? Cheers, Tim. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: actual django stack

2008-09-25 Thread Marcelo Sanches
I use both, apache mod_python to server django code and nginx at port 80 to serve just media and static files. - Original Message - From: "Frédéric Sidler" <[EMAIL PROTECTED]> To: Sent: Thursday, September 25, 2008 4:41 PM Subject: actual django stack

Re: runserver error

2008-09-25 Thread cwurld
Problem solved - I am using the multilingual module. Although I uploaded the version that is needed for django 1.0, my path was still pointing to the old version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: actual django stack

2008-09-25 Thread Norman Harman
Frédéric Sidler wrote: > What it the best Django stack today. > > In django doc, it says that apache with mod_python is the best > solution in production. But in the same time I see that everyblock use > nginx (probably in mode fastcgi). > > Did you some of you test different solution and can

Re: actual django stack

2008-09-25 Thread Jeff Anderson
Frédéric Sidler wrote: > What it the best Django stack today. > > In django doc, it says that apache with mod_python is the best > solution in production. But in the same time I see that everyblock use > nginx (probably in mode fastcgi). > > Did you some of you test different solution and can

Re: how to reject save of a model with many to many relation

2008-09-25 Thread Rajesh Dhawan
> I have two models, one of them has a many to many relation to the > other one. > > I want to add some checks to the first model, so I overwrote the save > method. If my checks are not ok, I plan not to call super().save(), > but this gives me the error "'FirstModel' instance needs to have a >

Re: nested applications and syncdb question

2008-09-25 Thread Evan
i think he means like this: +application | +-part1 || | +-models.py | +-part2 || | +-models.py | +-urls.py | +-views.py On Sep 25, 4:01 pm, Stephen Sundell <[EMAIL PROTECTED]> wrote: > I am trying to create one application with

Re: A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread Daniel Roseman
On Sep 25, 8:51 pm, Karthik Krishnan <[EMAIL PROTECTED]> wrote: > I know this may be a stupid question but please bear with me. Here is > my problem > > In views.py I have a multiple methods, where each method is mapped to > a unique model. There may be multiple methods mapped to the same >

nested applications and syncdb question

2008-09-25 Thread Stephen Sundell
I am trying to create one application with multiple modules in it. What I have now is an application directory with multiple directories each with its own models.py file. If I include the application in the settings file and run validate it checks the models, but syncdb doesn't add them to the

A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread Karthik Krishnan
I know this may be a stupid question but please bear with me. Here is my problem In views.py I have a multiple methods, where each method is mapped to a unique model. There may be multiple methods mapped to the same model. But no method in views.py is mapped to multiple models. For a GET/POST

actual django stack

2008-09-25 Thread Frédéric Sidler
What it the best Django stack today. In django doc, it says that apache with mod_python is the best solution in production. But in the same time I see that everyblock use nginx (probably in mode fastcgi). Did you some of you test different solution and can share some output here. Here are the

Re: GeoDjango / GIS Garbage Collection Error

2008-09-25 Thread Fredrik Lundh
Justin Bronn wrote: > [W]hen __del__() is invoked in response to a module being deleted > (e.g., when execution of the program is done), other globals > referenced by the __del__() method may already have been deleted. > > Thus, the solution is to not to not import GEOS globals from a >

how to reject save of a model with many to many relation

2008-09-25 Thread Ottavio Campana
I have two models, one of them has a many to many relation to the other one. I want to add some checks to the first model, so I overwrote the save method. If my checks are not ok, I plan not to call super().save(), but this gives me the error "'FirstModel' instance needs to have a primary key

Re: ModelMultipleChoiceField and initial values

2008-09-25 Thread cardhu
Hi Vance, I suppose your code is precompiling ok but isn't it required to explicitly state 'queryset=' before 'Location.objects.all()'? On Sep 22, 6:15 am, "Vance Dubberly" <[EMAIL PROTECTED]> wrote: > Wow this is really screwing me royal.  Doesn't work with any form of > select, best I can tell

Re: runserver error

2008-09-25 Thread cwurld
On Sep 25, 1:10 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 25, 5:42 pm, cwurld <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am trying to upgrade my site from 0.97 to 1.0. When I use the > > command: > > > python manage.py runserver > > > I get the error: > > Error: cannot import

Re: GeoDjango / GIS Garbage Collection Error

2008-09-25 Thread Justin Bronn
On Sep 23, 5:09 pm, Andrew Fong <[EMAIL PROTECTED]> wrote: > When a Django process terminates, I get the following error message: > > Exception exceptions.TypeError: "'NoneType' object is not callable" > in  ignored > Thanks for giving detailed reproduction steps; I've confirmed this behavior.

Re: admin error didn't clear until I reloaded polls detail view

2008-09-25 Thread Daniel Roseman
On Sep 25, 5:36 pm, arnold4321 <[EMAIL PROTECTED]> wrote: > Hi, > > I'm just getting started with Django.  I'm working through the > tutorial on setting up my first app.  I ran into something that > strikes me as odd.  I guess I must have had some mistake in my polls/ > views.py file, because I

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

2008-09-25 Thread SnappyDjangoUser
Hi Everyone, Am I on the right track with my M2M model definition (which includes an intermediate table)? I still need help with 2 questions: 1. How do I create a Model Manager? 2. Within a view, what is the best way to add entries into tables that have a M2M relationship with an intermediate

Re: runserver error

2008-09-25 Thread Daniel Roseman
On Sep 25, 5:42 pm, cwurld <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to upgrade my site from 0.97 to 1.0. When I use the > command: > > python manage.py runserver > > I get the error: > Error: cannot import name connect > > Any ideas how to resolve this? > > Thanks, > Chuck That clearly

Re: Querying Users with Permission

2008-09-25 Thread bobbyc
Looks like users = permission.user_set.all() works, but only if the permission is explicitly assigned to the user. Ideally, I'd like to assign the permissions in Groups. On Sep 25, 1:45 pm, bobbyc881 <[EMAIL PROTECTED]> wrote: > That gives an error... "Error was: 'Permission' object has no >

Re: Querying Users with Permission

2008-09-25 Thread bobbyc881
That gives an error... "Error was: 'Permission' object has no attribute 'users'" Seems like this should be easy... On Sep 25, 11:32 am, "Norman Harman" <[EMAIL PROTECTED]> wrote: > bobbyc881 wrote: > > I'm generating a list of Users in a specific group, in this case, > > "Artists", for a form:

runserver error

2008-09-25 Thread cwurld
Hi, I am trying to upgrade my site from 0.97 to 1.0. When I use the command: python manage.py runserver I get the error: Error: cannot import name connect Any ideas how to resolve this? Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you

admin error didn't clear until I reloaded polls detail view

2008-09-25 Thread arnold4321
Hi, I'm just getting started with Django. I'm working through the tutorial on setting up my first app. I ran into something that strikes me as odd. I guess I must have had some mistake in my polls/ views.py file, because I was getting an error at mysite.com/admin to that effect with debug

Re: Deploying Django Apache mod_python

2008-09-25 Thread [EMAIL PROTECTED]
Thank you so much :-)! That did the trick. --~--~-~--~~~---~--~~ 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

Re: Deploying Django Apache mod_python

2008-09-25 Thread Bojan Mihelac
Would this help: PythonPath "['/home/user/projects', '/home/user/projects/myproject'] + sys.path" Bojan On Sep 25, 6:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to deploy my django project, but when I go to any urls of > the project I get this error: > >

Re: Deploying Django Apache mod_python

2008-09-25 Thread [EMAIL PROTECTED]
And my django install is in /usr/lib/python2.4/site-packages/django --~--~-~--~~~---~--~~ 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

Deploying Django Apache mod_python

2008-09-25 Thread [EMAIL PROTECTED]
Hi, I'm trying to deploy my django project, but when I go to any urls of the project I get this error: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in

Re: Query

2008-09-25 Thread Gerard Petersen
Anurag, In your case a simple CGI script (in python) might suffice, and will only take you 'days' to build. If you choose to take on Django, it might take you 'weeks'. With Django on the otherhand there are loads of features that will help you easily build complex web applications. But

Re: Querying Users with Permission

2008-09-25 Thread Norman Harman
bobbyc881 wrote: > I'm generating a list of Users in a specific group, in this case, > "Artists", for a form: > > artist_group = Group.objects.get(name="Artists") > artist = > forms.ModelChoiceField(queryset=User.objects.filter(groups=artist_group), > required=False) > > I'd like to re-write

Query

2008-09-25 Thread ANURAG BAGARIA
Dear Django Users, I am totally new to the web technology kind of work. I need to develop a web interface (front end) which could upload certain data files to a server, run some calculations on it and then return the results in a form of an output file. I am told that this kind of work can be

Re: Concept Q: Extra model fields for clean templates sake

2008-09-25 Thread Gerard Petersen
Brian, Now that I read it ... so obvious. I've come from a long history of procedural coding. So I understand OOP but don't take full advantage of it yet ... obviously .. :-) Thanx and Greetz! Gerard. Brian Neal wrote: > On Sep 25, 4:33 am, Gerard Petersen <[EMAIL PROTECTED]> wrote: >> Hi

Re: amd64 vs x86 hosting

2008-09-25 Thread David Durham, Jr.
>> I think the primary difference is the amount of RAM that is supported >> and whether or not you have compatible software. With that said, all >> modern processors are x64 so you probably want to default with an x64 >> OS unless you need x86 for software compatibility reasons. > > That's not

Re: How can I test my api between two servers running django

2008-09-25 Thread Steve Holden
Alexander Pugachev wrote: > crazy russian > > 2008/9/23 Vitaliy <[EMAIL PROTECTED] > > > > >so they both created test db for each other > I meen for them selfs :) > We can probably do without any kind of racial slur, thanks. regards Steve (a crazy englishman)

Re: new user needs some advice setting up a model...

2008-09-25 Thread paul
this works well when i'm editing an individual shot. however, i get a error when editing shots inline. i've had a good look around - and this was a known problem. does anyone know if this has been fixed? another question: right now, i'm using the admin UI to input data. right now, my app is

Querying Users with Permission

2008-09-25 Thread bobbyc881
I'm generating a list of Users in a specific group, in this case, "Artists", for a form: artist_group = Group.objects.get(name="Artists") artist = forms.ModelChoiceField(queryset=User.objects.filter(groups=artist_group), required=False) I'd like to re-write this to avoid using a Group that

Problems with Filter+Exclude

2008-09-25 Thread [EMAIL PROTECTED]
I need Help with this QuerySet !!! FooTable.objects.filter(endzeit__lte =convertFirstDayOfWeekToDatetime).exclude(user__user_permissions__codename='bla') I this error: - no such column: auth_user.id Request Method: POST

Re: Whither Validators?

2008-09-25 Thread Russell Keith-Magee
On Thu, Sep 25, 2008 at 8:52 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > Ok, so if I raiseValidationError in the save() methods, will this just > give a big fat ugly general error, or a cute "You have to provide your > complete credit card number" error? Well... it will do whatever you

Re: Concept Q: Extra model fields for clean templates sake

2008-09-25 Thread Brian Neal
On Sep 25, 4:33 am, Gerard Petersen <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm finding myself creating more and more fields in a model to keep my > templates clean. Since it's merely temporary calculated data, and not data to > store permanently it feels like the wrong place. An example: > >

manyTomany visibility in admin

2008-09-25 Thread [EMAIL PROTECTED]
sorry, i forgot to mention that i am using debian stable version 0.95.1-1etch2 - hi all i have a model with two ManyToManyFields. The problem is, that when i choose some values,save it, and later come to the same record, the

manyTomany visibility in admin

2008-09-25 Thread [EMAIL PROTECTED]
hi all i have a model with two ManyToManyFields. The problem is, that when i choose some values,save it, and later come to the same record, the values for this columns are not visible as marked. From mysql terminal everything is ok. So it is little bit confusing. class Tester(models.Model):

Re: Concept Q: Extra model fields for clean templates sake

2008-09-25 Thread Gerard Petersen
Daniel, On the object dynamicness, I think my brain malfunctioned because somehow I new this, but you just helped me remove 3 fields on my product model ... ;-) As far as placing the calculation in the view or the template (thanks on the example btw). An invoice is now generated in html but

Re: migration problem from Django0.96 to Django1.0

2008-09-25 Thread Karen Tracey
On Thu, Sep 25, 2008 at 7:35 AM, jbarker <[EMAIL PROTECTED]> wrote: > > The issue is that WEEKDAYS_ABBR is not defined in /usr/lib/python2.5/ > site-packages/django/utils/dates.py so it's not found. Edit dates.py > and add it in. > > For anyone who hits this problem, just editing dates.py to

Re: Whither Validators?

2008-09-25 Thread Rodrigo Culagovski
Ok, so if I raiseValidationError in the save() methods, will this just give a big fat ugly general error, or a cute "You have to provide your complete credit card number" error? Thanks for the clarification. Rodrigo On Sep 24, 7:41 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Thu,

Re: Difference between sqlite3 and mysql backend on test code involving generic relationships

2008-09-25 Thread Oliver Andrich
Well, it seems to happen, when the post_syncdb signal code from django.contrib.auth is called. Somehow calling the code from ./manage.py test differes from ./manage.py flush. I think I will reproduce this in a minimal django project and try file a bug report. Best regards, Oliver -- Oliver

Re: How to View Raw Generated SQL

2008-09-25 Thread Thomas Guettler
Hi, maybe the SQLLogMiddleware snippet helps you: http://www.djangosnippets.org/snippets/344/ Thomas Güttler Chris schrieb: > I'm trying to debug a usage of callproc, which doesn't return any rows > when used inside Django. Is there anyway to view the SQL and escaped > values sent from db

Re: Command Prompt

2008-09-25 Thread Tim Chase
> (I'm using windows xp home) > > I typed : C:\>django-admin.py25 into the command prompt and it comes > up with the message: > > 'C:\' is not recognized as and internal or external command operable > program or batch file. If you typed that whole string literally it was treated as

Re: Difference between sqlite3 and mysql backend on test code involving generic relationships

2008-09-25 Thread Oliver Andrich
I looked a bit deeper into this issue, and so far I can say, that the exception is raised by django.test.TestCase in the method _pre_setup. call_command('flush', verbosity=0, interactive=False) is where it originates. Calling ./manage.py flush on the command line works like a charm. I also have to

[OT] Looking for developers: platform for fast and effective learning

2008-09-25 Thread Adam Dziendziel
Hello everybody, I'm working on a website for fast and effective learning using spaced repetition technique. This is the same method used in SuperMemo, Mnemosyne, FullRecall or Anki software. I'd want to create an online version, supporting easy adding of own material and sharing with others.

Re: migration problem from Django0.96 to Django1.0

2008-09-25 Thread jbarker
The issue is that WEEKDAYS_ABBR is not defined in /usr/lib/python2.5/ site-packages/django/utils/dates.py so it's not found. Edit dates.py and add it in. Joe On Sep 15, 10:39 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 15, 2008 at 1:58 AM, vijay bhaskar <[EMAIL PROTECTED]>

Re: collecting field values from bound forms (beginner question)

2008-09-25 Thread Daniel Roseman
On Sep 25, 9:36 am, "I.K." <[EMAIL PROTECTED]> wrote: > Hi, > > I've spent a short while reading the documentation but not spotted > what I need. Could somebody point me to the right place please? > > Is there a way to put a bound  Django form into a template to render > an HTML form with the

Re: Admin redirecting to wrong URL?

2008-09-25 Thread Allan
Hi Graham. I do indeed have the PythonOption set in httpd.conf. Unfortunately, this doesn't seem to be the issue -- www.mysite.com/django/admin/ still gets transformed to www.mysite.com/admin after the admin login, which generates a 404 because that's not where admin is. Any other ideas? I'm

Re: Concept Q: Extra model fields for clean templates sake

2008-09-25 Thread Daniel Roseman
On Sep 25, 10:33 am, Gerard Petersen <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm finding myself creating more and more fields in a model to keep my > templates clean. Since it's merely temporary calculated data, and not data to > store permanently it feels like the wrong place. An example: > >

Re: amd64 vs x86 hosting

2008-09-25 Thread mcosta
On Sep 24, 6:07 pm, "David Durham, Jr." <[EMAIL PROTECTED]> wrote: > On Wed, Sep 24, 2008 at 6:14 AM, mcosta <[EMAIL PROTECTED]> wrote: > > One question: ¿amd64 or x86? we've got some bechmark claiming superior > > performance for amd64, both with python and mysql, but then we can not > > tune

Re: amd64 vs x86 hosting

2008-09-25 Thread mcosta
On Sep 24, 5:32 pm, Christian Joergensen <[EMAIL PROTECTED]> wrote: > mcosta wrote: > > One question: ¿amd64 or x86? we've got some bechmark claiming superior > > performance for amd64, both with python and mysql, but then we can not > > tune with psyco. We've taken a look at pyrex but we do not

Difference between sqlite3 and mysql backend on test code involving generic relationships

2008-09-25 Thread Oliver Andrich
Hi, I encounter strange differences when I run my test code against sqlite3 and against mysql. I am about to test it with Postgresql later today. My models make heavy use of generic relationships. And everytime I run "./manage.py test" with the mysql backend I receive the following error.

Re: Multiple instances using mod_python

2008-09-25 Thread Graham Dumpleton
On Sep 25, 8:29 pm, "n00m" <[EMAIL PROTECTED]> wrote: > what if to rename mod_python.so to mod_python_1.so and mod_python_2.so and > keep them both > in apache's modules and run them as if they are different beasts. You cannot do that. If you are wanting process separation then use mod_wsgi

Re: Command Prompt

2008-09-25 Thread Amit Ramon
* timbis2 <[EMAIL PROTECTED]> [2008-09-25 02:25 -0700]: > > (I'm using windows xp home) > > I typed : C:\>django-admin.py25 into the command prompt and it comes > up with the message: > > 'C:\' is not recognized as and internal or external command operable > program or batch file. Are you

Re: Multiple instances using mod_python

2008-09-25 Thread n00m
what if to rename mod_python.so to mod_python_1.so and mod_python_2.so and keep them both in apache's modules and run them as if they are different beasts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Concept Q: Extra model fields for clean templates sake

2008-09-25 Thread Gerard Petersen
Hi All, I'm finding myself creating more and more fields in a model to keep my templates clean. Since it's merely temporary calculated data, and not data to store permanently it feels like the wrong place. An example: I have a product model (child object of an order model). The product has a

Command Prompt

2008-09-25 Thread timbis2
(I'm using windows xp home) I typed : C:\>django-admin.py25 into the command prompt and it comes up with the message: 'C:\' is not recognized as and internal or external command operable program or batch file. How can this be resolved??? It simply won't work! so that the current version of

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-25 Thread Elliot Tucker
Thanks for being dumb TeenSpirit83, i've just spent 30mins trying to fix exactly the same typo...small world. On Sep 11, 2:56 pm, TeenSpirit83 <[EMAIL PROTECTED]> wrote: > > The L in Inline should not be capitalized.  Is it in some doc you are > > working from? > > > Karen > > The docs are

collecting field values from bound forms (beginner question)

2008-09-25 Thread I.K.
Hi, I've spent a short while reading the documentation but not spotted what I need. Could somebody point me to the right place please? Is there a way to put a bound Django form into a template to render an HTML form with the previously posted values in it? I'd like to get the field value

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-25 Thread Graham Dumpleton
On Sep 25, 10:58 am, shacker <[EMAIL PROTECTED]> wrote: > On Sep 24, 4:34 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > If however you have used in Apache configuration the ErrorDocument > > directive for 404 at some point, possibly by enabling multi language > > custom error

Re: UserProfile problem

2008-09-25 Thread Lars Stavholm
Denis Morozov wrote: > Look at this post, it seems to be what you need: > http://pyxx.org/2008/08/18/how-to-extend-user-model-in-django-and-enable-new-fields-in-newforms-admin/ > > And you have to read comments to that page, where is some fix to the > code in the comments. And that, of course,

Re: get children of children

2008-09-25 Thread krylatij
You can also try django-mptt, that works great with object hierarchy http://code.google.com/p/django-mptt/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to