Re: AttributeError at /admin/login/

2018-05-01 Thread Gerald Brown
Mariadb database? On Tuesday, May 1, 2018 at 7:45:47 AM UTC+8, Gerald Brown wrote: I had replied to Daniel Roseman instead of to the users group as I am new to this group. Thanks to Daniel for his response Forwarded Message ---- Subject:Re: AttributeError a

Re: Re: AttributeError at /admin/login/

2018-05-01 Thread Gerald Brown
; Thanks to Daniel for his response > > > Forwarded Message > Subject: Re: AttributeError at /admin/login/ > Date: Mon, 30 Apr 2018 21:46:35 +0800 > From: Gerald Brown > To: Daniel Roseman > > No. You need to show the full traceback. >

Fwd: Re: AttributeError at /admin/login/

2018-04-30 Thread Gerald Brown
I had replied to Daniel Roseman instead of to the users group as I am new to this group. Thanks to Daniel for his response Forwarded Message Subject:Re: AttributeError at /admin/login/ Date: Mon, 30 Apr 2018 21:46:35 +0800 From: Gerald Brown To: Daniel

Re: AttributeError at /admin/login/

2018-04-30 Thread Daniel Roseman
n Monday, 30 April 2018 13:30:54 UTC+1, Gerald Brown wrote: > > I am getting the following error when I TRY to log in to my site > "AttributeError at /admin/login/ > > 'datetime.datetime' object has no attribute 'split'" > > This looks like a

AttributeError at /admin/login/

2018-04-30 Thread Gerald Brown
I am getting the following error when I TRY to log in to my site "AttributeError at /admin/login/ 'datetime.datetime' object has no attribute 'split'" This looks like a Django bug as it is in the Admin module and is NOT related to any of my code. Does an

Re: AttributeError: 'module' object has no attribute 'lru_cache' with python 3.6.4 and Django 2.0.2

2018-02-14 Thread PASCUAL Eric
finding, not binary libs. In Linux, they are governed by different search paths. Eric From: django-users@googlegroups.com on behalf of Matthew Pava Sent: Wednesday, February 14, 2018 4:05:57 PM To: 'django-users@googlegroups.com' Subject: RE: Attribut

RE: AttributeError: 'module' object has no attribute 'lru_cache' with python 3.6.4 and Django 2.0.2

2018-02-14 Thread Matthew Pava
PASCUAL Eric Sent: Wednesday, February 14, 2018 8:52 AM To: Django users Subject: Re: AttributeError: 'module' object has no attribute 'lru_cache' with python 3.6.4 and Django 2.0.2 Hi, Normally you shouldn't have to add site-packages in the PYTHONPATH since it is suppo

Re: AttributeError: 'module' object has no attribute 'lru_cache' with python 3.6.4 and Django 2.0.2

2018-02-14 Thread PASCUAL Eric
February 14, 2018 3:02:28 PM To: Django users Subject: AttributeError: 'module' object has no attribute 'lru_cache' with python 3.6.4 and Django 2.0.2 Hi, I'm trying to set up the following configuration in Docker python: 3.6.4 Django: 2.0.2 Apache/2.4.10 (Debian) Fi

AttributeError: 'module' object has no attribute 'lru_cache' with python 3.6.4 and Django 2.0.2

2018-02-14 Thread Greng Fortezza
ages" the previous problem has gone away but now there is another one AttributeError: 'module' object has no attribute 'lru_cache' Apache configs contains the following line WSGIScriptAlias / /www/settings/wsgi.py where /www/settings/wsgi.py is actual path to wsgi.py

Django 2.0 throws AttributeError: ''Image' object has no attribute 'replace'"

2018-01-04 Thread Ari Kanevsky
https://stackoverflow.com/questions/48106161/django-2-0-throws-attributeerror-image-object-has-no-attribute-replace -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: RenameField with django 2.0: AttributeError: 'ManyToManyRel' object has no attribute 'field_name'

2017-12-04 Thread edigiacomo
4 décembre 2017 08:19:50 UTC-5, edigi...@arpae.it a écrit : >> >> With Django==2.0, a RenameField on a model which has a reverse many to >> many relationship raises an exception: >> >> AttributeError: 'ManyToManyRel' object has no attribute &#x

