Re: AttributeError: 'module' object has no attribute 'DatabaseError'

2010-01-23 Thread abs
Just download and untar psycopg2 package and do easy_install. P.s. setup.py build/install works incorrectly -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

AttributeError: 'module' object has no attribute 'DatabaseError'

2010-01-18 Thread abs
importlib.py", line 35, in import_module __import__(name) File "/Library/Python/2.6/site-packages/django/db/backends/ postgresql_psycopg2/base.py", line 23, in DatabaseError = Database.DatabaseError AttributeError: 'module' object has no attribute 'Databas

Re: Confusing error: AttributeError: 'Settings' object has no attribute 'rindex'.

2009-11-16 Thread Gene
rror that has completely perplexed me: AttributeError: > > 'Settings' object has no attribute 'rindex'. > > > The complete traceback is listed below. I get this for any request but > > a root request '/'. I'm, using Django 1.1 with mod_wsgi. > >

Re: Confusing error: AttributeError: 'Settings' object has no attribute 'rindex'.

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 8:02 PM, Gene wrote: > I'm getting an error that has completely perplexed me: AttributeError: > 'Settings' object has no attribute 'rindex'. > > The complete traceback is listed below. I get this for any request but > a root

Confusing error: AttributeError: 'Settings' object has no attribute 'rindex'.

2009-11-16 Thread Gene
I'm getting an error that has completely perplexed me: AttributeError: 'Settings' object has no attribute 'rindex'. The complete traceback is listed below. I get this for any request but a root request '/'. I'm, using Django 1.1 with mod_wsgi. The only

Re: AttributeError when trying to run syncdb after installing django-friends

2009-10-26 Thread Gezim Hoxha
Actually it was an error with the app itself and it had been corrected in a newer version. Thanks :) On Oct 17, 10:37 pm, Prashanth wrote: > Hi Gezim, > > On Sun, Oct 18, 2009 at 7:58 AM, Gezim Hoxha wrote: > > I also added "friends" to the INSTALLED_APPS. > > That all went fine. However runni

Re: AttributeError when trying to run syncdb after installing django-friends

2009-10-18 Thread Prashanth
Hi Gezim, On Sun, Oct 18, 2009 at 7:58 AM, Gezim Hoxha wrote: > I also added "friends" to the INSTALLED_APPS. > That all went fine. However running syncdb gave me this error: Is friends django application or your custom application? looks like you got the path in the installed_apps wrong can yo

AttributeError when trying to run syncdb after installing django-friends

2009-10-17 Thread Gezim Hoxha
e "/Library/Python/2.5/site-packages/django/db/models/base.py", line 390, in save_base created=(not record_exists), raw=raw) File "/Library/Python/2.5/site-packages/django/dispatch/dispatcher.py", line 148, in send response = receiver(signal=self, sender=sender, **

Re: AttributeError when trying to save and access models

2009-07-14 Thread Daniel Roseman
Sorry, to answer your second question: On Jul 14, 10:56 am, Daniel Roseman wrote: > On Jul 14, 8:09 am, Sam Walters wrote: > > And if i try to see an attribute in another table: > > >  var = dirdir.admin.abbrev #error: 'DirectoryAdmin' object has no attribute > > 'name' > Both abbrev and name

Re: AttributeError when trying to save and access models

2009-07-14 Thread Daniel Roseman
On Jul 14, 8:09 am, Sam Walters wrote: > Hi Django world > I keep getting problems accessing and storing data in foreignkey and > one-to-one relationships. > Error is basically of the form: >  "AttributeError > Exception Value: 'DirectoryAdmin' object has no attr

AttributeError when trying to save and access models

2009-07-14 Thread Sam Walters
Hi Django world I keep getting problems accessing and storing data in foreignkey and one-to-one relationships. Error is basically of the form: "AttributeError Exception Value: 'DirectoryAdmin' object has no attribute 'abbrev'" The models.py file is here: http://pa

Re: Newbie problem: AttributeError with ModelForm

2009-07-06 Thread Geoff
Thanks Daniel that was the answer. As someone from a database background I like the way Django can do so much from it's models with little coding. Regards Geoff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Newbie problem: AttributeError with ModelForm

2009-07-03 Thread Daniel Roseman
in admin but once I have it working I will add more features). > But I am getting: > > AttributeError at /forum/gktest/ > 'WSGIRequest' object has no attribute 'gk' > def gktest_save_page(request): >   if request.method == 'POST': >       # Crea

