On 27 January 2011 14:26, Casual Coder wrote:
> Is there a way to see what all got imported from django?
In Python, you can see what is available in each imported module by
using the dir function, e.g.
>>> import django
>>> dir(django)
['VERSION', '__builtins__', '__doc__', '__file__', '__name
Thanks Mike & Russ,
I was using 0.96 for development with Google App Engine.
Stubbornly. I really didn't HAVE to use GAE. I picked it as a
hosting & auth headstart.
My rampup has been embarrassingly slow (Python, Django, Eclipse
newbie) so I think I'll switch over to a newer version of Django
On Thu, Jan 27, 2011 at 12:22 PM, Mike Dewhirst wrote:
> On 27/01/2011 2:35pm, Casual Coder wrote:
>
> import django
> django.VERSION
>>
>> (0, 96.406, None)
>>
> django.get_version()
>>
>> Traceback (most recent call last):
>> File "", line 1, in
>> AttributeError: '
On 27/01/2011 2:35pm, Casual Coder wrote:
import django
django.VERSION
(0, 96.406, None)
django.get_version()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'get_version'
Maybe Django version 0.96 didn't use a get_vers
>>> import django
>>> django.VERSION
(0, 96.406, None)
>>> django.get_version()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'get_version'
--
You received this message because you are subscribed to the Google Groups
"Djan
Mike I appreciate your answers and am trying them lots of ways. Still
not getting that Django linkage in my console.
>>> import django
>>> django.get_version()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'get_version'
Is there a way
On 27/01/2011 1:02pm, Casual Coder wrote:
Thanks Mike.
But Darn I'm not as powerful as I had hoped. I expected DUMPDATA to
work the same way, but it doesn't. How did VERSION work?
VERSION didn't actually "work". It is a constant which is an attribute
of django. Bear in mind that django is
Thanks Mike.
But Darn I'm not as powerful as I had hoped. I expected DUMPDATA to
work the same way, but it doesn't. How did VERSION work?
and why doesn't django-admin.py dumpdata work?
>>> django-admin.py dumpdata
File "", line 1
django-admin.py dumpdata
^
Sy
On Jan 26, 8:13 pm, Mike Dewhirst wrote:
> >>> from django import VERSION
> >>> VERSION
> (1, 3, 0, 'alpha', 1)
Ah. That works. I have suddenly become quite powerful. Thanks!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
On 27/01/2011 12:02pm, Casual Coder wrote:
I'd like to get handy with using the console. Do I have a setup
problem or a usage problem?
>>> from django import VERSION
>>> VERSION
(1, 3, 0, 'alpha', 1)
>>>
See following pydev console output. Am I not able to run
get_version() like that?
10 matches
Mail list logo