Re: RenameField with django 2.0: AttributeError: 'ManyToManyRel' object has no attribute 'field_name'

2017-12-04 Thread Simon Charette
https://code.djangoproject.com/newticket Le lundi 4 décembre 2017 08:19:50 UTC-5, edigi...@arpae.it a écrit : > > With Django==2.0, a RenameField on a model which has a reverse many to > many relationship raises an exception: > > AttributeError: 'ManyToManyRel' objec

RenameField with django 2.0: AttributeError: 'ManyToManyRel' object has no attribute 'field_name'

2017-12-04 Thread edigiacomo
With Django==2.0, a RenameField on a model which has a reverse many to many relationship raises an exception: AttributeError: 'ManyToManyRel' object has no attribute 'field_name' The same migration with Django==1.11 terminates successfully. Migrations are automa

Re: AttributeError: 'TemplateResponse' object has no attribute '_reason_phrase'

2017-11-24 Thread Web Architect
gt;> >> File >> "/virenv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line >> 161, in __call__ >> >> status = '%d %s' % (response.status_code, response.reason_phrase) >> >> File "/virenv/lib/python2.7/site-pac

Re: AttributeError: 'TemplateResponse' object has no attribute '_reason_phrase'

2017-11-22 Thread Tim Graham
renv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line > 161, in __call__ > > status = '%d %s' % (response.status_code, response.reason_phrase) > > File "/virenv/lib/python2.7/site-packages/django/http/response.py", > line 69, in reason_phrase >

Re: AttributeError: 'TemplateResponse' object has no attribute '_reason_phrase'

2017-11-22 Thread Jason
what is the code for the render call? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send emai

AttributeError: 'TemplateResponse' object has no attribute '_reason_phrase'

2017-11-22 Thread Web Architect
/handlers/wsgi.py", line 161, in __call__ status = '%d %s' % (response.status_code, response.reason_phrase) File "/virenv/lib/python2.7/site-packages/django/http/response.py", line 69, in reason_phrase if self._reason_phrase is not None: Attribut

Re: AttributeError When Overwritting AUTH_USER_MODEL in Test Cases

2017-10-19 Thread sarfaraz ahmed
in settings is not set to "auth.User", in > either a TestCase or individual test, and then try to access the objects > attribute on the user model, I get an AttributeError. > > The exact error I get is: > AttributeError: Manager isn't available; 'auth.User&#x

Re: AttributeError: 'Settings' object has no attribute 'SATIC_ROOT'

2017-09-21 Thread Lachlan Musicman
The problem's right there in the error. there is no satic_root. In urls.py *urlpatterns += static(settings.STATIC_URL, document_root=settings.SATIC_ROOT)* Should read *urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)* Cheers L. -- You received this messa

AttributeError: 'Settings' object has no attribute 'SATIC_ROOT'

2017-09-21 Thread Ian Likono
+= static(settings.STATIC_URL, document_root=settings.SATIC_ROOT) File "/root/Desktop/tryTen/local/lib/python2.7/site-packages/django/conf/__init__.py", line 57, in __getattr__ val = getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute 'S

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

2017-08-07 Thread Tim Graham
mport_module(models_module_name) >> >> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in >>> import_module >> >> __import__(name) >> >> File >>> "/home/ahmedn1/Documents/Paymob/wallet_executive_panel-master-c109bd6f

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

2017-08-07 Thread ahmed dawod
wallet_executive_panel-master-c109bd6fe9cd1bf793c11a5c2e97d18a1887c3ba/accounts/models.py", >> >> line 8, in > > import timedelta > > File "/usr/local/lib/python2.7/dist-packages/timedelta/__init__.py", >> line 11, in > > from .fields

GeoDjango distance lookup on Subquery: AttributeError: 'tuple' object has no attribute 'extend'

2017-07-30 Thread Oliver Eidel
Good evening, I'm having a problem doing a distance lookup on a Subquery. I always get an AttributeError (see above). Put simply, I have a table of Locations where a User may have many Locations (one-to-many). Now, I want to look up which users were close to a Point at a specific time

Re: Updating 1.10 to 1.11.1 and AttributeError