Newbie problem: AttributeError with ModelForm

2009-07-03 Thread Geoff
). But I am getting: AttributeError at /forum/gktest/ 'WSGIRequest' object has no attribute 'gk' Request Method: POST Request URL:http://127.0.0.1/forum/gktest/ Exception Type: AttributeError Exception Value: 'WSGIRequest' object has no attribute 'gk'

Re: AttributeError when implementing Django Tutorial

2009-06-16 Thread ebbnormal
> > when I tried to run the mysite server: > > >    AttributeError at / > >    'AdminSite' object has no attribute 'urls' > >    Request Method:     GET > >    Request URL:        http://127.0.0.1:8000/ > >    Exception Type:     AttributeEr

Re: AttributeError when implementing Django Tutorial

2009-06-15 Thread Alex Gaynor
On Mon, Jun 15, 2009 at 8:34 PM, ebbnormal wrote: > > Hello, > > I have been following along the Django tutorial, and as I was editing > the urlpatterns in my urls module, i got the following error > when I tried to run the mysite server: > >AttributeError at / >

AttributeError when implementing Django Tutorial

2009-06-15 Thread ebbnormal
Hello, I have been following along the Django tutorial, and as I was editing the urlpatterns in my urls module, i got the following error when I tried to run the mysite server: AttributeError at / 'AdminSite' object has no attribute 'urls' Request Method:

AttributeError: 'str' object has no attribute '_default_manager'

2009-06-01 Thread Luke Graybill
I am getting this error under either mod_python or mod_wsgi, when the project functions just fine under the development server. I've pasted the more detailed traceback here (edited out some of the sensitive corporate stuff). We are using Django 1.0.2 and Python 2.6 on Ubun

Re: Trying to access admin but getting AttributeError: 'NoneType' object has no attribute 'cursor'

2009-05-15 Thread Sean Brant
; > sid = transaction.savepoint() > > > > File "/Users/seanbrant/webapps/django/lib/python2.5/django/db/ > > transaction.py", line 190, in savepoint > > connection._savepoint(sid) > > > > File "/Users/seanbrant/webapps/django/lib/python2.5/dj

Re: Trying to access admin but getting AttributeError: 'NoneType' object has no attribute 'cursor'

2009-05-15 Thread Alex Gaynor
.py", line 190, in savepoint > > connection._savepoint(sid) > > > > File "/Users/seanbrant/webapps/django/lib/python2.5/django/db/ > > backends/__init__.py", line 62, in _savepoint > > self.connection.cursor().execute(self.ops.savepoint_create_sql > > (sid

Re: Trying to access admin but getting AttributeError: 'NoneType' object has no attribute 'cursor'

2009-05-15 Thread Sean Brant
apps/django/lib/python2.5/django/db/ > transaction.py", line 190, in savepoint >     connection._savepoint(sid) > >   File "/Users/seanbrant/webapps/django/lib/python2.5/django/db/ > backends/__init__.py", line 62, in _savepoint >     s

Re: Trying to access admin but getting AttributeError: 'NoneType' object has no attribute 'cursor'

2009-05-15 Thread Sean Brant
ile "/Users/seanbrant/webapps/django/lib/python2.5/django/db/ > transaction.py", line 190, in savepoint >     connection._savepoint(sid) > >   File "/Users/seanbrant/webapps/django/lib/python2.5/django/db/ > backends/__init__.py", line 62, in _savepoint >

