Re: Strange error in django

2015-04-22 Thread Vijay Khemlani
down into the >> “return” statement, and classification_serializer will be referenced before >> it’s assigned to. (Because it never was assigned to.) >> >> John >> >> On Apr 22, 2015, at 2:36 PM, Cristian Javier Martinez < >> martinezcri...@gmail.com&g

Re: Strange error in django

2015-04-22 Thread John DeRosa
I'm using the django rest framework and successfully deployed an >> application in a production environment but I'm having an strange error >> related to threads when I call a method that performs a simple >> classification task (using a scikit learn classifier

Re: Strange error in django

2015-04-22 Thread Cristian Javier Martinez
se it never was assigned to.) > > John > > On Apr 22, 2015, at 2:36 PM, Cristian Javier Martinez < > martinezcri...@gmail.com > wrote: > > Hi! I'm using the django rest framework and successfully deployed an > application in a production environment but I'

Re: Strange error in django

2015-04-22 Thread John DeRosa
'm using the django rest framework and successfully deployed an > application in a production environment but I'm having an strange error > related to threads when I call a method that performs a simple classification > task (using a scikit learn classifier) and I have no id

Strange error in django

2015-04-22 Thread Cristian Javier Martinez
Hi! I'm using the django rest framework and successfully deployed an application in a production environment but I'm having an strange error related to threads when I call a method that performs a simple classification task (using a scikit learn classifier) and I have no idea what

Re: Strange error with reverse() when running tests

2015-02-06 Thread João Sampaio
Oh, I totally overlooked that! Thank you. On Friday, February 6, 2015 at 12:10:15 PM UTC-3, Daniel Roseman wrote: > > > > On Thursday, 5 February 2015 12:34:51 UTC, João Sampaio wrote: >> >> There are 3 Python files attached. >> >> I have my URL file attached. I'm using django-rest-framework (in c

Re: Strange error with reverse() when running tests

2015-02-06 Thread Daniel Roseman
On Thursday, 5 February 2015 12:34:51 UTC, João Sampaio wrote: > > There are 3 Python files attached. > > I have my URL file attached. I'm using django-rest-framework (in case you > are wondering what the routers are). When I use ./manage.py test with the > first file (file1.py), the tests succ

Strange error with reverse() when running tests

2015-02-05 Thread João Sampaio
There are 3 Python files attached. I have my URL file attached. I'm using django-rest-framework (in case you are wondering what the routers are). When I use ./manage.py test with the first file (file1.py), the tests succeed. When I do the very same thing with the second file, the tests fail. Th

Re: Strange error during migration

2014-07-15 Thread Tianyi Wang
Hi, It says that datetime object is not JSON serializable. You should convert it to string before converting it to JSON. For example: current_date = datetime.datetime.now() # it will throw error if you do json.dumps(current_date) # You should do as below json_string = json.dumps(('{:%Y-%m-%d %H:

Strange error during migration

2014-07-15 Thread Arkaitz Mugica Islas
I'm migrating from Django 1.5.8 to 1.6.5. I've solved quite a lot of bug related to my code, but this time I think it could be a bug. Can anybody help me to fix it or should I post it to django-developers? Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.6.5 Python Ve

Re: Getting a strange error message when setting mysql database

2012-10-22 Thread alfa
I've just figured out that the password set was wrong. I previously passed as the root one, which was wrong. Now, it worked out of the box. On Monday, October 22, 2012 3:35:44 PM UTC+2, alfa wrote: > > Hi, > > After setting the following: > > 'ENGINE': 'django.db.backends.mysql', # post

Getting a strange error message when setting mysql database

2012-10-22 Thread alfa
Hi, After setting the following: 'ENGINE': 'django.db.backends.mysql', # postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'testdb', # Or path to database file if using sqlite3. 'USER': 'testuser', # Not used with sq

Re: A Strange Error-auto_now_add

2011-05-16 Thread Burcu Hamamcıoğlu
Ok. We will carry on monitoring it. Thank you very much again. 2011/5/16 Kenneth Gonsalves > On Mon, 2011-05-16 at 13:59 +0300, Burcu Hamamcıoğlu wrote: > > Thank you very much Kenneth. I think this is a one-off error for now. > > If I > > face to this problem again I'll use default=datetime.no