2017-05-26 Thread birkin
Simon, thanks. I was getting the same error. I was caching the query, and thought I'd turned it off, but was still getting the error. Running my webapp via runserver (instead of my usual approach of using passenger) showed the problem: Starting development server at http://127.0.0.1:8000/ Quit

Re: Updating 1.10 to 1.11.1 and AttributeError

2017-05-24 Thread Jorge Cadena
>> class UsuarioNuevoForm(forms.ModelForm): >> File "/home/aztrock/workspace/ >> ariatel.com.co/local/lib/python3.5/site-packages/django/forms/models.py", >> opts.field_classes) >> File "/home/aztrock/workspace/ >> ariatel.com.co/local/lib/python3.5/site-packages/

Re: Updating 1.10 to 1.11.1 and AttributeError

2017-05-23 Thread Simon Charette
>>> File "/home/aztrock/workspace/ariatel.com.co/kibox/billing/urls.py", >>> line 9, in >>> from app.usuarios import views as UserViews >>> File "/home/aztrock/workspace/ >>> ariatel.com.co/kibox/app/usuarios/views.p

Re: Updating 1.10 to 1.11.1 and AttributeError

2017-05-23 Thread Jorge Cadena
uevoForm(forms.ModelForm): >> File "/home/aztrock/workspace/ >> ariatel.com.co/local/lib/python3.5/site-packages/django/forms/models.py", >> opts.field_classes) >> File "/home/aztrock/workspace/ >> ariatel.com.co/local/lib/python3.5/site-packages/django

Re: Updating 1.10 to 1.11.1 and AttributeError

2017-05-22 Thread Tim Graham
rock/workspace/ >> ariatel.com.co/local/lib/python3.5/site-packages/django/forms/models.py", >> formfield = f.formfield(**kwargs) >> File "/home/aztrock/workspace/ >> ariatel.com.co/local/lib/python3.5/site-packages/django/db/models/fields/ >

Updating 1.10 to 1.11.1 and AttributeError

2017-05-22 Thread Jorge Cadena
ython3.5/site-packages/django/db/models/fields/ > 'queryset': self.remote_field.model._default_manager.using(db), > File > "/home/aztrock/workspace/ariatel.com.co/local/lib/python3.5/site-packages/django/db/models/manager > return getattr(self.get_queryset(), name)(*

Re: AttributeError: module 'polls.views' has no attribute 'index'

2017-04-19 Thread Billy Lin
e 50, in include > urlconf_module = import_module(urlconf_module) > File > "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py", > > line 126, in import_modu > le > return _bootstrap._gcd_import(name[level:], package, lev

Re: AttributeError: module 'polls.views' has no attribute 'index'

2017-04-19 Thread m712 - Developer
import(name[level:], package, level)  File "", line 978, in _gcd_import  File "", line 961, in _find_and_load  File "", line 950, in _find_and_load_unlocked  File "", line 655, in _load_unlocked  File "", line 678, in exec_module  File "",

AttributeError: module 'polls.views' has no attribute 'index'

2017-04-19 Thread Billy Lin
ind_and_load File "", line 950, in _find_and_load_unlocked File "", line 655, in _load_unlocked File "", line 678, in exec_module File "", line 205, in _call_with_frames_removed File "C:\Users\cephalin\Repos\django\mysite\polls\ur

Re: Meu site esta com problema com decode messagem erro AttributeError at str object has no atribute 'decode' sera alguem pode me ajudar?

2017-04-18 Thread Camilo Torres
18, 2017 at 8:11:38 AM UTC-4, Marcio Shochi wrote: > > >1. erro AttributeError at str object has no atribute 'decode' sera >alguem pode me ajudar? > > > > > <https://lh3.googleusercontent.com/-z61KEoZsvUU/WPXy_VPpXdI/EHc/Dw82xMM3lFM0WY_HBZ

Re: auth User in data migration: AttributeError: type object 'User' has no attribute 'normalize_username'

2016-12-18 Thread Tim Graham
min', email='') >> File >> "/Projects/django/venv/lib/python3.4/site-packages/django/contrib/auth/models.py", >> >> line 168, in create_superuser >> return self._create_user(username, email, password, **extra_fields) >> File

Re: auth User in data migration: AttributeError: type object 'User' has no attribute 'normalize_username'

2016-12-18 Thread Павел Фролов
) > File > "/Projects/django/venv/lib/python3.4/site-packages/django/contrib/auth/models.py", > > line 168, in create_superuser > return self._create_user(username, email, password, **extra_fields) > File > "/Projects/django/venv/lib/python3.4/site-package