Trying to access admin but getting AttributeError: 'NoneType' object has no attribute 'cursor'

2009-05-15 Thread Sean Brant
ile "/Users/seanbrant/webapps/django/lib/python2.5/django/db/ transaction.py", line 190, in savepoint connection._savepoint(sid) File "/Users/seanbrant/webapps/django/lib/python2.5/django/db/ backends/__init__.py", line 62, in _savepoint self.connection.cursor().execut

AttributeError: 'WSGIRequest' object has no attribute 'user'

2009-03-05 Thread sdhays
packages/django/contrib/auth/ decorators.py", line 66, in __call__ if self.test_func(request.user): AttributeError: 'WSGIRequest' object has no attribute 'user' Any ideas why this would occur? It doesn't happen all the time. We'

AttributeError: 'module' object has no attribute 'TabularInline'

2009-03-04 Thread D
I was getting this error AttributeError: 'module' object has no attribute 'TabularInline' with code i knew was good, After a bit of digging i found my own answer ... posted here for anyone who googles the error message; My dev server version of django was ; python -c &

Re: AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Danny Brown
t related I am sure. Removed > quoted references and the error went away. > > On Mar 2, 10:58 am, Karen Tracey wrote: >> On Mon, Mar 2, 2009 at 11:11 AM, Dan wrote: >> >> > AttributeError: 'str' object has no att

Re: AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Dan
Thanks, that seems to be what was wrong. At least now I get a database error. Still trying to figure it out. Not related I am sure. Removed quoted references and the error went away. On Mar 2, 10:58 am, Karen Tracey wrote: > On Mon, Mar 2, 2009 at 11:11 AM, Dan wrote: > > > At

Re: AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Briel
.5/site-packages/django/db/models/fields/ related.py", line 694, in formfield 'queryset': self.rel.to._default_manager.complex_filter( AttributeError: 'str' object has no attribute '_default_manager' It looks like self.rel.to in your error case returns a string, w

Re: AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Karen Tracey
On Mon, Mar 2, 2009 at 11:11 AM, Dan wrote: > > AttributeError: 'str' object has no attribute '_default_manager' from > related.py django 1.0.2 > ---get this error w

AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Dan
AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2 ---get this error when accessing any part of site - MOD_PYTHON ERROR ProcessId: 2637

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread mamco
ddleware", > > >> "django.middleware.doc.XViewMiddleware") > > >> try that, and things might work. > > > >>> Traceback: > > >>> File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" > > >>> in ge

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
, > >>   "django.middleware.common.CommonMiddleware", > >> "django.middleware.doc.XViewMiddleware") > >> try that, and things might work. > > >>> Traceback: > >>> File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py&quo

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
try that, and things might work. >> >> >> >> >> >>> Traceback: >>> File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" >>> in get_response >>> 86. response = callback(request, *callback_args,

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
ck: > > File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" > > in get_response > >  86.                 response = callback(request, *callback_args, > > **callback_kwargs) > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
/site-packages/django/contrib/admin/sites.py" > in root > 140. if not self.has_permission(request): > File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" > in has_permission > 99. return request.user.is_authenticated() and > request.use

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" in root 140. if not self.has_permission(request): File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" in has_permission 99. return request.user.is_auth

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
ites', >>>'django.contrib.admin', >>>'djdrive.books', >>> ) >>> +++ >> >> Can you also paste your middleware classes? >> >> I've had this happen and can't for the life of me remember where yet, >> but I thi

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
   'django.contrib.sites', > >    'django.contrib.admin', > >    'djdrive.books', > > ) > > +++ > > Can you also paste your middleware classes? > > I've had this happen and can't for the life of me remember where yet,   &g

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
;djdrive.books', > ) > +++ Can you also paste your middleware classes? I've had this happen and can't for the life of me remember where yet, but I think it had something to do with the Session and Authentication middleware... Eric > > > But when trying to