Re: A Strange Error-auto_now_add

2011-05-16 Thread Kenneth Gonsalves
On Mon, 2011-05-16 at 13:59 +0300, Burcu Hamamcıoğlu wrote: > Thank you very much Kenneth. I think this is a one-off error for now. > If I > face to this problem again I'll use default=datetime.now. But I > couldn't > understand why this happens? Who causes this problem django middleware > or > ora

Re: A Strange Error-auto_now_add

2011-05-16 Thread Burcu Hamamcıoğlu
Thank you very much Kenneth. I think this is a one-off error for now. If I face to this problem again I'll use default=datetime.now. But I couldn't understand why this happens? Who causes this problem django middleware or oracle db? Which one supposed to achieve this auto add action? 2011/5/16 K

Re: A Strange Error-auto_now_add

2011-05-16 Thread Kenneth Gonsalves
On Mon, 2011-05-16 at 13:43 +0300, Burcu Hamamcıoğlu wrote: > ORACLE. long ago I used to have a lot of errors where there was an auto_now_add field along with an image/file field in the same model. At one time auto_now_add was deprecated and we were advised to use default=datetime.now. If this is

Re: A Strange Error-auto_now_add

2011-05-16 Thread Burcu Hamamcıoğlu
ORACLE. 2011/5/16 Kenneth Gonsalves > On Mon, 2011-05-16 at 11:31 +0300, Burcu Hamamcıoğlu wrote: > > I have a project in prodution and a met a strange error last few days. > > create date of my record's field is > > "models.DateTimeField(auto_now_add = > &g

Re: A Strange Error-auto_now_add

2011-05-16 Thread Kenneth Gonsalves
On Mon, 2011-05-16 at 11:31 +0300, Burcu Hamamcıoğlu wrote: > I have a project in prodution and a met a strange error last few days. > create date of my record's field is > "models.DateTimeField(auto_now_add = > True)" . At 15th May a record has been saved to my db

A Strange Error-auto_now_add

2011-05-16 Thread Burcu Hamamcıoğlu
Hi everybody, I have a project in prodution and a met a strange error last few days. create date of my record's field is "models.DateTimeField(auto_now_add = True)" . At 15th May a record has been saved to my db and create date of this record has been set to "15.06.6014&quo

Re: URLField strange error