auth User in data migration: AttributeError: type object 'User' has no attribute 'normalize_username'

2016-12-18 Thread Павел Фролов
ate_superuser return self._create_user(username, email, password, **extra_fields) File "/Projects/django/venv/lib/python3.4/site-packages/django/contrib/auth/models.py", line 148, in _create_user username = self.model.normalize_username(username) AttributeError: type object 'U

Re: Django migrate throws AttributeError and I can't understand why

2016-10-09 Thread Bogdan P.
t; ('created_at', models.DateTimeField(auto_now_add=True)), > ], > ), > ] > > the description field is skipped and I can't understand why. > Also if I try to add it manually like this: ('description', > models.TextField)

Django migrate throws AttributeError and I can't understand why

2016-10-09 Thread Bogdan P.
('created_at', models.DateTimeField(auto_now_add=True)), ], ), ] the description field is skipped and I can't understand why. Also if I try to add it manually like this: ('description', models.TextField), when I run manage.py migrate I get this error: AttributeError: type object &#

Re: Getting AttributeError: type object 'RunPython' has no attribute 'noop' error

2016-09-26 Thread Tim Graham
RunPython.noop is new in Django 1.8. You should try to upgrade as 1.7.x is unsupported and has unpatched security issues. On Monday, September 26, 2016 at 7:03:36 AM UTC-4, Arundas R wrote: > > My django version is 1.7.11. While migrating I get an error as described. > What might be the possibl

Getting AttributeError: type object 'RunPython' has no attribute 'noop' error

2016-09-26 Thread Arundas R
My django version is 1.7.11. While migrating I get an error as described. What might be the possible reason? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dj

What happened to my admin? AttributeError: 'WSGIRequest' object has no attribute 'user'

2016-08-14 Thread Andrew Emory
Django 1.9. Everything seems to be set up properly. I was having some issues with my templates but got them working. I didn't touch any admin or even any login stuff. Though my template does have a {% csrf_token %}. I can't imagine how this happened. >From Googling it seems like it was a

Re: AttributeError overriding save_existing_objects in Formset class

2016-08-10 Thread Constantine Covtushenko
(request, form, formset, change=change) >>> File "/opt/virtualenv/Environments/mynetgest2/lib/python3.4/site- >>> packages/django/contrib/admin/options.py", line 1003, in save_formset >>> formset.save() >>> File "/opt/virtualenv/Environments/my

Re: AttributeError overriding save_existing_objects in Formset class

2016-08-10 Thread Vincenzo
on3.4/site-packages/django/contrib/admin/options.py" >> , line 1003, in save_formset >> formset.save() >> File >> "/opt/virtualenv/Environments/mynetgest2/lib/python3.4/site-packages/django/forms/models.py" >> , line 645, in save >> retur

Re: AttributeError overriding save_existing_objects in Formset class

2016-08-09 Thread Constantine Covtushenko
ne 645, in save > return self.save_existing_objects(commit) + self.save_new_objects( > commit) > File "/home/vincenzo/workspace/mynetgest2/warehouse/forms.py", line 118, > in save_existing_objects > instances_not_saved = super(IncomingBillOfLadingRowFormset, self). > sa

AttributeError overriding save_existing_objects in Formset class

2016-08-09 Thread Vincenzo
le "/home/vincenzo/workspace/mynetgest2/warehouse/forms.py", line 118, in save_existing_objects instances_not_saved = super(IncomingBillOfLadingRowFormset, self). save_existing_objects(commit=False) File "/opt/virtualenv/Environments/mynetgest2/lib/python3.4/site-packages/django/forms/mod

Re: Updating kwargs['data'] in get_form_kwargs (sometimes) raises AttributeError

2016-08-06 Thread Todor Velichkov
wargs() > print("KWARGS", kwargs) > kwargs['data'].update({ > "something": "somevalue" > }) > return kwargs > > > But one view raises* AttributeError: This QueryDict instance is immutable* &