AttributeError when trying to access the Admin application

2009-01-04 Thread HB
;, 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'djdrive.books', ) +++ But when trying to access /admin , I got this exception: +++ AttributeError at /admin/ 'WSGI

Re: admin can't update: AttributeError 'parse_file_upload' for a model with no file field

2008-11-25 Thread Malcolm Tredinnick
On Tue, 2008-11-25 at 06:50 -0800, omat wrote: > Hi, > > I am trying to update a object via admin interface. Nothing fancy, and > it all goes well on my local environment, as it does many times > before. > > But in the production site, I get an AttributeError: >

admin can't update: AttributeError 'parse_file_upload' for a model with no file field

2008-11-25 Thread omat
Hi, I am trying to update a object via admin interface. Nothing fancy, and it all goes well on my local environment, as it does many times before. But in the production site, I get an AttributeError: 'module' object has no attribute 'parse_file_upload' The traceback (whi

AttributeError: 'TemporaryFileUploadHandler' object has no attribute 'file'

2008-11-13 Thread Zagor
ndler.file_complete(counters[i]) File "C:\Python25\lib\site-packages\django\core\files \uploadhandler.py", line 140, in file_complete self.file.seek(0) AttributeError: 'TemporaryFileUploadHandler' object has no attribute 'file' [13/Nov/2008 13:08:16] "POST /inje

AttributeError - Accessing form attribute

2008-08-21 Thread andmart
27;] And I got the following error: AttributeError: 'LoginForm' object has no attribute 'url_back' Printing dir(form), the attributes email, senha and url_back aren´t listed, but when I change LoginForm for not subclassing forms.Form, they are listed.

AttributeError: 'module' object has no attribute

