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
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
to fix it.
Thanks,
Pratik
On Tuesday, July 2, 2013 4:53:09 PM UTC+5:30, Tom Evans wrote:
>
> On Tue, Jul 2, 2013 at 12:14 PM, Pratik Mandrekar
> > wrote:
> >
> > Hello,
> >
> >
> > I keep getting the error AttributeError: 'RegexURLResolver'
On Tue, Jul 2, 2013 at 12:14 PM, Pratik Mandrekar
wrote:
>
> Hello,
>
>
> I keep getting the error AttributeError: 'RegexURLResolver' object has no
> attribute '_urlconf_module' and the only trace available is as shown below:
>
> 'RegexURLResolver&
Hello,
I keep getting the error *AttributeError: 'RegexURLResolver' object has no
attribute '_urlconf_module' *and the only trace available is as shown below:
'RegexURLResolver' object has no attribute '_urlconf_module'
My Sentry Error reporting n
f, request, form, formsets,
change)<https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_related>
method
that Django provides. When I try to save something, I get an error:
AttributeError: 'AlumniResponseFormFormSet' object has no attribute
Please try to use the *traceback* option:
>>> python django-admin.py startproject mysite --traceback
Maybe we will get some additional info...
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emai
day, March 27, 2013 7:12:05 PM UTC+2, Tom Evans wrote:
>>>
>>>> On Wed, Mar 27, 2013 at 4:39 PM, Olga Zasenko
>>>> wrote:
>>>> > Hi, everybody!
>>>> > I'm following the instructions on website docs.djangoproject.com and
>
t;> On Wednesday, March 27, 2013 7:12:05 PM UTC+2, Tom Evans wrote:
>>
>>> On Wed, Mar 27, 2013 at 4:39 PM, Olga Zasenko
>>> wrote:
>>> > Hi, everybody!
>>> > I'm following the instructions on website docs.djangoproject.com and
>>&g
Wed, Mar 27, 2013 at 4:39 PM, Olga Zasenko
>> wrote:
>> > Hi, everybody!
>> > I'm following the instructions on website docs.djangoproject.com and
>> trying
>> > to create my very first Django project.
>> > The only result I get is a confusi
ons on website docs.djangoproject.com and
> trying
> > to create my very first Django project.
> > The only result I get is a confusing error:
> >
> > AttributeError: 'module' object has no attribute '_handlerList'.
> >
> > My Django
t; > to create my very first Django project.
> > The only result I get is a confusing error:
> >
> > AttributeError: 'module' object has no attribute '_handlerList'.
> >
> > My Django version is 1.5, Python - 2.7.3.
> > I compl
On Wed, Mar 27, 2013 at 4:39 PM, Olga Zasenko wrote:
> Hi, everybody!
> I'm following the instructions on website docs.djangoproject.com and trying
> to create my very first Django project.
> The only result I get is a confusing error:
>
> AttributeError: 'mod
Hi, everybody!
I'm following the instructions on website docs.djangoproject.com and trying
to create my very first Django project.
The only result I get is a confusing error:
AttributeError: 'module' object has no attribute '_handlerList'.
My Django version is 1.5, Pyt
Haha indeed, silly me!
Well I think that's the error cause then : the urls property apparently
didn't exist in Django 1.0!
Cheers,
Thomas
On Dec 18, 2012 3:14 PM, "Ramiro Morales" wrote:
> On Tue, Dec 18, 2012 at 10:12 AM, Thomas Orozco wrote:
> > What version of django are you using?
> >
> >
On Tue, Dec 18, 2012 at 10:12 AM, Thomas Orozco wrote:
> What version of django are you using?
>
> admin.site.urls was introducd four years ago
> (https://github.com/django/django/commit/1f84630c87f8032b0167e6db41acaf50ab710879),
> but maybe you're running an older version?
On Fri, Dec 14, 2012 a
1 . check whether u imported url in the file mysite/urls.py
2.make sure that you added url before the command(r'^admin/',
include(admin.site.urls))
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-
; in resolve
> 181. for pattern in self.urlconf_module.urlpatterns:
> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
> in _get_urlconf_module
> 205. self._urlconf_module = __import__(self.urlconf_name,
> {}, {}, [''])
>
terns:
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in _get_urlconf_module
205. self._urlconf_module = __import__(self.urlconf_name, {},
{}, [''])
File "/home/xhao/djcode/mysite/../mysite/urls.py" in
16. (r'^admin/', in
s/__init__.py",
>
> line 292, in get_prep_lookup
> return self.get_prep_value(value)
>
> File
> "/var/www/TorrentGuru/local-python/lib/python2.6/site-packages/django/db/models/fields/__init__.py",
>
> line 721, in get_prep_value
> return self.to_pyt
https://github.com/iamrohitbanga/django_ticket_19271/tree/code_working>
>>>>
>>>> Just creating my_id field in BaseModel class with unique=True set
>>>> causes the code to fail with the stack trace below.
>>>> My usecase is a bit weird hence
_working
>>>
>>> Just creating my_id field in BaseModel class with unique=True set causes
>>> the code to fail with the stack trace below.
>>> My usecase is a bit weird hence you would find model form inheriting
>>> from abstract models. IMHO that s
d field in BaseModel class with unique=True set causes
>> the code to fail with the stack trace below.
>> My usecase is a bit weird hence you would find model form inheriting from
>> abstract models. IMHO that should not matter. The code works without unique
>> fields but d
would find model form inheriting from
> abstract models. IMHO that should not matter. The code works without unique
> fields but does not work with non-unique fields. I will be happy to provide
> more clarifications.
>
> Below is the stacktrace for the
> "AttributeError at
provide
more clarifications.
Below is the stacktrace for the
"AttributeError at /create_new type object 'BaseModel' has no attribute
'_default_manager' Traceback: File
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in
get_respon
return self.get_prep_value(value)
File
"/var/www/TorrentGuru/local-python/lib/python2.6/site-packages/django/db/models/fields/__init__.py",
line 721, in get_prep_value
return self.to_python(value)
File
"/var/www/TorrentGuru/local-python/lib/python2.6/site-packages/djan
4, Coulson Thabo Kgathi wrote:
>
> AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
>
> i get this error when i run the command
>
> $ python manage.py sqlall world
>
> world being the app i created for the geodjango project in the g
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
i get this error when i run the command
$ python manage.py sqlall world
world being the app i created for the geodjango project in the geodjango
toturial
--
You received this message because you a
I'd look more into the full traceback. I haven't had any trouble with
underscores either.
On Mon, Aug 13, 2012 at 2:31 PM, creecode wrote:
> I have many custom management command names that have underscores in them.
> I've never had a problem. I believe that a management command name only
> ne
I have many custom management command names that have underscores in them.
I've never had a problem. I believe that a management command name only
needs follow python rules for naming files.
On Sunday, August 12, 2012 1:44:06 AM UTC-7, Melvyn Sopacua wrote:
On 11-8-2012 2:14, Matthew Meyer wr
On Mon, Aug 13, 2012 at 6:06 PM, Melvyn Sopacua wrote:
> On 13-8-2012 14:23, Melvyn Sopacua wrote:
>> On 13-8-2012 13:47, Satinderpal Singh wrote:
>>
>>> I got the following error while making the tables in database using
>>> syncdb command:
>>>
>>&
On 13-8-2012 14:23, Melvyn Sopacua wrote:
> On 13-8-2012 13:47, Satinderpal Singh wrote:
>
>> I got the following error while making the tables in database using
>> syncdb command:
>>
>> AttributeError: 'DatabaseOperations' object has no attribute
On 13-8-2012 13:47, Satinderpal Singh wrote:
> I got the following error while making the tables in database using
> syncdb command:
>
> AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
>
> I recently install GEOS library and imp
Hi,
I got the following error while making the tables in database using
syncdb command:
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
I recently install GEOS library and import it to my model.py file. Any
help will be appreciated, thanks in advan
On 11-8-2012 2:14, Matthew Meyer wrote:
> The command I am running is :
>
> $ python manage.py event_expiration
>
> I've made sure I am adding the event_expiration.py file within management
> and commands folders and that those folders have init files. those are in
> one of my app folders.
>
I am trying to make a custom management command as show in the docs here:
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
When I try to run the command from my project directory I am experiencing
the following error:
AttributeError: 'module' object has no
to localhost:8000/admin/ I get the option to add and Entry.
> > I can select this option fill out sample data, but when I try to save
> it.
> > I get the following error.
> >
> > AttributeError at /admin/coltrane/entry/add/
> >
> > 'Entry' object has no attr
elds used to
> Enter a weblog entry.
> When I go to localhost:8000/admin/ I get the option to add and Entry.
> I can select this option fill out sample data, but when I try to save it.
> I get the following error.
>
> AttributeError at /admin/coltrane/entry/add/
>
> '
e data, but when I try to save it.
I get the following error.
AttributeError at /admin/coltrane/entry/add/
'Entry' object has no attribute 'pubdate'
There is a field called pub_date in Entry
It's as if I have made a typing error somewhere and typed pubdate inste
ot;,
line 48, in
class Field(object):
File
"/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py",
line 418, in Field
def formfield(self, form_class=forms.CharField, **kwargs):
AttributeError: 'module' object has no attribute 'CharField'
--
Y
figClass(config).configure()
File "C:\Program Files\Python24\lib\site-packages\django\utils
\dictconfig.py", line 321, in configure
del logging._handlerList[:]
AttributeError: 'module' object has no attribute '_handlerList'
Thanks in Advance
Murugesan
effectively if you included the
> stack
> > trace that goes with the exception.
> >
> > Karen
> > --http://tracey.org/kmt/
>
> The stack trace for the error is:
>
> ERROR Caught AttributeError while rendering: 'User' object has no
> attribute '
On Tue, Dec 20, 2011 at 11:09 PM, Divick Kishore
wrote:
> On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis
> wrote:
> > It sounds like your custom user template context variable might be
> causing a
> > conflict with the default if you're also using django.contrib.auth
> (which is
> > what the admi
Hi Branton,
On Wed, Dec 21, 2011 at 11:09 AM, Branton Davis wrote:
>
> That stack trace is unrelated to the other problem. Somewhere (guessing
> gifts/urls.py) you've referenced a view
> at gifts.views.ajax_handle_wishinvite, which doesn't exist. Check
> gifts/views.py for a method named 'ajax_
On Dec 21, 7:05 am, Karen Tracey wrote:
> People would be able to help you more effectively if you included the stack
> trace that goes with the exception.
>
> Karen
> --http://tracey.org/kmt/
The stack trace for the error is:
ERROR Caught AttributeError while rendering: '
On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis wrote:
> It sounds like your custom user template context variable might be causing a
> conflict with the default if you're also using django.contrib.auth (which is
> what the admin uses by default). I'm guessing that the admin
> views/templates use
People would be able to help you more effectively if you included the stack
trace that goes with the exception.
Karen
--
http://tracey.org/kmt/
--
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@g
I get the following error when I try to access admin site. I am not
sure what is causing this. I am not sure if it could be caused because
one of the two reasons:
1. I have a User model in one of my apps which does not have a id as
primary key. I have some other key as the primary key.
2. I have
/dist-packages/Django-1.2.5-py2.7.egg/django/core/urlresolvers.py",
> line 263, in resolve500
> return self._resolve_special('500')
> File
> "/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/core/urlresolvers.py",
> line 253, in _resolve_
t;/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/core/urlresolvers.py",
line 263, in resolve500
return self._resolve_special('500')
File
"/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/core/urlresolvers.py",
line 253, in
I just downloaded and installed Django 1.3, I can't seem to run the
console or server with this error:
AttributeError: 'NoneType' object has no attribute '_inf
$ python manage.py shell
Traceback (most recent call last):
File "manage.py", line 13, in
execute_
Hello,
when testing user related logic I always run into this problem with
the RequestFactory. Anybody know an elegant solution for this? At the
moment I am mocking out everything that's related to sessions.
--
You received this message because you are subscribed to the Google Groups
"Django us
The error was trapped by django-sentry and does *not* occur in python
interpreter, thus I can't understand it!
Please can anybody enlighten me?
Here the details:
Exception Type: AttributeError
Exception Value: _strptime_time
The error is raised by line #698 in
/usr/local/lib/python2.6
On 03/10/2011 03:28 AM, delegb...@dudupay.com wrote:
The spelling is what the problem is.
You have typed 'objetcs' instead of 'objects'.
Always study the error trace very well.
Best regards.
Sent from my BlackBerry wireless device from MTN
Ups!!, sorry, I did not see "objects" when I wrote i
On Wed, 2011-03-09 at 15:53 -0500, Alberto Morales Fernández wrote:
> 'objetcs'
objects
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
ooglegroups.com
Date: Wed, 09 Mar 2011 15:53:17
To:
Reply-To: django-users@googlegroups.com
Subject: AttributeError at / polls / in Django Tutorial
Hi guys, I'm a rookie in django, I am doing the tutorial intro of the
official URL Django, in chapter 3 but I get the following error whe
Hi guys, I'm a rookie in django, I am doing the tutorial intro of the
official URL Django, in chapter 3 but I get the following error when I
access the url of my application
{
AttributeError at / polls /
type object 'Poll' has no attribute 'objetcs'
Request Meth
On Thu, Feb 10, 2011 at 9:10 AM, hank23 wrote:
> So when I go to build the entries for my drop down list then I would
> iterate over the query results like you suggested and at that point
> where I iterate over the results then I can also set the different
> select option attributes (html option t
28 AM, hank23 wrote:
> > I'm trying to use raw SQL to retrieve the information that I want to
> > display in a dropdown list. Here's the error that I'm getting:
>
> > TemplateSyntaxError at /polls/updatepath/
> > Caught AttributeError while renderin
ery_set %}
On Thu, Feb 10, 2011 at 7:28 AM, hank23 wrote:
> I'm trying to use raw SQL to retrieve the information that I want to
> display in a dropdown list. Here's the error that I'm getting:
>
> TemplateSyntaxError at /polls/updatepath/
> Caught AttributeError
I'm trying to use raw SQL to retrieve the information that I want to
display in a dropdown list. Here's the error that I'm getting:
TemplateSyntaxError at /polls/updatepath/
Caught AttributeError while rendering: 'RawQuerySet' object has no
attribute 'all'
On Tue, Feb 1, 2011 at 6:03 PM, gintare wrote:
> AttributeError 'module' object has no attribute '__path'
What is in your INSTALLED_APPS setting? This cryptic message usually means
there is something in INSTALLED_APPS that is not correct. (There's a ticket
r
and runserver
c:\Python27\python c:\amber\Spokas\manage.py runserver
AttributeError 'module' object has no attribute '__path'
I added *.pth files to different locations to check if it works:
c:\Python27\Libs\site-packages\Django
c:\Python27\Libs\site-packages
c:\amber
c:\
While I haven't worked with formsets, this line doesn't look correct:
formset = ClientFormSet(request.POST, request.FILES,
queryset=Client.objects.get(pk=client_id))
mainly due to a parameter named queryset being passed a model object,
instead of a queryset of model objects. It would seem that yo
Either its age - the scotch - or some combination of both, but I am
having problems with a SIMPLE formset. (its my first).
On my formset I get an AttributeError - 'Client' object has no
attribute 'ordered'... .but I dont have an attribute of that
anywhere I tried chan
The XView middleware was the culprit. After removing that, the issues
completely disappeared. For some reason it was added as default (this
could have been in 1.1, I don't know), and I never used it, so it was
no loss at all :)
Thank you!
/Martin
On Nov 26, 10:59 am, Łukasz Rekucki wrote:
> On 2
On 26 November 2010 10:35, marty3d wrote:
> I have disabled cache and still getting the error. That
> leaves...what? :/
>
> I could really appreciate some help debugging this.
On a closer look, this looks like:
http://code.djangoproject.com/ticket/13842 ; But then, you must have
changed something
back, callback_args,
> > > callback_kwargs)
>
> > > File "/home/mistalaba/.virtualenvs/production/lib/python2.5/site-
> > > packages/django/middleware/doc.py", line 18, in process_view
> > > response['X-View'] = "%s.%s" % (view_fun
leware_method(request, callback, callback_args,
> > callback_kwargs)
>
> > File "/home/mistalaba/.virtualenvs/production/lib/python2.5/site-
> > packages/django/middleware/doc.py", line 18, in process_view
> > response['X-View'] = "%s.%s" % (vie
"/home/mistalaba/.virtualenvs/production/lib/python2.5/site-
> packages/django/middleware/doc.py", line 18, in process_view
> response['X-View'] = "%s.%s" % (view_func.__module__,
> view_func.__name__)
>
> AttributeError: 'LatestStripsByStripConfig
response = middleware_method(request, callback, callback_args,
callback_kwargs)
File "/home/mistalaba/.virtualenvs/production/lib/python2.5/site-
packages/django/middleware/doc.py", line 18, in process_view
response['X-View'] = "%s.%s" % (view_func.__modul
ibute=variable)
for items in i_contract_item_list:
new_contract.contract_items.add(items)
new_contract.save()
However when i run this the following error occurs and I cant seem to find
the problem:
AttributeError: 'Contract' object has no attribute 'contract_items'
Any
items in i_contract_item_list:
new_contract.contract_items.add(items)
new_contract.save()
However when i run this the following error occurs and I cant seem to find
the problem:
AttributeError: 'Contract' object has no attribute 'contract_items'
Any help would be
Hi,
I'm trying to delete all entries in a model. However, when I attempt
to do so by calling `Comment.objects.all().delete()`, I get an error
saying `AttributeError: 'ReverseSingleRelatedObjectDescriptor' object
has no attribute 'delete_manager'`. What am I doin
d=True)
def get_absolute_url(self):
return "/tag/%s/" % str(self.catid)
class Meta:
verbose_name = 'Category'
When I'm running the code it shows:
Exception Type: AttributeError
Exception Value:
type object 'Category' has no attribute '_meta'
Exce
I have now seen this happen with other data that has expired in the
session. What I am seeing is that any key:value pair that times out
when stored in the request.session is replaced by key:True
Is this expected behaviour?
-Daniel
--
You received this message because you are subscribed to the
> This sounds suspicious to me. There is actually no "installation"
> procedure for Python stuff. It's all about priority in the sys.path, or
> PYTHON_PATH, environment variable. So you might experience glitches because
> some bits of 1.2 are used together with some other bits of 1.0.
>
> C
On 03/set/2010, at 17:42, "daniel.osterme...@gmail.com"
wrote:
> There was another issue raised that sounded a little similar, where
> the problem was the that django 1.2 was installed over the top of
> 1.0. I've installed it as documented, but I do have both 1.0 and 1.2
> installed, so maybe s
> do you run into the same problem if you remove that 'optiver' stuff?
I can not say that I have tried. That is the application that I am
developing. The only point of interest in it would be that non of the
views require a login, and whilst I make use of the request.session,
I've checked and
Hi,
On Sep 3, 2010, at 7:42 AM, daniel.osterme...@gmail.com wrote:
> Any help would be appreciated.
do you run into the same problem if you remove that 'optiver' stuff?
-- Fede
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Hi,
Ive been running into a problem lately (not sure when it started)
where I receive an AttributeError when logging into the admin site.
The circumstances seem to be that I start the application, go to the
admin site (and log in successfully), navigate around the rest of the
application (which
Hi,
Ive been running into a problem lately (not sure when it started)
where I receive an AttributeError when logging into the admin site.
The circumstances seem to be that I start the application, go to the
admin site (and log in successfully), navigate around the rest of the
application (which
class Meta:
> model = QuestionSet
>
>
> In a view, calling
>
> qset=QuestionFormSet()
> print q
> works just fine.
>
>
> However,
>
> q = QuestionForm()
> print q
> throws
>
>
>
= QuestionSet
In a view, calling
qset=QuestionFormSet()
print q
works just fine.
However,
q = QuestionForm()
print q
throws
Exception Type: AttributeError
Exception Value:'NoneType' object has no attribute &
Andrew Godwin from the South user group replied: "It looks like this
is a bug in the permissions-creating code, however, and not in South
itself (although it might be triggered by the way South fiddles with
the ORM)."
Ideas, anyone?
--
You received this message because you are subscribed to the
I should have also said: 'errr... help please, what now?'
--
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 this group, send email to
django-users+unsubscr...
klass)
File "[...]django-trunk/django/contrib/contenttypes/models.py", line
40, in get_for_model
self._add_to_cache(self.db, ct)
File "[...]django-trunk/django/contrib/contenttypes/models.py", line
70, in _add_to_cache
key = (model._meta.app_label, model._meta.object_nam
re_method(request, response)
>
> File "/usr/lib/python2.6/site-packages/django/middleware/common.py",
> line 83, in process_response
> if response.status_code == 404:
>
> AttributeError: 'str' object has no attribute 'status_code'
Obviously a string is return
lers/
modpython.py", line 205, in __call__
response = middleware_method(request, response)
File "/usr/lib/python2.6/site-packages/django/middleware/common.py",
line 83, in process_response
if response.status_code == 404:
AttributeError: 'str' object has no attri
On Mar 11, 4:46 am, Hugh Zhang wrote:
> Hi there, i have occured an error bellow with django 1.1:
> *Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'QuerySet' object has no attribute 'remove'*
> The whole code about this
Hi there, i have occured an error bellow with django 1.1:
*Traceback (most recent call last):
File "", line 1, in
AttributeError: 'QuerySet' object has no attribute 'remove'*
The whole code about this error is:
*>>> b = Blog.objects.get
Your code snippet works for me (though I'm just returning html rather than
the HttpResponse object, for testing purposes).
Be very sure that the spelling of everything in the file in question is correct
and that you aren't, for example, using the name "datetime" for something
else between the impo
On Tue, Feb 9, 2010 at 5:19 PM, Nick Mellor wrote:
> Thanks Shaun,
>
> I renamed the "now" variable as "dt" but it didn't help. I've also
> tried your 1-tuple idea-- no change.
>
> Note that the offending line isn't the html assignment but:
>
> now = datetime.datetime.now()
>
>
It seems that whate
On Feb 9, 2010, at 5:24 PM, Mike Ramirez wrote:
> On Tuesday 09 February 2010 14:19:17 Nick Mellor wrote:
>> Thanks Shaun,
>>
>> I renamed the "now" variable as "dt" but it didn't help. I've also
>> tried your 1-tuple idea-- no change.
>>
>> Note that the offending line isn't the html assignmen
On Tuesday 09 February 2010 14:19:17 Nick Mellor wrote:
> Thanks Shaun,
>
> I renamed the "now" variable as "dt" but it didn't help. I've also
> tried your 1-tuple idea-- no change.
>
> Note that the offending line isn't the html assignment but:
>
> now = datetime.datetime.now()
>
Make sure you
Thanks Shaun,
I renamed the "now" variable as "dt" but it didn't help. I've also
tried your 1-tuple idea-- no change.
Note that the offending line isn't the html assignment but:
now = datetime.datetime.now()
On Feb 10, 6:22 am, Shawn Milochik wrote:
> Perhaps replace the bare 'now' with a tupl
Perhaps replace the bare 'now' with a tuple:
Before:
> html = "It is now %s." % now
After:
> html = "It is now %s." % (now,)
Shawn
--
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.
Hi all,
This must be very simple, but I'm stumped.
Here's the code for views.py
from django.http import HttpResponse
import datetime
def current_datetime(request):
now = datetime.datetime.now()
html = "It is now %s." % now
return HttpResponse(html)
The offending line is:
now = date
On Wed, Feb 3, 2010 at 7:43 AM, chefsmart wrote:
> I am trying out the new model validation feature in svn trunk, but I
> doubt I am doing this right.
>
> Specifically, for a model I have the following: -
>
> [snip]
> AttributeError: 'ValidationError' object h
self._errors.append(form.errors)
File "/filepath/django/forms/forms.py", line 111, in _get_errors
self.full_clean()
File "/filepath/django/forms/forms.py", line 267, in full_clean
self._clean_form()
File "/filepath/django/forms/models.py", line 320, in _clean_f
201 - 300 of 404 matches
Mail list logo