Updating kwargs['data'] in get_form_kwargs (sometimes) raises AttributeError

2016-08-06 Thread Petar Aleksic
ot;something": "somevalue" }) return kwargs But one view raises* AttributeError: This QueryDict instance is immutable* and another doesn't. I might add that views are called with ajax but, as mentioned, no difference in way calls are triggered. Anybody has an idea wha

Re: AttributeError: 'Post' object has no attribute 'get_absolute_url'

2016-07-18 Thread ludovic coues
The code of your model would be more interesting. According to the error, Post have no method get_absolute_url. That method isn't provided by models.Model, you have to write it. A way to do it is like that: from django.db import models from django.urls import reverse class Item(models

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

2016-03-13 Thread James Schneider
> File "/home/kashif/Desktop/mysite/mysite/polls/urls.py", line 5, in > url(r'^$', views.index, name ='index'), > AttributeError: 'module' object has no attribute 'index' > > What does your urls.py look like? Did you do som

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

2016-03-13 Thread kashif Nawaz
mysite/lib/python3.4/importlib/__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 2254, in _gcd_import File "", line 2237, in _find_and_load File "", line 2226, in _find_and_load_unlocked File "&qu

Re: AttributeError at /sitemap.xml

2016-02-10 Thread Michal Petrucha
On Wed, Feb 10, 2016 at 06:01:28AM -0800, Kelvin Jayanoris wrote: > It seems that django/contrib/sitemaps/__init__.py line 146 causes an > attribute error sometimes as such: > > AttributeError: 'list' object has no attribute 'filter' > > I think this is be

AttributeError at /sitemap.xml

2016-02-10 Thread Kelvin Jayanoris
It seems that django/contrib/sitemaps/__init__.py line 146 causes an attribute error sometimes as such: AttributeError: 'list' object has no attribute 'filter' I think this is because it always expects a queryset and fails when a list is provided. Is this a known issue, or

AttributeError When Overwritting AUTH_USER_MODEL in Test Cases

2016-02-08 Thread Aubrey Stark-Toller
Hello, When I override the AUTH_USER_MODEL setting to "auth.User", when AUTH_USER_MODEL in settings is not set to "auth.User", in either a TestCase or individual test, and then try to access the objects attribute on the user model, I get an AttributeError. The

Re: AttributeError: type object 'Product' has no attribute '_meta'

2015-12-02 Thread Lucas Vieira May
try this: from django.db import models # Create your models here. class Product(models.Model): item_name = models.CharField(max_length=100) item_price = models.IntegerField() item_image = models.ImageField() def __unicode__(self): return self.item_name class Meta: # Do no

AttributeError: type object 'Product' has no attribute '_meta'

2015-12-01 Thread yogesh gupta
this error : AttributeError: type object 'Product' has no attribute '_meta' on giving any commands to the terminal. pls help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'

2015-11-23 Thread knbk
Python 3 displays the original exception alongside the new exception when a new exception occurs in an except block. The AttributeError is expected, so this doesn't tell you anything about what goes wrong. The second error occurs when importing `self.urlconf_name`. The traceback should

Re: AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'

2015-11-23 Thread KwangYoun Jung
Did you solve the issue? On Tuesday, July 2, 2013 at 8:14:00 PM UTC+9, Pratik Mandrekar wrote: > > Hello, > > > I keep getting the error *AttributeError: 'RegexURLResolver' object has > no attribute '_urlconf_module' *and the only trace available is as

Re: bug: mymodel.objects.first().get('id',None) AttributeError: 'NoneType' object has no attribute 'get'

2015-10-27 Thread Erik Cederstrand
> Den 27. okt. 2015 kl. 04.01 skrev gugeshi...@gmail.com: > > hi ,how are you > > i run > > myid=mymodel.objects.first().get('id',None) > > If there is a record, it's ok > > If there is no record, error info: > > AttributeError: &#x

bug: mymodel.objects.first().get('id',None) AttributeError: 'NoneType' object has no attribute 'get'

2015-10-27 Thread gugeshi250
hi ,how are you i run *myid=mymodel.objects.first().get('id',None) * If there is a record, it's ok If there is no record, error info: *AttributeError: 'NoneType' object has no attribute 'get'* If there is a record,Can you let it return an empty dictio