2008-07-22 Thread Tom
, and am having trouble with the second page (http:// www.djangoproject.com/documentation/tutorial01/). The tutorial instructs me to add "admin.site.register(Poll)" to the bottom of models.py. I've done that, and now the sever gives me the following error: AttributeError: 'mod

Re: AttributeError getting cached SortedDict using database cache

2008-06-12 Thread Rajesh Dhawan
Hi John, > Preface: I'm not sure if this is a bug or not, but I could not find > any mention of it in the tickets or the mailing lists. > > Problem: > > Using database caching, I set a non-empty SortedDict instance in the > cache. When I try to retrieve it, I get

AttributeError getting cached SortedDict using database cache

2008-06-11 Thread John Huddleston
Preface: I'm not sure if this is a bug or not, but I could not find any mention of it in the tickets or the mailing lists. Problem: Using database caching, I set a non-empty SortedDict instance in the cache. When I try to retrieve it, I get an AttributeError with the message "&

Re: HEAD requests causing AttributeError

2008-05-01 Thread James Bennett
On Thu, May 1, 2008 at 4:39 AM, omat <[EMAIL PROTECTED]> wrote: > I don't see why someone / something is hitting with HEAD requests. Can > it be a security issue? No, it's not a security issue. It probably means you've enabled the middleware view-documentation middleware ("django.middleware.doc

HEAD requests causing AttributeError

2008-05-01 Thread omat
Hi, I recently start receiving server error emails. The error is thrown by django/middleware/doc.py and as far as I can tell, a HEAD request causing AttributeError: 'ModPythonRequest' object has no attribute 'user'. The application is running on a linux box with a 3 month

Re: AttributeError with Markdown

2008-04-24 Thread Malcolm Tredinnick
{ flatpage.content|markdown }} > > When I load that page, I get the following error: > > AttributeError at /test/ > 'module' object has no attribute 'markdown' > Exception Location: ... /python2.4/site-packages/django/contrib/markup/ > templatetags/markup.py (

AttributeError with Markdown

2008-04-24 Thread Scott McCracken
y template. In this case, I'm trying to apply markdown to the body text of my flat page template (simplified template below): {% load markup %} {{ flatpage.content|markdown }} When I load that page, I get the following error: AttributeError at /test/ 'module' object has no attri

Re: TestCase: template.name AttributeError

2008-04-03 Thread Russell Keith-Magee
On 4/3/08, Tony <[EMAIL PROTECTED]> wrote: > > I keep getting an AttributeError then I specify > "self.assertEqual(response.template.name, 'index.html')" > I keep getting... > AttributeError: 'list' object has no attribute 'name'

TestCase: template.name AttributeError

2008-04-03 Thread Tony
I keep getting an AttributeError then I specify "self.assertEqual(response.template.name, 'index.html')" I keep getting... AttributeError: 'list' object has no attribute 'name' Is there something I have missed in the setu

Re: Strange AttributeError when import'ing twitter

2008-02-12 Thread gmacgregor
On Feb 11, 11:47 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Don't suppose you called your project or app 'twitter' also? Or any > other file on pythonpath? Nope. Nothing but the twitter module goes by that name... Greg --~--~-~--~~~---~--~~ You received this m

Re: Strange AttributeError when import'ing twitter

2008-02-11 Thread Collin Grady
Don't suppose you called your project or app 'twitter' also? Or any other file on pythonpath? --~--~-~--~~~---~--~~ 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@goo

Strange AttributeError when import'ing twitter

2008-02-11 Thread gmacgregor
>From my project root I do this: http://dpaste.com/34820/ Yay! I can talk to twitter! All is good with the world! I have a module called tweet.py at project_root/lib/tweet.py. Weird thing is the AttributeError it produces: http://dpaste.com/34821/ What the? I have a custom tag that impo

Using formtools.preview get AttributeError: 'ModelFormPreviewClass' object has no attribute 'has_header'

2007-12-17 Thread sector119
jango/middleware/locale.py", line 21, in process_response patch_vary_headers(response, ('Accept-Language',)) File "/home/sector119/devel/django_src/django/utils/cache.py", line 129, in patch_vary_headers if response.has_header('Vary'): AttributeError: 'Mode

overwriting DEFAULT_DATETIME_INPUT_FORMATS in settings.py raises AttributeError in rev 6368

2007-09-19 Thread olivier
mod = __import__(self.SETTINGS_MODULE, {}, {}, ['']) File "D:\Code\settings.py", line 24, in django.newforms.fields.DEFAULT_DATE_INPUT_FORMATS = (DATE_FORMAT, TABLE_DATE_FORMAT) AttributeError: 'module' object has no attribute 'newforms' --~--~-~--~~---

AttributeError

2007-08-27 Thread jorgehugoma
I'm unshelving an object that i wrote in the views module and a get AtributeError, 'module' object has no attribute Myobject. And run one of its functions. Any idea what i am doing wrong?? Jorge Hugo Murillo

Re: DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-08 Thread Frank Singleton
Russell Keith-Magee wrote: >On 8/8/07, Collin Grady <[EMAIL PROTECTED]> wrote: > > >>This is not a backend issue at all - the problem is you're assigning a >>string to the DateField, which is not what it needs. >> >> Thank Russ for the help.. typo on my part ;-) yes this works !! mydate =

Re: DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-08 Thread Frank Singleton
Collin Grady wrote: >This is not a backend issue at all - the problem is you're assigning a >string to the DateField, which is not what it needs. > > Hi Keith and Collin, This is what happens when you try to code at 1:30am :-) Yes I have it working ok inputdata is a split line read from a fi

Re: DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-08 Thread Russell Keith-Magee
On 8/8/07, Collin Grady <[EMAIL PROTECTED]> wrote: > > This is not a backend issue at all - the problem is you're assigning a > string to the DateField, which is not what it needs. You are completely correct. I saw the error message, saw it was similar to a problem I was triaging recently, an

Re: DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-08 Thread Collin Grady
This is not a backend issue at all - the problem is you're assigning a string to the DateField, which is not what it needs. DateField/TimeField/DateTimeField need the python objects for them, not strings. They convert it to a string internally before save, so that the database gets the right val

Re: DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-07 Thread Russell Keith-Magee
On 8/6/07, justquick <[EMAIL PROTECTED]> wrote: > > AttributeError: 'str' object has no attribute '_meta' This problem is unrelated to Image or FileFields - the problem is your ForeignKey. String-form foreign key references only work with models defined in the

Re: DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-06 Thread justquick
get_all_related_objects(): File "/usr/lib/python2.5/site-packages/django/db/models/options.py", line 146, in get_all_related_objects if f.rel and self == f.rel.to._meta: AttributeError: 'str' object has no attribute '_meta' Seems to be only a problem with ImageField, F

Re: DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-05 Thread Russell Keith-Magee
On 8/4/07, Frank Singleton <[EMAIL PROTECTED]> wrote: > > AttributeError: 'str' object has no attribute 'strftime' Hi Frank, You're the second person in recent history to report this problem - however, I've been unable to replicate it. The last user

DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-03 Thread Frank Singleton
/lib/python2.5/site-packages/django/db/models/fields/__init__.py", line 494, in get_db_prep_save value = value.strftime('%Y-%m-%d') AttributeError: 'str' object has no attribute 'strftime' SO, thought I would have to do a time.strptime('2007-02-23'

AttributeError: 'module' object has no attribute

2007-07-31 Thread [EMAIL PROTECTED]
rying to load this module. Could the error be coming from somewhere else. I entionally placed errors in the settings.py and urls.py file to see if it would trip up on that and it doesn't even make it to that point. I am stumped and don't know where else it could be erroring out at.

Re: AttributeError: 'bool' object has no attribute 'get'

2007-06-28 Thread [EMAIL PROTECTED]
thanks James! i just applied the fix manually since it was so small, and it did the trick. i'm sure looking forward to multi-db catching up to trunk... :) On Jun 28, 3:41 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 6/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > i'm using 0.9

Re: AttributeError: 'bool' object has no attribute 'get'

2007-06-28 Thread James Bennett
On 6/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i'm using 0.96pre, the multi-db branch. The bug was in the oldforms system, and has been fixed in trunk and in the older releases we maintain support for; the multi-db branch went stagnant for a long time, and is only now being picked up

AttributeError: 'bool' object has no attribute 'get'

2007-06-28 Thread [EMAIL PROTECTED]
see http://dpaste.com/13161/ the error pops up when i try to edit a single User in the admin interface. when i remove those two lines i marked in the second model, it works ok. i'm using 0.96pre, the multi-db branch. i hope you can help! thanks in advance. --~--~-~--~~~-

Re: AttributeError: 'module' object has no attribute 'myapp'

2007-04-02 Thread Vinay Sajip
> The problem is caused by the way that Django loads and indexes > applications. I haven't tried putting code in __init__.py, but it > certainly doesn't surprise me that it has caused you difficulties. > > > If this is not the > > case, where > > is the best place to do the kind of initialisation

Re: AttributeError: 'module' object has no attribute 'myapp'

2007-03-31 Thread Russell Keith-Magee
On 3/30/07, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > Now, why should this be? The traceback is mystifying to me - can > anyone shed any > light? The problem is caused by the way that Django loads and indexes applications. I haven't tried putting code in __init__.py, but it certainly doesn't sur

AttributeError: 'module' object has no attribute 'myapp'

2007-03-29 Thread Vinay Sajip
jango/utils/translation/ trans_real.py", line 255, in gettext _default = translation(settings.LANGUAGE_CODE) File "/usr/lib/python2.4/site-packages/django/utils/translation/ trans_real.py", line 184, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File &

Re: AttributeError: 'WSGIRequest' object has no attribute 'user'

2007-01-15 Thread Sam
I had this error because i'm not using the auth module. If that's you case, comment it out in your settings.py file: TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.debug", "django.core.context_processors.i18n", # "django.core.context_processors.auth", ) On Jan 5, 5

Re: AttributeError: 'WSGIRequest' object has no attribute 'user'

2007-01-04 Thread Brian Beck
It would seem that something is happening between the authentication middleware setting request.__class__.user and the context processor reading it. Couple things to try if you're in a debugging mood: After line 11 in django/contrib/admin/middleware.py: request.__class__.user = LazyUser() +

Re: AttributeError: 'WSGIRequest' object has no attribute 'user'

2007-01-04 Thread Jeremy Dunck
On 10/18/06, Tyson Tate <[EMAIL PROTECTED]> wrote: ... I've got the following in settings.py: TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.auth", ) MIDDLEWARE_CLASSES = ( 'djan

AttributeError: 'NoneType' object has no attribute 'split'

2006-12-06 Thread Jeremy Dunck
tring. All, here's a traceback for the problem, for future searchers: File "/pegasus/code/current/django/utils/httpwrappers.py", line 46, in parse_file_upload name_dict = parse_header(submessage['Content-Disposition'])[1] File "/usr/lib/python2.4/cgi.py", line 331

AttributeError: 'WSGIRequest' object has no attribute 'user'

2006-10-18 Thread Tyson Tate
context_processors) File "/home/ohgoditb/django_src/django/template/context.py", line 97, in __init__ self.update(processor(request)) File "/home/ohgoditb/django_src/django/core/ context_processors.py", line 17, in auth return { AttributeError: 'WSGIReques

Re: AttributeError thrown by Validator

2006-10-14 Thread Paul Childs
Thanks a million Rajesh! It is so great to have such a helpful community. Cheers, /Paul --~--~-~--~~~---~--~~ 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@googl

Re: AttributeError thrown by Validator

2006-10-13 Thread RajeshD
> if request.FILES: > new_data = new_data.update(request.FILES) > Change that to: if request.FILES: new_data.update(request.FILES) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

AttributeError thrown by Validator

2006-10-13 Thread Paul Childs
y2.4.egg\django\forms\__init__.py" in get_validation_errors 345. if self.is_required and not new_data.get(self.field_name, False): AttributeError at /albums/upload_album/ 'NoneType' object has no attribute 'get' --~--~-~--~~~---~

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-06 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Hi.. thanks for your replies guys. > > You're probably right... I'm running mod_python from the Ubuntu dapper > repositories which currently has version 3.1.4. Unfortunately the Edgy > package (which is 3.2.8) depends on a newer version of libc6 which > means that I rea

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-06 Thread [EMAIL PROTECTED]
Hi.. thanks for your replies guys. You're probably right... I'm running mod_python from the Ubuntu dapper repositories which currently has version 3.1.4. Unfortunately the Edgy package (which is 3.2.8) depends on a newer version of libc6 which means that I really don't want to upgrade the package

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-05 Thread Graham Dumpleton
ettings > > PythonAuthenHandler django.contrib.auth.handlers.modpython > > > When I try logging in a user I get a 500 internal server error and the > following is in my apache error log: > [Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108] > PythonAuthenHandl

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-05 Thread RajeshD
Hi Stefan, What version of Apache and mod_python are you using? -Raj --~--~-~--~~~---~--~~ 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 unsu

Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-05 Thread [EMAIL PROTECTED]
6:38 2006] [error] [client 172.23.16.108] PythonAuthenHandler django.contrib.auth.handlers.modpython: File "/usr/lib/python2.4/site-packages/django/utils/translation/trans_real.py", line 167, in _fetch\napp = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1