2011-01-19 Thread galago
ModelForm: class ArticleForm(ModelForm): title = forms.CharField(widget=forms.TextInput(attrs={'class':'input_visible_title', 'title' : _(u'Tytuł'),}), max_length=255, min_length=3) content = forms.CharField(widget=forms.Textarea(

Re: URLField strange error

2011-01-19 Thread Ian Clelland
On Wed, Jan 19, 2011 at 10:37 AM, galago wrote: > Django 1.2.4, > Python 2.7 > All is coded as it should be. debugger shows error in python code as You > said. Maybe it will be fixed in the future. Exception is only when i put [ . > When i put [] all is ok :) Yes, either a bare '[' or ']' in the

Re: URLField strange error

2011-01-19 Thread galago
Django 1.2.4, Python 2.7 All is coded as it should be. debugger shows error in python code as You said. Maybe it will be fixed in the future. Exception is only when i put [ . When i put [] all is ok :) -- You received this message because you are subscribed to the Google Groups "Django users"

Re: URLField strange error

2011-01-19 Thread Ian Clelland
On Wed, Jan 19, 2011 at 6:29 AM, galago wrote: > When I try to insert that string to urlfield: http://asd[d I get strange > exception: > > Invalid IPv6 URL > > How to correct it to show message and not error 500? You will likely need to post some more information: What version of Django, and what

Re: URLField strange error

2011-01-19 Thread aa56280
Something's not right with the data. Can you post more details - like, what string are you trying to insert exactly? -- 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 unsubscr

URLField strange error

2011-01-19 Thread galago
When I try to insert that string to urlfield: http://asd[d I get strange exception: Invalid IPv6 URL How to correct it to show message and not error 500? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Strange Error

2010-11-05 Thread mwarkentin
In the middle of the night, I started getting a bunch of emails about server errors on my Django app. I haven't touched it for over a month. I logged onto the server and restarted Apache.. the error continued popping up for a couple of seconds, and then everything went back to normal. Any ideas

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-04 Thread Steve Holden
Settings.objects.all()[0].id) > return super(SettingsAdmin, self).change_view(self, request, > object_id, extra_context=None) > Congratulations nevertheless on moving so quickly from "that's a strange error" to "wow, I can fix this!". regards Steve -- I'm no e

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-04 Thread Erisa
Oops! I copied the old class with the "self" mistake left in. The correct class is: class SettingsAdmin(admin.ModelAdmin): def changelist_view(self, request, extra_context=None): object_id = str(Settings.objects.all()[0].id) return super(SettingsAdmin, self).change_view(self,

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread Erisa
I found the problem. The object_id needs to be a string! So the following works like a charm: from wolkdata.database.models import * from django.contrib import admin class SettingsAdmin(admin.ModelAdmin): def changelist_view(self, request, extra_context=None): object_id = str(Settin

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread Erisa
I can't believe I missed the "self" problem, but when I fixed that I still received another strange error: Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 100. response = callbac

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread natebeacham
Try not passing "self" to your super call. That parameter should be handled internally. ie: return super(SettingsAdmin, self).change_view(request, object_id, extra_context=None) On Aug 3, 8:26 pm, Erisa wrote: > I have a Settings model that contains settings for my application. > > class Setting

Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread Erisa
I have a Settings model that contains settings for my application. class Settings(models.Model): database_name = models.CharField(max_length=50) current_campaign = models.ForeignKey('Campaign') It only contains one object. I would like to be able to use the admin pages to edit it. Since

Does anybody meet this strange Error

2010-03-09 Thread Forrest Liu
Hi, I am struck with this strange error message: AttributeError at /products/ 'function' object has no attribute 'objects' Request Method:GET Request URL:http://127.0.0.1:8000/products/ Exception Type:AttributeError Exception Value: 'function' object has no

Re: Does anybody meet this strange Error

2010-03-09 Thread Forrest Liu
Thank you very much. trouble has been solved. 2010/3/9 rebus_ > On 9 March 2010 15:22, Forrest Liu wrote: > > Hi, > > I am struck with this strange error message: > > AttributeError at /products/ > > > > 'function' object has no attribute '

Re: Does anybody meet this strange Error

2010-03-09 Thread rebus_
On 9 March 2010 15:22, Forrest Liu wrote: > Hi, > I am struck with this strange error message: > AttributeError at /products/ > > 'function' object has no attribute 'objects' > > Request Method:GET > Request URL:http://127.0.0.1:8000/products/ >

strange error :'NoneType' object has no attribute 'source'

2009-12-09 Thread gganesh
hi group, I am struck with this strange error message Request Method: GET Request URL:http://127.0.0.1:8000/admissions/enquiry/add/ Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'source' Exception Location: /usr

Strange error: Error was: 'module' object has no attribute 'validators'

2009-10-24 Thread Alexey Moskvin
Hi! I'm using dango 0.97 pre (yep, my site still was not upgraded to be compatible with trunk). I use apache + fastcgi for it. And I have a strange problem: sometimes (I can't guess the order) some of the views throw such error: Tried audio_index in module mysite.audio.views. Error was: 'module'

Re: Strange error while trying to access admin: rendering fails (latest SVN)

2009-08-26 Thread Ryan K
Thanks Karen you've been helping me out recently with debugging a few things and have been a really great asset. Cheers, Ryan Kaskel On Aug 26, 7:19 pm, Karen Tracey wrote: > On Wed, Aug 26, 2009 at 3:33 PM, Ryan K wrote: > > > This is where it says the problem is in the template: > > > Templa

Re: Strange error while trying to access admin: rendering fails (latest SVN)

2009-08-26 Thread Karen Tracey
On Wed, Aug 26, 2009 at 3:33 PM, Ryan K wrote: > > This is where it says the problem is in the template: > > Template error > > In template /usr/local/lib/python2.6/dist-packages/django/contrib/ > admin/templates/admin/base.html, error at line 30 > Caught an exception while rendering: unsupported

Re: Strange error while trying to access admin: rendering fails (latest SVN)

2009-08-26 Thread Ryan K
State in admin rendering process when error occurred: /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node 74. e.source = node.source 75. raise 76. except Exception, e: 77. from sys import exc_info 78. wrapped = TemplateSyntaxError(u'Caught an exception while

Re: Strange error while trying to access admin: rendering fails (latest SVN)

2009-08-26 Thread Ryan K
This is where it says the problem is in the template: Template error In template /usr/local/lib/python2.6/dist-packages/django/contrib/ admin/templates/admin/base.html, error at line 30 Caught an exception while rendering: unsupported operand type(s) for +=: 'function' and 'list' 20 21

Strange error while trying to access admin: rendering fails (latest SVN)

2009-08-26 Thread Ryan K
I am getting a very strange error and I can't tell if it is coming from my code or Django's code. I have not modified the templates of the admin interface at all. Below is the error. I am trying to access http://localhost:8080/. This error still occurrs if I remove all apps from the in

Re: Strange error saving in admin

2009-07-25 Thread jamiecURLe
> > > > I have encountered this with webfaction before. It was my issue, I had > > > > a model that had a parent > child relationship, which whilst not being > > > > totally new to recursion, had failed to spot a real newbie error. > > > > >

Re: Strange error saving in admin

2009-07-25 Thread Julien Phalip
e, I had > > > a model that had a parent > child relationship, which whilst not being > > > totally new to recursion, had failed to spot a real newbie error. > > > > In terms of debugging this one, I'm no expert but I'd start by looking > > > at al

Re: Strange error saving in admin

2009-07-25 Thread jamiecURLe
ionships on the models and scrutinising them until > > something came to light. > > > I'd like to say I'd then use this exact situation as a test case, but > > being new to testing myself I really can't offer any real assistance > > in this one. >

Re: Strange error saving in admin

2009-07-25 Thread Julien Phalip
> I'd like to say I'd then use this exact situation as a test case, but > being new to testing myself I really can't offer any real assistance > in this one. > > Hope this stab is dark helps. > > Cheers, > > Jamie. > > On Jul 24, 1:08 pm, Julien Phal

Re: Strange error saving in admin

2009-07-25 Thread jamiecURLe
On Jul 24, 1:08 pm, Julien Phalip wrote: > Hi, > > I've got a really strange error on one of my sites. There is an > Organisation model which has a dozen of fields and 1,300 rows. > > Saving organisation details in the admin usually works fine except for > one organisation.

Strange error saving in admin

2009-07-24 Thread Julien Phalip
Hi, I've got a really strange error on one of my sites. There is an Organisation model which has a dozen of fields and 1,300 rows. Saving organisation details in the admin usually works fine except for one organisation. When I click 'Save', the page loads for ever and then it f

Re: Strange Error Related to DjangoUnicodeDecodeError

2009-07-16 Thread Karen Tracey
On Thu, Jul 16, 2009 at 4:59 AM, jfergon wrote: > > Hi, > > I'm working on Django-postgreSQL, and I can't solve a problem. This is > my models.py: > > from django.db import models > from datetime import datetime > > class Event(models.Model): >title = models.TextField(max_length=50,null=False

Strange Error Related to DjangoUnicodeDecodeError

2009-07-16 Thread jfergon
Hi, I'm working on Django-postgreSQL, and I can't solve a problem. This is my models.py: from django.db import models from datetime import datetime class Event(models.Model): title = models.TextField(max_length=50,null=False) celebration = models.DateField(default=datetime.now(),null=Fa

Re: python manage.py runserver giving strange error

2009-02-09 Thread Arnaud Delobelle
I've avoided the problem by using django-admin instead of manage.py... Which does not tell me what's gone wrong. -- Arnaud --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

python manage.py runserver giving strange error

2009-02-09 Thread Arnaud Delobelle
Hello django users, Today I have had this strange error: after a syntax error in a module I had to restart my development server. marigold:qmm arno$ python manage.py runserver /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python: can't open

Re: Strange error using modelformset_factory

2008-12-18 Thread marty3d
Ah I see. Thanks for the explanation! On Dec 18, 9:38 am, "alex.gay...@gmail.com" wrote: > The reason this occurs, even with valid data, is because is_valid() > triggers the validation procedures which set the cleaned_data > attribute. > > Alex > > On Dec 18, 2:33 am, marty3d wrote: > > > Thank

Re: Strange error using modelformset_factory

2008-12-18 Thread alex.gay...@gmail.com
The reason this occurs, even with valid data, is because is_valid() triggers the validation procedures which set the cleaned_data attribute. Alex On Dec 18, 2:33 am, marty3d wrote: > Thanks for the English lesson! :) > > As you both pointed out, the .is_valid() should be used here. I > skipped

Re: Strange error using modelformset_factory

2008-12-18 Thread marty3d
Thanks for the English lesson! :) As you both pointed out, the .is_valid() should be used here. I skipped that part because the data was indeed valid and still got the error message. It has been tried, sorry for not mentioning that. But actually, by trying it again, with the Werkzeug debugger tur

Re: Strange error using modelformset_factory

2008-12-17 Thread Karen Tracey
On Wed, Dec 17, 2008 at 7:49 AM, marty3d wrote: > > Hi! > > I've been stuck with this for some days now, and can't find any > answers whatsoever. Please bare with me since I'm a newbie with Python/ > Django. > (English nitpick: the word is bear, not bare, that you're looking for in that idiom.)

Re: Strange error using modelformset_factory

2008-12-17 Thread Daniel Roseman
On Dec 17, 12:49 pm, marty3d wrote: > Hi! > > I've been stuck with this for some days now, and can't find any > answers whatsoever. Please bare with me since I'm a newbie with Python/ > Django. > > I have this form that's created and populated using > 'modelformset_factory'. What it's supposed to

Strange error using modelformset_factory

2008-12-17 Thread marty3d
Hi! I've been stuck with this for some days now, and can't find any answers whatsoever. Please bare with me since I'm a newbie with Python/ Django. I have this form that's created and populated using 'modelformset_factory'. What it's supposed to do is to 1. show a number of sets so the user can

Re: Non-ASCII character - strange error

2008-11-19 Thread Malcolm Tredinnick
On Wed, 2008-11-19 at 21:24 +0900, Dominic Ashton wrote: > > Guys, > > > Just had the strangest thing happened. > > Finished working on my project last night and everything was working > fine. I backed up the directory using tar, log on today and start my > development server and get the fol

Re: Non-ASCII character - strange error

2008-11-19 Thread Sebastian Bauer
Try put: # -*- coding: utf-8 -*- in first line in .py file Maybe you need change utf-8 to your encoding Dominic Ashton pisze: > > Guys, > > > Just had the strangest thing happened. > > Finished working on my project last night and everything was working > fine. I backed up the directory using

Re: Non-ASCII character - strange error

2008-11-19 Thread Dominic Ashton
Guys, Just had the strangest thing happened. Finished working on my project last night and everything was working fine. I backed up the directory using tar, log on today and start my development server and get the following error message: Traceback (most recent call last): File "manage.py",

Re: Strange error in admin interface when adding a new record (core.js and RelatedObjectLookups.js?)

2008-07-15 Thread Huuuze
Disregard. Odd issue with my ADMIN_MEDIA_PREFIX. On Jul 15, 2:13 pm, Huuuze <[EMAIL PROTECTED]> wrote: > When I click the button to add a new Person object (one of my objects, > not the User object) in the admin interface, I receive the following > error in my console window: > > ERROR:  invalid

Strange error in admin interface when adding a new record (core.js and RelatedObjectLookups.js?)

2008-07-15 Thread Huuuze
When I click the button to add a new Person object (one of my objects, not the User object) in the admin interface, I receive the following error in my console window: ERROR: invalid input syntax for integer: "static_media/admin/js/ core.js" STATEMENT: SELECT "person_person"."id", "person_perso

Strange error after qs-rf

2008-04-30 Thread simonbun
Hi, Before I begin: I'm using newforms-admin r7508, which is a couple of commits after the qs-rf update. Here's my stack trace: Traceback (most recent call last): File "/var/www/mydomain/project/django/core/handlers/base.py", line 82, in get_response response = callback(request, *callback_

Re: Strange error, trying to deploy Django with mod_wsgi

2007-12-11 Thread Graham Dumpleton
On Dec 12, 3:18 pm, Michael Best <[EMAIL PROTECTED]> wrote: > yml wrote: > > Hello Steve, > > > Sometimes ago when I first try to use mod_wsgi I have written a wiki > > page there: > >*http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi > > It is a step by step procedure that I have

Re: Strange error, trying to deploy Django with mod_wsgi

2007-12-11 Thread Michael Best
yml wrote: > Hello Steve, > > Sometimes ago when I first try to use mod_wsgi I have written a wiki > page there: >* http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi > It is a step by step procedure that I have followed to configure > mod_wsgi. It might help you to get your applic

Re: Getting strange error

2007-10-07 Thread Russell Keith-Magee
On 10/8/07, Bourne <[EMAIL PROTECTED]> wrote: > > HEllo Russ, > > Thanks for the help.. I did the syncdb part. I am still > getting the same error. I even changed my DB from sqlite3 ato MYSQL.. The database error you are getting is fairly clear - the database does not contain the tables

Re: Getting strange error

2007-10-07 Thread Bourne
HEllo Russ, Thanks for the help.. I did the syncdb part. I am still getting the same error. I even changed my DB from sqlite3 ato MYSQL.. I installed MYSQL and created a databse and user to it. I am getting still weird errors like Unable to load MySqldb module On Oct 7, 9:50 pm, "

Re: Getting strange error

2007-10-07 Thread Russell Keith-Magee
On 10/8/07, Bourne <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > I am new to Django I have hard time installing > django. I am following every step of tutorials in the website > djangoproject.com. ... > OperationalError: no such table: polls_poll > > Getting this error PL

Getting strange error

2007-10-07 Thread Bourne
Hello everybody, I am new to Django I have hard time installing django. I am following every step of tutorials in the website djangoproject.com. >>> from mysite.polls.models import Poll, Choice >>> Poll.objects.all() Traceback (most recent call last): File "", line 1, in ?

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Steve Potter
On Sep 25, 8:27 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 26, 3:59 am, Steve Potter <[EMAIL PROTECTED]> wrote: > > > > > > This sort of odd error can sometimes come up if you have chosen names > > > for directories/modules which clash with standard Python module names. > > > > Wh

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Graham Dumpleton
On Sep 26, 3:59 am, Steve Potter <[EMAIL PROTECTED]> wrote: > > This sort of odd error can sometimes come up if you have chosen names > > for directories/modules which clash with standard Python module names. > > > Where you have in your WSGI script file for mod_wsgi something like: > > > sys.pat

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Steve Potter
> > This sort of odd error can sometimes come up if you have chosen names > for directories/modules which clash with standard Python module names. > > Where you have in your WSGI script file for mod_wsgi something like: > > sys.path.append('/usr/local/django') > sys.path.append('/usr/local/django

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread yml
Hello Steve, Sometimes ago when I first try to use mod_wsgi I have written a wiki page there: * http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi It is a step by step procedure that I have followed to configure mod_wsgi. It might help you to get your application up and running with

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Graham Dumpleton
On Sep 25, 3:26 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > On Sep 24, 6:16 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > > Are you sure that the user Apache is running as has permissions > > > to read directories/files under the missed user's home dir?. > > > The permissions issu

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Steve Potter
On Sep 24, 6:16 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > Are you sure that the user Apache is running as has permissions > > to read directories/files under the missed user's home dir?. > > The permissions issues along with other common issues are described > in: > > http://code.go

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Graham Dumpleton
On Sep 25, 8:44 am, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On 9/24/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > [...] > > But when I > > tried to load the site I still received a 500 error and the apache > > error log had the following: > > > mod_wsgi (pid=5070): Exception occurred wit

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Ramiro Morales
On 9/24/07, Steve Potter <[EMAIL PROTECTED]> wrote: > [...] > But when I > tried to load the site I still received a 500 error and the apache > error log had the following: > > mod_wsgi (pid=5070): Exception occurred within WSGI script '/home/ > missed/projectsmt/pjsmt.wsgi'. > [...] > OSError: [

Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Steve Potter
I am in the process of trying to deploy a Django site using mod_wsgi. I had no problems installing mod_wsgi. However I did run into a few problems when trying to set the site. The first thing I ran into is that i forgot to install Mysql-python. So, I downloaded the source and did the following:

Strange error from get_and_delete_messages?

2007-09-18 Thread Ryan K
Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/django/core/handlers/ base.py", line 77, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/home/llcom/projects/llcom/makeav/views.py", line 231, in create_avatar return rend

Re: Strange error with tutorial code

2007-04-28 Thread TechnoFreak
Malcolm Tredinnick wrote: > Are you using a Python 2.5 final release and not a pre-release? > > The reason I'm asking is because there was a bug in Python-2.5.1 > pre-releases (including the 2.5.1c1 version that shipped with betas of > Ubuntu Feisty) that caused problems with Django. It's not som

Re: Strange error with tutorial code

2007-04-28 Thread Malcolm Tredinnick
On Sat, 2007-04-28 at 22:55 +0530, Parthan SR wrote: > > Hello, > > I was trying to do the tutorial again and was in tutorial 2 when I met > with a strange error. As per the tutorial I was adding the choices on > to the edit polls page. Now, when I select an existing poll (w

Strange error with tutorial code

2007-04-28 Thread Parthan SR
Hello, I was trying to do the tutorial again and was in tutorial 2 when I met with a strange error. As per the tutorial I was adding the choices on to the edit polls page. Now, when I select an existing poll (which was created with the shell) and try to add another choice, it gives me a type

Re: Help with a strange error: ImportError No module named pwd

2006-12-29 Thread medhat
Well, re-emerging mod_python fixed the problem! -- Medhat --~--~-~--~~~---~--~~ 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 fro

Re: Help with a strange error: ImportError No module named pwd

2006-12-29 Thread medhat
Permissions for what exactly? That's what I can't figure out! If pwd is a builtin module, shouldn't this problem affect other builtin modules too?! But it doesn't -- Thanks, Medhat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Help with a strange error: ImportError No module named pwd

2006-12-29 Thread Pythoni
Check permissions on your Linux box L. --~--~-~--~~~---~--~~ 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 e

Help with a strange error: ImportError No module named pwd

2006-12-28 Thread medhat
Hi, I have been using django with sqlite and the development server on windows for sometime now. Today was the first time that I moved to mysql, apache, mod_python on gentoo linux. In my templates I use restructured text. And it is giving me the following error: Traceback (most recent

Re: Custom Manager in a separate file gives strange error

2006-10-02 Thread Malcolm Tredinnick
On Mon, 2006-10-02 at 02:10 -0700, Corey wrote: > Never mind, I figured it out. I put the import inside the class instead > of outside the class. > > I need more caffeine. Wait a minute, here... I just wrote 400 words on where the problem is going to be (assuming it was a Django bug) and how you

Re: Custom Manager in a separate file gives strange error

2006-10-02 Thread Malcolm Tredinnick
Hi Corey, On Mon, 2006-10-02 at 02:06 -0700, Corey wrote: > I have put a custom manager in a file called managers.py. When I import > it in the model, and assign it to objects I get this strange error: > > unbound method contribute_to_class() must be called with AddressManager &

Re: Custom Manager in a separate file gives strange error

2006-10-02 Thread Corey
Never mind, I figured it out. I put the import inside the class instead of outside the class. I need more caffeine. Corey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Custom Manager in a separate file gives strange error

2006-10-02 Thread Corey
I have put a custom manager in a file called managers.py. When I import it in the model, and assign it to objects I get this strange error: unbound method contribute_to_class() must be called with AddressManager instance as first argument (got ModelBase instance instead) I don't get the

Re: Strange Error when 404 or 500 error

2006-09-18 Thread Gary Wilson
[EMAIL PROTECTED] wrote: > File "/usr/lib/python2.4/site-packages/django/views/debug.py", line > 144, in technical_404_response > t = Template(TECHNICAL_404_TEMPLATE, name='Technical 404 template') > > TypeError: __init__() got an unexpected keyword argument 'name' > <---

Strange Error when 404 or 500 error

2006-09-17 Thread un
Hello, since a few days I get a strange error when there is a request to a page that does not exist or has any kind of bugs. Instead of the normal django error template I get the following traceback: ---> traceback (most recent call last): File &q