Django 1.8 migrations showing "AttributeError"

2015-07-27 Thread vijay kumar
Hi, Problem: Empty migration doesn't show user friendly message. When i run "python manage.py migrate" with no new migrations to be applied it show me error message "AttributeError: '_Meta' object has no attribute 'model_name'" instead of showing

AttributeError with deep Prefetch

2015-05-20 Thread Gagaro
Hello, I have an issue when trying to using prefetch_related in a queryset inside a queryset already doing a prefetch_related. I have the following code: items = OrderItem.objects.prefetch_related(Prefetch('results')) orders = Order.objects.prefetch_related(Prefetch('items', queryset=items))

Re: AttributeError raised when calling form's superclass clean() method, however the form doesn't get filled with errors

2014-12-17 Thread Collin Anderson
Hi Hector, I think your clean() method needs to return cleaned_data. Collin On Monday, December 15, 2014 2:39:35 PM UTC-5, Héctor Urbina wrote: > > This is my view: > > def perfilInversionCliente(request, cliente_pk): > objetos = {} > cliente = get_object_or_404(Cliente, pk=cliente_pk) > t

Re: AttributeError raised when calling form's superclass clean() method, however the form doesn't get filled with errors

2014-12-15 Thread Héctor Urbina
This is my view: def perfilInversionCliente(request, cliente_pk): objetos = {} cliente = get_object_or_404(Cliente, pk=cliente_pk) targetAllocationsForm = TargetAllocationsForm(cliente=cliente) if request.method == "POST": targetAllocationsForm = TargetAllocationsForm(request.POST)

AttributeError raised when calling form's superclass clean() method, however the form doesn't get filled with errors

2014-12-15 Thread Daniel Roseman
You should show your view. You should not call clean directly: it is called automatically by is_valid. Also note that the keys of self.fields are strings, so neither your if nor your elif will ever execute. -- DR. -- You received this message because you are subscribed to the Google Groups "

AttributeError raised when calling form's superclass clean() method, however the form doesn't get filled with errors

2014-12-15 Thread Héctor Urbina
tionError("Total de allocations en categorías supera el 100%") When receiving the form in request.POST, I call the form.is_valid() method and it returns False, but no errors on the form. If I manually call form.clean() method (using pdb.set_trace() just after form.is_valid()) I get

Re: AttributeError | 'Template' object has no attribute 'render'

2014-11-08 Thread Nakaya Mitsuo
It resolved. I used "Template" in Database. It was the cause. It was a simple mistake. Thank you. 2014年11月5日水曜日 11時25分27秒 UTC+9 Nakaya Mitsuo: > > I got AttributeError. > Exception Value: 'Template' object has no attribute 'render' > > How can

AttributeError | 'Template' object has no attribute 'render'

2014-11-04 Thread Nakaya Mitsuo
I got AttributeError. Exception Value: 'Template' object has no attribute 'render' How can I fix it? Please help me. --- CODE -- from django.shortcuts import render from django.template import Context, Template class US_AccountManager(models.Manager): def

Re: Catching AttributeError exceptions in widget media

2014-09-05 Thread Michael Jones
t;> >> try: >> getattr(obj, name) >> return True >> except: # yikes! naked except! >> return False >> >> https://docs.python.org/2/library/functions.html#hasattr >> So, excepting AttributeError will at least narrow down the error >&g

Re: Catching AttributeError exceptions in widget media

2014-09-04 Thread Zachary McCord
me as: > > try: > getattr(obj, name) > return True > except: # yikes! naked except! > return False > > https://docs.python.org/2/library/functions.html#hasattr > So, excepting AttributeError will at least narrow down the error slightly, > rather th

Re: Catching AttributeError exceptions in widget media

2014-09-04 Thread Collin Anderson
believe it or not, hasattr is the same as: try: getattr(obj, name) return True except: # yikes! naked except! return False https://docs.python.org/2/library/functions.html#hasattr So, excepting AttributeError will at least narrow down the error slightly, rather than hasattr

Re: Catching AttributeError exceptions in widget media

2014-09-04 Thread Michael Jones
, 2014 10:45:22 PM UTC+1, Collin Anderson wrote: > > unfortunately hasattr eats even more exceptions than AttributeError. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Catching AttributeError exceptions in widget media