django.forms.DatetimeField.html2python(data) throwing AttributeError

2006-08-23 Thread mukappa
ango-0.95-py2.3.egg/django/forms/__init__.py", line 779, in html2python date, time = data.split() AttributeError: 'NoneType' object has no attribute 'split' Should f.html2python(None) return None? Thanks. --~--~-~--~~~---~--~~ You receive

Re: AttributeError: 'str' object has no attribute '_meta'

2006-08-16 Thread Hawkeye
And this is one of the many reasons I love Django the community. Highly informative response, for which I thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: AttributeError: 'str' object has no attribute '_meta'

2006-08-16 Thread Russell Keith-Magee
On 8/17/06, Hawkeye <[EMAIL PROTECTED] > wrote: Is this a bug, or was my understanding of quoted ForeignKey valuesincorrect?Could be interpreted as a bug/missing feature, but probably more in the misunderstanding column.The string quoted form exists to allow you to forward reference a table; i.e.c

Re: AttributeError: 'str' object has no attribute '_meta'

2006-08-16 Thread Hawkeye
Hmm... Looks like I fixed this. I had: from app.user.models import UserProfile [...] owner = models.ForeignKey('UserProfile', related_name='foo') I changed it to: from app.user.models import UserProfile [...] owner = models.ForeignKey(UserProfile, related_name='foo') Is this a bug, or was my un