2014-09-03 Thread Collin Anderson
unfortunately hasattr eats even more exceptions than AttributeError. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@google

Catching AttributeError exceptions in widget media

2014-09-03 Thread Michael Jones
Hi, I love Django, it has been enormously useful to a new comer to web dev like me. One minor issue I've just had is that I've struggled to figure out an issue with my code because an AttributeError I was generating in my media property on my custom widget was being silently sw

Re: Why this error when run manage.py?-->AttributeError: 'module' object has no attribute 'execute_manager'

2014-08-11 Thread Chris Seberino
anage.py without getting this error... > > % ./manage.py > Traceback (most recent call last): > File "./manage.py", line 6, in > django.core.management.execute_manager(settings) > AttributeError: 'module' object has no attribute 'execute_manager' > >

Why this error when run manage.py?-->AttributeError: 'module' object has no attribute 'execute_manager'

2014-08-11 Thread Chris Seberino
My fresh Django install on Ubuntu 14.04 works fine. WSGI starts the app up just fine. I can run manage.py without getting this error... % ./manage.py Traceback (most recent call last): File "./manage.py", line 6, in django.core.management.execute_manager(settings) Attr

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
Hi Erik I solved it.. You vere right I should check again the files in migration folder It was my IDE (Pycharm) which for some reason sometimes fail on uploading files. So there was missing a few files, in a migrations folder Sorry I didnt know that - Pycharm is still new for me. I'm use to Filezi

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
hmm could it be: I run my local development env with a sqlite3 as database when I launch to deployment, I use mysql as db But doesnt South produce the same result when i run schemamigration, nomatter what db I'm using ? Hope You undderstand what I mean *Med venlig hilsen* Michael Hjulskov Mobi

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
> > Den 25/06/2014 kl. 21.30 skrev Michael Lind Hjulskov >: > > > Hi Erik > > > > Thank You > > > > I tried ./manage.py migrate myappname --traceback > > Still the same error message and no more info available than before. > > Check your migrations folder and make sure you only have South migratio

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Erik Cederstrand
Den 25/06/2014 kl. 21.30 skrev Michael Lind Hjulskov : > Hi Erik > > Thank You > > I tried ./manage.py migrate myappname --traceback > Still the same error message and no more info available than before. Check your migrations folder and make sure you only have South migration files in there. A

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
ael Lind Hjulskov >: > > > Hi there :) > > > > I'm stuck with this problem > > when I run python manage.py migrate myappname i get the following error: > > AttributeError: 'module' object has no attribute 'Migration' > > > > I reme

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Erik Cederstrand
Den 25/06/2014 kl. 16.19 skrev Michael Lind Hjulskov : > Hi there :) > > I'm stuck with this problem > when I run python manage.py migrate myappname i get the following error: > AttributeError: 'module' object has no attribute 'Migration' > &g

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
gt; > I'm stuck with this problem > when I run python manage.py migrate myappname i get the following error: > AttributeError: 'module' object has no attribute 'Migration' > > I remember I had this problem before, and I remember that I solved it by > del

on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
Hi there :) I'm stuck with this problem when I run python manage.py migrate myappname i get the following error: AttributeError: 'module' object has no attribute 'Migration' I remember I had this problem before, and I remember that I solved it by deleting all pyc file

Re: AttributeError when trying to reference ForeignKey attributes

2014-05-25 Thread Robbie Edwards
>> class Universe( models.Model ): >> width = models.IntegerField( default=100 ) >> ... >> >> >> class Planet( models.Model ): >> universe = models.ForeignKey( Universe ) >> ... >> x_pos = models.IntegerField( default=gen_planet

Re: AttributeError when trying to reference ForeignKey attributes

2014-05-24 Thread Kelvin Wong
) > ... > x_pos = models.IntegerField( default=gen_planet_pos( universe.width ) ) > > > When I try to use this, I get "AttributeError: 'ForeignKey' object has no > attribute 'width'". That message appears when I try to even enter the >

AttributeError when trying to reference ForeignKey attributes

2014-05-24 Thread Robbie Edwards
= models.IntegerField( default=gen_planet_pos( universe.width ) ) When I try to use this, I get "AttributeError: 'ForeignKey' object has no attribute 'width'". That message appears when I try to even enter the shell. I'm not sure what to do to prevent this error.

AttributeError:'TaggableManager' object has no attribute 'primary_key'

2014-01-26 Thread vinoth kumar renganathan
d_models)) File "/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py", line 132, in field_dependencies value = get_attribute(field, attrname) File "/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/utils/__init__.py&

Re: AttributeError: 'TaggableManager' object has no attribute 'primary_key'

2014-01-21 Thread Jonathan Pentecost
b/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py", > > line 132, in field_dependencies > value = get_attribute(field, attrname) > File > "/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/utils/__init__.py", > >

AttributeError: 'TaggableManager' object has no attribute 'primary_key'

2014-01-21 Thread vinoth kumar renganathan
pendencies depends.update(field_dependencies(field, checked_models)) File "/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py", line 132, in field_dependencies value = get_attribute(field, attrname) File "/usr/local/lib/python2.7/di

Re: AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'

2013-11-20 Thread burak . kuyucakli
t 12:14 PM, Pratik Mandrekar >> wrote: >> > >> > Hello, >> > >> > >> > I keep getting the error AttributeError: 'RegexURLResolver' object has >> no >> > attribute '_urlconf_module' and the only trace availabl

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

2013-10-15 Thread Darion Yaphet
nfigure() >> File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line >> 98, in configure >> self._configure_logging() >> File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line >> 77, in _configure_logging >>

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

2013-10-15 Thread Leonardo Giordani
/site-packages/django/conf/__init__.py", line > 77, in _configure_logging > logging_config_func(DEFAULT_LOGGING) > File "/usr/lib/python2.7/site-packages/django/utils/dictconfig.py", line > 555, in dictConfig > dictConfigClass(config).configure() > File "

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

2013-10-15 Thread Darion Yaphet
.configure() File "/usr/lib/python2.7/site-packages/django/utils/dictconfig.py", line 323, in configure del logging._handlerList[:] AttributeError: 'module' object has no attribute '_handlerList' and is something missing or any package is missing 2013/10/15

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

2013-10-14 Thread Leonardo Giordani
rdani.github.com> >>>> My profile on About.me <http://about.me/leonardo.giordani> - My GitHub >>>> page <https://github.com/lgiordani> - My Coderwall >>>> profile<https://coderwall.com/lgiordani> >>>> >>>> >>>>

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

2013-10-14 Thread Darion Yaphet
of The Digital Cat <http://lgiordani.github.com> >>> My profile on About.me <http://about.me/leonardo.giordani> - My GitHub >>> page <https://github.com/lgiordani> - My Coderwall >>> profile<https://coderwall.com/lgiordani> >>> >>>

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

2013-10-14 Thread Leonardo Giordani
all.com/lgiordani> >> >> >> 2013/10/14 Darion Yaphet >> >>> Hi all : >>> >>> when I use django-admin.py to init django project >>> django-admin.py startproject hello >>> >>> Got a exception .. >>> AttributeErro

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

2013-10-14 Thread Darion Yaphet
> > > 2013/10/14 Darion Yaphet > >> Hi all : >> >> when I use django-admin.py to init django project >> django-admin.py startproject hello >> >> Got a exception .. >> AttributeError: 'module' object has no attribute '_handlerList&

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

2013-10-14 Thread Leonardo Giordani
artproject hello > > Got a exception .. > AttributeError: 'module' object has no attribute '_handlerList' > > what is it > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubsc

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

2013-10-13 Thread Darion Yaphet
Hi all : when I use django-admin.py to init django project django-admin.py startproject hello Got a exception .. AttributeError: 'module' object has no attribute '_handlerList' what is it -- You received this message because you are subscribed to the Google G

AttributeError: '__proxy__' object has no attribute 'decode'

2013-08-13 Thread abhijeet shete
HttpResponseRedirect with reverse_lazy as first argument where reverse_lazy takes named_url as first argument. These functions was working fine before porting with django 1.4.3 and python 2.7 but now I am getting *AttributeError* after porting to python 3. My view function is : * * *HOME_URL = reverse_lazy

<    1   2   3   4   5   >