AttributeError: 'str' object has no attribute '_meta'

2006-08-16 Thread Hawkeye
jects(): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/options.py", line 124, in get_all_related_objects if f.rel and self == f.rel.to._meta: AttributeError: 'str' object has no attribute '_meta' --~--~

Re: AttributeError: 'module' object has no attribute 'createsuperuser'

2006-08-06 Thread [EMAIL PROTECTED]
You're absolutely right! How could I be so blind. Thanks for your patient and quick help - its much appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: AttributeError: 'module' object has no attribute 'createsuperuser'

2006-08-06 Thread Todd O'Bryan
last): > File "C:\Program > Files\Development\Python\Lib\site-packages\Django-0.90-py2.4.egg > \django\bin\django-admin.py", > line 6, in ? > ACTION_MAPPING = { > AttributeError: 'module' object has no attribute 'createsuperuser' > --

AttributeError: 'module' object has no attribute 'createsuperuser'

2006-08-06 Thread [EMAIL PROTECTED]
go\bin\django-admin.py", line 6, in ? ACTION_MAPPING = { AttributeError: 'module' object has no attribute 'createsuperuser'

Re: AttributeError: class Http404 has no attribute 'has_header'

2006-07-24 Thread Jacob Kaplan-Moss
On Jul 24, 2006, at 6:03 AM, James Bennett wrote: > That'd probably be a good idea; I remember being somewhat befuddled > when I wrote up my "how Django processes a request" at not being able > to find anything that checked whether the return value from the view > (or middleware, if that's what en

Re: AttributeError: class Http404 has no attribute 'has_header'

2006-07-24 Thread James Bennett
On 7/24/06, Simon Willison <[EMAIL PROTECTED]> wrote: > It would be nice if we could catch this and provide a friendly error > message, maybe by having an assertion somewhere that checks that the > view function has returned an object that is an instance (or > subclass) of HttpResponse. That'd pr

Re: AttributeError: class Http404 has no attribute 'has_header'

2006-07-24 Thread Simon Willison
On 24 Jul 2006, at 01:17, Jacob Kaplan-Moss wrote: >> Has anybody else seen this error? It's obvious that Http404 doesn't >> have the method, it's just a subclass of Exception. If this is just a >> Django bug, I'll happily post a patch, just want to feel out any >> possible stupidness on my part

Re: AttributeError: class Http404 has no attribute 'has_header'

2006-07-24 Thread Afternoon
Haha! You're quite right. I blame my understudy :-). Thanks for your help Jacob. --~--~-~--~~~---~--~~ 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.

Re: AttributeError: class Http404 has no attribute 'has_header'

2006-07-23 Thread Jacob Kaplan-Moss
On Jul 23, 2006, at 5:52 PM, Afternoon wrote: > Has anybody else seen this error? It's obvious that Http404 doesn't > have the method, it's just a subclass of Exception. If this is just a > Django bug, I'll happily post a patch, just want to feel out any > possible stupidness on my part first :-)

<    1   2   3   4   5   >