Re: Django 1.11: AttributeError: 'module' object has no attribute 'setup_environ'

2019-03-05 Thread Chi Shiek
Also failing in local dev_appserver. It seemed to work for a very short 
time (couple of queries) and then it stopped with the same error. 
Gave up and reverting back to 1.4 (which is what app engine seems to 
recommend - 1.4 or 1.11).

On Friday, 1 March 2019 08:29:42 UTC+11, Chi Shiek wrote:
>
> Didn't work in production...same error...suggestions welcome
>
> On Friday, 1 March 2019 06:41:55 UTC+11, Chi Shiek wrote:
>>
>> This is related to a bug I raised against app engine while tying to 
>> migrate from django 1.5 to 1.11.
>>
>> The issue is I have an app running on app engine using django 1.5.
>> Recently I was making a number of major updates to the app and decided to 
>> convert to django 1.11 as part of that update.
>>
>> Everything seemed to work fine on my local dev_appserver, but when I 
>> deployed it to app engine, it threw an error similar to this...
>>
>> ERROR2019-02-28 19:01:49,710 wsgi.py:263]
>> Traceback (most recent call last):
>>   File 
>> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>>  
>> line 240, in Handle
>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>   File 
>> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>>  
>> line 299, in _LoadHandler
>> handler, path, err = LoadObject(self._handler)
>>   File 
>> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>>  
>> line 96, in LoadObject
>> __import__(cumulative_path)
>> INFO 2019-02-28 19:01:49,720 module.py:861] default: "GET 
>> /Common?action=%5B%22logout%22%5D HTTP/1.1" 500 -
>>   File 
>> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/ext/django/main.py",
>>  
>> line 82, in 
>> management.setup_environ(settings, 
>> original_settings_path=settings_path)
>> AttributeError: 'module' object has no attribute 'setup_environ'
>>
>>
>> I downloaded the app back to my local development server and built a 
>> clean python environment using only the exact modules I needed - and then I 
>> saw the same setup_environ error.
>> The module indicated has the following code which is throwing the error.
>>
>> try:
>>   settings = __import__(settings_path)
>>   management.setup_environ(settings, original_settings_path=settings_path)
>> except ImportError:
>> pass
>>
>> I changed the code to 
>> try:
>>   settings = __import__(settings_path)
>>   management.setup_environ(settings, original_settings_path=settings_path)
>> except AttributeError:
>>   django.setup()
>> except ImportError:
>> pass
>>
>> And everything works fine.
>> My problem is that the changed module appears to be inside the 
>> google-cloud-sdk and therefore I cannot change it in production.
>>
>> My app.yaml point to django 1.11
>>
>> I've searched the net and no one seems to have encountered this problem 
>> before...there is a lot about setup_environ, but nothing that addresses 
>> this particular issue.
>>
>> I even raised a ticket against app engine (
>> https://issuetracker.google.com/issues/124539522) but received a reply 
>> that it was a django problem.
>>
>> Question is - has anyone else come across this problem in the app engine 
>> environment - and how did you resolve it?
>>
>> Thanks!
>> /Chi
>>
>>
>>
>>
>>
>>
>>
>>

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/80cd55a9-4b28-4600-9671-af909a339df8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.11: AttributeError: 'module' object has no attribute 'setup_environ'

2019-02-28 Thread Chi Shiek
Didn't work in production...same error...suggestions welcome

On Friday, 1 March 2019 06:41:55 UTC+11, Chi Shiek wrote:
>
> This is related to a bug I raised against app engine while tying to 
> migrate from django 1.5 to 1.11.
>
> The issue is I have an app running on app engine using django 1.5.
> Recently I was making a number of major updates to the app and decided to 
> convert to django 1.11 as part of that update.
>
> Everything seemed to work fine on my local dev_appserver, but when I 
> deployed it to app engine, it threw an error similar to this...
>
> ERROR2019-02-28 19:01:49,710 wsgi.py:263]
> Traceback (most recent call last):
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 240, in Handle
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 299, in _LoadHandler
> handler, path, err = LoadObject(self._handler)
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 96, in LoadObject
> __import__(cumulative_path)
> INFO 2019-02-28 19:01:49,720 module.py:861] default: "GET 
> /Common?action=%5B%22logout%22%5D HTTP/1.1" 500 -
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/ext/django/main.py",
>  
> line 82, in 
> management.setup_environ(settings, 
> original_settings_path=settings_path)
> AttributeError: 'module' object has no attribute 'setup_environ'
>
>
> I downloaded the app back to my local development server and built a clean 
> python environment using only the exact modules I needed - and then I saw 
> the same setup_environ error.
> The module indicated has the following code which is throwing the error.
>
> try:
>   settings = __import__(settings_path)
>   management.setup_environ(settings, original_settings_path=settings_path)
> except ImportError:
> pass
>
> I changed the code to 
> try:
>   settings = __import__(settings_path)
>   management.setup_environ(settings, original_settings_path=settings_path)
> except AttributeError:
>   django.setup()
> except ImportError:
> pass
>
> And everything works fine.
> My problem is that the changed module appears to be inside the 
> google-cloud-sdk and therefore I cannot change it in production.
>
> My app.yaml point to django 1.11
>
> I've searched the net and no one seems to have encountered this problem 
> before...there is a lot about setup_environ, but nothing that addresses 
> this particular issue.
>
> I even raised a ticket against app engine (
> https://issuetracker.google.com/issues/124539522) but received a reply 
> that it was a django problem.
>
> Question is - has anyone else come across this problem in the app engine 
> environment - and how did you resolve it?
>
> Thanks!
> /Chi
>
>
>
>
>
>
>
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8adf927f-30b7-4d91-8b20-33db30142bdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.11: AttributeError: 'module' object has no attribute 'setup_environ'

2019-02-28 Thread Chi Shiek
Managed to fix it by loading Django as a separate library...
These are the things I had to do...
Used following link to create a libs directory and install django in it 
(via pip - instructions on the page) - also followed the instructions on 
this page for creating a appengine_config.py 

https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27

Removed django from my app.yaml
libraries:
- name: django
  version: "1.11"

commented out these lines from my main.py
#os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
#from django.conf import settings

seems I had this in my app.yaml already
env_variables:
  DJANGO_SETTINGS_MODULE: 'core.settings'

That's about it...oh - also removed the changes I made to...

/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/
google_appengine/google/appengine/ext/django/main.py

Haven't deployed it yet - but at least the dev_appserver is now running 
properly.


On Friday, 1 March 2019 06:41:55 UTC+11, Chi Shiek wrote:
>
> This is related to a bug I raised against app engine while tying to 
> migrate from django 1.5 to 1.11.
>
> The issue is I have an app running on app engine using django 1.5.
> Recently I was making a number of major updates to the app and decided to 
> convert to django 1.11 as part of that update.
>
> Everything seemed to work fine on my local dev_appserver, but when I 
> deployed it to app engine, it threw an error similar to this...
>
> ERROR2019-02-28 19:01:49,710 wsgi.py:263]
> Traceback (most recent call last):
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 240, in Handle
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 299, in _LoadHandler
> handler, path, err = LoadObject(self._handler)
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 96, in LoadObject
> __import__(cumulative_path)
> INFO 2019-02-28 19:01:49,720 module.py:861] default: "GET 
> /Common?action=%5B%22logout%22%5D HTTP/1.1" 500 -
>   File 
> "/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/ext/django/main.py",
>  
> line 82, in 
> management.setup_environ(settings, 
> original_settings_path=settings_path)
> AttributeError: 'module' object has no attribute 'setup_environ'
>
>
> I downloaded the app back to my local development server and built a clean 
> python environment using only the exact modules I needed - and then I saw 
> the same setup_environ error.
> The module indicated has the following code which is throwing the error.
>
> try:
>   settings = __import__(settings_path)
>   management.setup_environ(settings, original_settings_path=settings_path)
> except ImportError:
> pass
>
> I changed the code to 
> try:
>   settings = __import__(settings_path)
>   management.setup_environ(settings, original_settings_path=settings_path)
> except AttributeError:
>   django.setup()
> except ImportError:
> pass
>
> And everything works fine.
> My problem is that the changed module appears to be inside the 
> google-cloud-sdk and therefore I cannot change it in production.
>
> My app.yaml point to django 1.11
>
> I've searched the net and no one seems to have encountered this problem 
> before...there is a lot about setup_environ, but nothing that addresses 
> this particular issue.
>
> I even raised a ticket against app engine (
> https://issuetracker.google.com/issues/124539522) but received a reply 
> that it was a django problem.
>
> Question is - has anyone else come across this problem in the app engine 
> environment - and how did you resolve it?
>
> Thanks!
> /Chi
>
>
>
>
>
>
>
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a51c874b-1119-4e7e-930a-55228462a613%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django 1.11: AttributeError: 'module' object has no attribute 'setup_environ'

2019-02-28 Thread Chi Shiek
This is related to a bug I raised against app engine while tying to migrate 
from django 1.5 to 1.11.

The issue is I have an app running on app engine using django 1.5.
Recently I was making a number of major updates to the app and decided to 
convert to django 1.11 as part of that update.

Everything seemed to work fine on my local dev_appserver, but when I 
deployed it to app engine, it threw an error similar to this...

ERROR2019-02-28 19:01:49,710 wsgi.py:263]
Traceback (most recent call last):
  File 
"/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
 
line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File 
"/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
 
line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
  File 
"/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/runtime/wsgi.py",
 
line 96, in LoadObject
__import__(cumulative_path)
INFO 2019-02-28 19:01:49,720 module.py:861] default: "GET 
/Common?action=%5B%22logout%22%5D HTTP/1.1" 500 -
  File 
"/home/cshiek/Programs/google-cloud-sdk-1.9.83/platform/google_appengine/google/appengine/ext/django/main.py",
 
line 82, in 
management.setup_environ(settings, original_settings_path=settings_path)
AttributeError: 'module' object has no attribute 'setup_environ'


I downloaded the app back to my local development server and built a clean 
python environment using only the exact modules I needed - and then I saw 
the same setup_environ error.
The module indicated has the following code which is throwing the error.

try:
  settings = __import__(settings_path)
  management.setup_environ(settings, original_settings_path=settings_path)
except ImportError:
pass

I changed the code to 
try:
  settings = __import__(settings_path)
  management.setup_environ(settings, original_settings_path=settings_path)
except AttributeError:
  django.setup()
except ImportError:
pass

And everything works fine.
My problem is that the changed module appears to be inside the 
google-cloud-sdk and therefore I cannot change it in production.

My app.yaml point to django 1.11

I've searched the net and no one seems to have encountered this problem 
before...there is a lot about setup_environ, but nothing that addresses 
this particular issue.

I even raised a ticket against app engine 
(https://issuetracker.google.com/issues/124539522) but received a reply 
that it was a django problem.

Question is - has anyone else come across this problem in the app engine 
environment - and how did you resolve it?

Thanks!
/Chi







-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/853d28f7-9eab-450f-81bf-f05343939da1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
Maybe it works like this in Windows (I don't know since having left this world 
since long now), but Greng mentioned a Debian environment inside his Docker 
container. Hence my remark.


By the way you mentioned "DLLs". Geng's trouble seems to be related to Python 
packages 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: AttributeError: 'module' object has no attribute 'lru_cache' with 
python 3.6.4 and Django 2.0.2


I’m not familiar with Docker, but I did have to add the path to Python 3.6 DLLs 
in my WSGI configuration in my Apache configuration file.

WSGIPythonPath ${project_path};${virtualenv};C:/Python36/DLLs;



From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of 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 
supposed to be already. If not, packages installed via "sudo pip install" would 
not be found.



I've packaged a lot of applications in Docker containers, and never had to 
modify PYTHONPATH.



Your problem is maybe be lurking elsewhere than PYTHONPATH, and this change has 
just created a new one which is hiding the original one, but not solving it at 
all.



Best



Eric



From: django-users@googlegroups.com<mailto:django-users@googlegroups.com> 
mailto:django-users@googlegroups.com>> on behalf 
of Greng Fortezza mailto:greng....@gmail.com>>
Sent: Wednesday, 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)



First, I was getting the error



ImportError: No module named django.core.wsgi



Then I added Django to PYTHONPATH



export PYTHONPATH="/usr/local/lib/python3.6/site-packages"



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 file.



What could be wrong?



Thanks,

Greng

--
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<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/02803efb-92a9-4958-9a52-f77bee7de89b%40googlegroups.com<https://groups.google.com/d/msgid/django-users/02803efb-92a9-4958-9a52-f77bee7de89b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AM5P193MB008328E4760DBF0DA724D2238CF50%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/django-users/AM5P193MB008328E4760DBF0DA724D2238CF50%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https

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
I’m not familiar with Docker, but I did have to add the path to Python 3.6 DLLs 
in my WSGI configuration in my Apache configuration file.
WSGIPythonPath ${project_path};${virtualenv};C:/Python36/DLLs;

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of 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 
supposed to be already. If not, packages installed via "sudo pip install" would 
not be found.



I've packaged a lot of applications in Docker containers, and never had to 
modify PYTHONPATH.



Your problem is maybe be lurking elsewhere than PYTHONPATH, and this change has 
just created a new one which is hiding the original one, but not solving it at 
all.



Best


Eric

From: django-users@googlegroups.com<mailto:django-users@googlegroups.com> 
mailto:django-users@googlegroups.com>> on behalf 
of Greng Fortezza mailto:greng@gmail.com>>
Sent: Wednesday, 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)

First, I was getting the error

ImportError: No module named django.core.wsgi

Then I added Django to PYTHONPATH

export PYTHONPATH="/usr/local/lib/python3.6/site-packages"

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 file.

What could be wrong?

Thanks,
Greng
--
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<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/02803efb-92a9-4958-9a52-f77bee7de89b%40googlegroups.com<https://groups.google.com/d/msgid/django-users/02803efb-92a9-4958-9a52-f77bee7de89b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AM5P193MB008328E4760DBF0DA724D2238CF50%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/django-users/AM5P193MB008328E4760DBF0DA724D2238CF50%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f0cabae1fd6544528668a9494f6dfe03%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


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
Hi,


Normally you shouldn't have to add site-packages in the PYTHONPATH since it is 
supposed to be already. If not, packages installed via "sudo pip install" would 
not be found.


I've packaged a lot of applications in Docker containers, and never had to 
modify PYTHONPATH.


Your problem is maybe be lurking elsewhere than PYTHONPATH, and this change has 
just created a new one which is hiding the original one, but not solving it at 
all.


Best


Eric


From: django-users@googlegroups.com  on behalf 
of Greng Fortezza 
Sent: Wednesday, 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)

First, I was getting the error

ImportError: No module named django.core.wsgi

Then I added Django to PYTHONPATH

export PYTHONPATH="/usr/local/lib/python3.6/site-packages"

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 file.

What could be wrong?

Thanks,
Greng

--
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<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/02803efb-92a9-4958-9a52-f77bee7de89b%40googlegroups.com<https://groups.google.com/d/msgid/django-users/02803efb-92a9-4958-9a52-f77bee7de89b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AM5P193MB008328E4760DBF0DA724D2238CF50%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.


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

2018-02-14 Thread Greng Fortezza
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)

First, I was getting the error 

ImportError: No module named django.core.wsgi

Then I added Django to PYTHONPATH

export PYTHONPATH="/usr/local/lib/python3.6/site-packages"

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 file.

What could be wrong?

Thanks,
Greng

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/02803efb-92a9-4958-9a52-f77bee7de89b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-08-07 Thread Tim Graham
>From https://bitbucket.org/schinckel/django-timedelta-field: "If you are 
using Django 1.8 or greater (and you really _should_ be), then you should 
use the included DurationField() instead of this. This field does not work 
with Django 1.10, and will probably not be updated to fix the issue(s). 
When migrating TimedeltaField to DurationField using Django migrations, 
alter any migrations that have an import to this library to mention the new 
field type, this works to prevent Django from crashing when trying to run 
the deprecated code."

On Monday, August 7, 2017 at 3:52:15 PM UTC-4, ahmed dawod wrote:
>
> I'm working on a project that was built using an earlier version of 
> django. My environment has the latest Django version (1.11.4). 
> When I try to "python manage.py runserver" I get this: 
>
> Unhandled exception in thread started by >> 0x7fb1dab36cf8>
>>
>> Traceback (most recent call last):
>>
>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 
>>> 228, in wrapper
>>
>> fn(*args, **kwargs)
>>
>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py",
>>>  
>>> line 117, in inner_run
>>
>> autoreload.raise_last_exception()
>>
>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 
>>> 251, in raise_last_exception
>>
>> six.reraise(*_exception)
>>
>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 
>>> 228, in wrapper
>>
>> fn(*args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 
>>> 27, in setup
>>
>> apps.populate(settings.INSTALLED_APPS)
>>
>>   File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", 
>>> line 108, in populate
>>
>> app_config.import_models()
>>
>>   File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", 
>>> line 202, in import_models
>>
>> self.models_module = import_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-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 import TimedeltaField
>>
>>   File "/usr/local/lib/python2.7/dist-packages/timedelta/fields.py", line 
>>> 18, in 
>>
>> class TimedeltaField(six.with_metaclass(models.SubfieldBase, 
>>> models.Field)):
>>
>> AttributeError: 'module' object has no attribute 'SubfieldBase'
>>
>>
> So the problem is with the django-timedeltafield package but its version 
> is 0.7.10 which is the latest version. So, why does it still have a problem 
> with this deprecated SubfieldBase? 
>
> What should I do to solve the problem?  
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/432839fb-0640-470f-a84a-7a107f4883f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-08-07 Thread ahmed dawod
I'm working on a project that was built using an earlier version of django. 
My environment has the latest Django version (1.11.4). 
When I try to "python manage.py runserver" I get this: 

Unhandled exception in thread started by > 0x7fb1dab36cf8>
>
> Traceback (most recent call last):
>
>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 
>> 228, in wrapper
>
> fn(*args, **kwargs)
>
>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py",
>>  
>> line 117, in inner_run
>
> autoreload.raise_last_exception()
>
>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 
>> 251, in raise_last_exception
>
> six.reraise(*_exception)
>
>   File 
>> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 
>> 228, in wrapper
>
> fn(*args, **kwargs)
>
>   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 
>> 27, in setup
>
> apps.populate(settings.INSTALLED_APPS)
>
>   File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", 
>> line 108, in populate
>
> app_config.import_models()
>
>   File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", 
>> line 202, in import_models
>
> self.models_module = import_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-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 import TimedeltaField
>
>   File "/usr/local/lib/python2.7/dist-packages/timedelta/fields.py", line 
>> 18, in 
>
> class TimedeltaField(six.with_metaclass(models.SubfieldBase, 
>> models.Field)):
>
> AttributeError: 'module' object has no attribute 'SubfieldBase'
>
>
So the problem is with the django-timedeltafield package but its version is 
0.7.10 which is the latest version. So, why does it still have a problem 
with this deprecated SubfieldBase? 

What should I do to solve the problem?  

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/899c222e-24b5-4603-819c-e36d51ead175%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-03-13 Thread James Schneider
On Mar 13, 2016 11:42 AM, "kashif Nawaz"  wrote:
>
> I read the documentation of Django i followed till page 17 then I have
got an error
> i do exactly the same as the tutorials in docs
> please help me
>

>   File "", line 321, in
_call_with_frames_removed
>   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 something like 'import
myapp.views'? Do you have a function called index in you views.py?

-James

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXVF0gUjd9S941KWnhjguSnVtANCYUcQxVA-62UDO%2BFvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-03-13 Thread kashif Nawaz
I read the documentation of Django i followed till page 17 then I have got 
an error 
i do exactly the same as the tutorials in docs
please help me





Unhandled exception in thread started by .wrapper at 0x7fb70bdb3510>
Traceback (most recent call last):
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/utils/autoreload.py",
 
line 226, in wrapper
fn(*args, **kwargs)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/management/commands/runserver.py",
 
line 116, in inner_run
self.check(display_num_errors=True)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/management/base.py",
 
line 426, in check
include_deployment_checks=include_deployment_checks,
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/checks/registry.py",
 
line 75, in run_checks
new_errors = check(app_configs=app_configs)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/checks/urls.py",
 
line 13, in check_url_config
return check_resolver(resolver)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/checks/urls.py",
 
line 23, in check_resolver
for pattern in resolver.url_patterns:
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/utils/functional.py",
 
line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/urlresolvers.py",
 
line 417, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", 
self.urlconf_module)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/utils/functional.py",
 
line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/urlresolvers.py",
 
line 410, in urlconf_module
return import_module(self.urlconf_name)
  File "/home/kashif/Desktop/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 "", line 1200, in _load_unlocked
  File "", line 1129, in _exec
  File "", line 1471, in exec_module
  File "", line 321, in 
_call_with_frames_removed
  File "/home/kashif/Desktop/mysite/mysite/mysite/urls.py", line 20, in 

url(r'^polls/', include('polls.urls')),
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/conf/urls/__init__.py",
 
line 52, in include
urlconf_module = import_module(urlconf_module)
  File "/home/kashif/Desktop/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 "", line 1200, in _load_unlocked
  File "", line 1129, in _exec
  File "", line 1471, in exec_module
  File "", line 321, in 
_call_with_frames_removed
  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'

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7482b442-9953-4e9f-aea8-52da6af92eb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-08-11 Thread Chris Seberino
Solved. It appears I made some changes to manage.py that are not allowed.

Moving manage.py back outside of the project and leaving just the following 
worked...

#!/usr/bin/env python

import django.core.management
import sys
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "philfour.settings")
django.core.management.execute_from_command_line(sys.argv)


On Monday, August 11, 2014 11:00:22 AM UTC-5, Chris Seberino wrote:
>
> 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)
> AttributeError: 'module' object has no attribute 'execute_manager'
>
> I want to use the Django shell with "./manage.py shell".
>
>
> Here is my full manage.py...
>
> #!/usr/bin/env python
>
> import settings
> import django.core.management
>
> django.core.management.execute_manager(settings)
>
> Thanks,
>
> cs
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/426e4bef-707f-44d3-9306-f8b9b5bb899a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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)
AttributeError: 'module' object has no attribute 'execute_manager'

I want to use the Django shell with "./manage.py shell".


Here is my full manage.py...

#!/usr/bin/env python

import settings
import django.core.management

django.core.management.execute_manager(settings)

Thanks,

cs

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5bfced05-0686-4692-92ee-516e9f0f70d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Filezilla
which would prompt such error more clearly

Let me know if I can help You some day
I work with ecommerce and my number is 22116322

Thank You very much

Michael


2014-06-25 22:07 GMT+02:00 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
>
> Mobil +45 22116322
>
>
> 2014-06-25 22:02 GMT+02:00 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 migration
>>> files in there. Also, update to the latest South version, if you haven't
>>> already.
>>>
>> Just checked on the server
>>  There are only south files, and one __init__.py file i each migration
>> folder
>> I have South 0.8.4 installed, which is the latest I can find
>>
>>>
>>>
>> > PS I see You are from DK - I'm from Aalborg, You?
>>>
>>> Roskilde.
>>>
>> OKay I'm looking for a Danish django developer to help me sometimes when
>> i'm in finding myself in a dead end.
>>
>>>
>>> Erik
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/d6TT9Z6nDLI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1E00F7CB-168A-4EAA-92D9-89B235A25155%40cederstrand.dk
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJrCdYD6EOq48RDzO4U4Ud24nmZ_O%2BJ%3DG82eno7qHhDvyVhcXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

Mobil +45 22116322


2014-06-25 22:02 GMT+02:00 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 migration
>> files in there. Also, update to the latest South version, if you haven't
>> already.
>>
> Just checked on the server
>  There are only south files, and one __init__.py file i each migration
> folder
> I have South 0.8.4 installed, which is the latest I can find
>
>>
>>
> > PS I see You are from DK - I'm from Aalborg, You?
>>
>> Roskilde.
>>
> OKay I'm looking for a Danish django developer to help me sometimes when
> i'm in finding myself in a dead end.
>
>>
>> Erik
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/d6TT9Z6nDLI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1E00F7CB-168A-4EAA-92D9-89B235A25155%40cederstrand.dk
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJrCdYC33EsEvwETR4wvkECK9rA6q%2BvZjAS3Db8uOrwppknbRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 migration
> files in there. Also, update to the latest South version, if you haven't
> already.
>
Just checked on the server
There are only south files, and one __init__.py file i each migration folder
I have South 0.8.4 installed, which is the latest I can find

>
>
> PS I see You are from DK - I'm from Aalborg, You?
>
> Roskilde.
>
OKay I'm looking for a Danish django developer to help me sometimes when
i'm in finding myself in a dead end.

>
> Erik
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/d6TT9Z6nDLI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1E00F7CB-168A-4EAA-92D9-89B235A25155%40cederstrand.dk
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJrCdYDeKwcULCazqO6E04Av7oA_C5EfdiGTaWG-c%3DaFGwX7rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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. Also, update to the latest South version, if you haven't already.

> PS I see You are from DK - I'm from Aalborg, You?

Roskilde.

Erik

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1E00F7CB-168A-4EAA-92D9-89B235A25155%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.


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

2014-06-25 Thread 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.

PS I see You are from DK - I'm from Aalborg, You?

Michael


2014-06-25 20:31 GMT+02:00 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'
> >
> > I remember I had this problem before, and I remember that I solved it by
> deleting all pyc files  - I tried that - still error
> >
> > any clues?
>
>
> Try getting a backtrace:
>
> ./manage.py migrate myappname --traceback
>
>
> Erik
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/d6TT9Z6nDLI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4657E66A-9476-49A5-8EB1-BD2BEBA86049%40cederstrand.dk
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJrCdYBsCHdHm%2BJVnBho_FKM%3DOWB3Xu3iMODhFw9o9WzOS4vbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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'
> 
> I remember I had this problem before, and I remember that I solved it by 
> deleting all pyc files  - I tried that - still error
> 
> any clues?


Try getting a backtrace:

./manage.py migrate myappname --traceback


Erik

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4657E66A-9476-49A5-8EB1-BD2BEBA86049%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.


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

2014-06-25 Thread Michael Lind Hjulskov
Hi

Here's a bit more info about the error
this is the line 
<https://github.com/matthiask/south/blob/master/south/migration/base.py#L314> 
where it fails in south

Hope to get help

Thanks

Den onsdag den 25. juni 2014 16.19.08 UTC+2 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'
>
> I remember I had this problem before, and I remember that I solved it by 
> deleting all pyc files  - I tried that - still error
>
> any clues?
>
> Thank You
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/740a3b38-bca5-4514-9032-c181740228a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 files  - I tried that - still error

any clues?

Thank You

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/757031e8-0951-4d97-908c-ba0e9f9fd88e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2013-10-15 Thread Darion Yaphet
Great !!!
It's the point  and now successful

helloworld ➤ tree

.
|-- helloworld
|   |-- __init__.py
|   |-- __init__.pyc
|   |-- settings.py
|   |-- settings.pyc
|   |-- urls.py
|   `-- wsgi.py
`-- manage.py

1 directory, 7 files

thanks a lot


2013/10/15 Leonardo Giordani 

> As I suspected, there is a problem with the logging module, which is
> probably shadowed, i.e. when Django performs "import logging" it imports a
> different module.
> Try the following: exactly where you execute the manage.py open an
> interactive Python shell and do
>
> >>> import logging
> >>> print logging.__file__
>
> This should hopefully show us what logging is working behind the scenes.
> Try and post the results
>
> Leo
>
>
> Leonardo Giordani
> Author 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>
>
>
> 2013/10/15 Darion Yaphet 
>
>>  the output  exception info as following :
>>
>> ~ ➤ python /usr/bin/django-admin.py startproject hello --traceback
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
>> line 222, in run_from_argv
>> self.execute(*args, **options.__dict__)
>>File
>> "/usr/lib/python2.7/site-packages/django/core/management/base.py", line
>> 255, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py",
>> line 31, in handle
>> super(Command, self).handle('project', project_name, target,
>> **options)
>>   File
>> "/usr/lib/python2.7/site-packages/django/core/management/templates.py",
>> line 123, in handle
>> settings.configure()
>>   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
>> logging_config_func(DEFAULT_LOGGING)
>>   File "/usr/lib/python2.7/site-packages/django/utils/dictconfig.py",
>> line 555, in dictConfig
>> dictConfigClass(config).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 Leonardo Giordani 
>>
>>>  Ok, can you please try to traceback the command and post the results?
>>>
>>> python django-admin.py startproject hello --traceback
>>>
>>>
>>>
>>>  Leonardo Giordani
>>> Author 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>
>>>
>>>
>>> 2013/10/15 Darion Yaphet 
>>>
>>>>  ok I built Django 1.5.3  on  fedora 18  and  don't use virtualenv
>>>>
>>>>
>>>> 2013/10/14 Leonardo Giordani 
>>>>
>>>>> Please give me the information I asked you, otherwise I cannot figure
>>>>> out what kind of problem you have.
>>>>>
>>>>> Are you using a virtualenv? In that case, can you post the list of
>>>>> packages you installed? If not, can you give details about the OS you are
>>>>> working on?
>>>>>
>>>>> Leonardo Giordani
>>>>> Author 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>
>>>>>
>>>>>
>>>>> 2013/10/14 Darion Yaphet 
>>>>>
>>>>>>  Python  2.7.3 and Django is 1.5.3 ..
>>>>>>
>>>>>>
>>>>>> 2013/10/14 Leonardo Giordani 
>>>>>>
>>>>>>> Hi, are you using a virtualenv? In that case, can you post the list
>>>>>>>

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

2013-10-15 Thread Leonardo Giordani
As I suspected, there is a problem with the logging module, which is
probably shadowed, i.e. when Django performs "import logging" it imports a
different module.
Try the following: exactly where you execute the manage.py open an
interactive Python shell and do

>>> import logging
>>> print logging.__file__

This should hopefully show us what logging is working behind the scenes.
Try and post the results

Leo


Leonardo Giordani
Author 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>


2013/10/15 Darion Yaphet 

> the output  exception info as following :
>
> ~ ➤ python /usr/bin/django-admin.py startproject hello --traceback
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
> line 222, in run_from_argv
> self.execute(*args, **options.__dict__)
>File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
> line 255, in execute
> output = self.handle(*args, **options)
>   File
> "/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py",
> line 31, in handle
> super(Command, self).handle('project', project_name, target, **options)
>   File
> "/usr/lib/python2.7/site-packages/django/core/management/templates.py",
> line 123, in handle
> settings.configure()
>   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
> logging_config_func(DEFAULT_LOGGING)
>   File "/usr/lib/python2.7/site-packages/django/utils/dictconfig.py", line
> 555, in dictConfig
> dictConfigClass(config).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 Leonardo Giordani 
>
>> Ok, can you please try to traceback the command and post the results?
>>
>> python django-admin.py startproject hello --traceback
>>
>>
>>
>>  Leonardo Giordani
>> Author 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>
>>
>>
>> 2013/10/15 Darion Yaphet 
>>
>>>  ok I built Django 1.5.3  on  fedora 18  and  don't use virtualenv
>>>
>>>
>>> 2013/10/14 Leonardo Giordani 
>>>
>>>> Please give me the information I asked you, otherwise I cannot figure
>>>> out what kind of problem you have.
>>>>
>>>> Are you using a virtualenv? In that case, can you post the list of
>>>> packages you installed? If not, can you give details about the OS you are
>>>> working on?
>>>>
>>>> Leonardo Giordani
>>>> Author 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>
>>>>
>>>>
>>>> 2013/10/14 Darion Yaphet 
>>>>
>>>>>  Python  2.7.3 and Django is 1.5.3 ..
>>>>>
>>>>>
>>>>> 2013/10/14 Leonardo Giordani 
>>>>>
>>>>>> Hi, are you using a virtualenv? In that case, can you post the list
>>>>>> of packages you installed? If not, can you give details about the OS you
>>>>>> are working on, Django version, and so on?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Leo
>>>>>>
>>>>>> Leonardo Giordani
>>>>>> Author 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>
>>>>>>
>>>>>>
>>>>>&g

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

2013-10-15 Thread Darion Yaphet
the output  exception info as following :

~ ➤ python /usr/bin/django-admin.py startproject hello --traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
line 222, in run_from_argv
self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
line 255, in execute
output = self.handle(*args, **options)
  File
"/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py",
line 31, in handle
super(Command, self).handle('project', project_name, target, **options)
  File
"/usr/lib/python2.7/site-packages/django/core/management/templates.py",
line 123, in handle
settings.configure()
  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
logging_config_func(DEFAULT_LOGGING)
  File "/usr/lib/python2.7/site-packages/django/utils/dictconfig.py", line
555, in dictConfig
dictConfigClass(config).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 Leonardo Giordani 

> Ok, can you please try to traceback the command and post the results?
>
> python django-admin.py startproject hello --traceback
>
>
>
>  Leonardo Giordani
> Author 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>
>
>
> 2013/10/15 Darion Yaphet 
>
>>  ok I built Django 1.5.3  on  fedora 18  and  don't use virtualenv
>>
>>
>> 2013/10/14 Leonardo Giordani 
>>
>>> Please give me the information I asked you, otherwise I cannot figure
>>> out what kind of problem you have.
>>>
>>> Are you using a virtualenv? In that case, can you post the list of
>>> packages you installed? If not, can you give details about the OS you are
>>> working on?
>>>
>>> Leonardo Giordani
>>> Author 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>
>>>
>>>
>>> 2013/10/14 Darion Yaphet 
>>>
>>>>  Python  2.7.3 and Django is 1.5.3 ..
>>>>
>>>>
>>>> 2013/10/14 Leonardo Giordani 
>>>>
>>>>> Hi, are you using a virtualenv? In that case, can you post the list of
>>>>> packages you installed? If not, can you give details about the OS you are
>>>>> working on, Django version, and so on?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Leo
>>>>>
>>>>> Leonardo Giordani
>>>>> Author 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>
>>>>>
>>>>>
>>>>> 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'
>>>>>>
>>>>>> what is it 
>>>>>>
>>>>>> --
>>>>>> 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 email to django-users@googlegroups.com.
>>>>>> Visit this group at http://groups.google.com/group/django-users.
>>>>>> To view this discussion on the web visit
>>>>&g

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

2013-10-14 Thread Leonardo Giordani
Ok, can you please try to traceback the command and post the results?

python django-admin.py startproject hello --traceback



Leonardo Giordani
Author 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>


2013/10/15 Darion Yaphet 

> ok I built Django 1.5.3  on  fedora 18  and  don't use virtualenv
>
>
> 2013/10/14 Leonardo Giordani 
>
>> Please give me the information I asked you, otherwise I cannot figure out
>> what kind of problem you have.
>>
>> Are you using a virtualenv? In that case, can you post the list of
>> packages you installed? If not, can you give details about the OS you are
>> working on?
>>
>> Leonardo Giordani
>> Author 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>
>>
>>
>> 2013/10/14 Darion Yaphet 
>>
>>>  Python  2.7.3 and Django is 1.5.3 ..
>>>
>>>
>>> 2013/10/14 Leonardo Giordani 
>>>
>>>> Hi, are you using a virtualenv? In that case, can you post the list of
>>>> packages you installed? If not, can you give details about the OS you are
>>>> working on, Django version, and so on?
>>>>
>>>> Regards,
>>>>
>>>> Leo
>>>>
>>>> Leonardo Giordani
>>>> Author 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>
>>>>
>>>>
>>>> 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'
>>>>>
>>>>> what is it 
>>>>>
>>>>> --
>>>>> 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 email to django-users@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/a6024b53-9203-4e25-9202-d2cdf017e5a0%40googlegroups.com
>>>>> .
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>>  --
>>>> 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 email to django-users@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAEhE%2BO%3Dr_nPHCA4T3N1hX8--be1R9SMtB%3Deaa_5cFsPCravawg%40mail.gmail.com
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>> long is the way and hard  that out of Hell leads up to light
>>>
>>>  --
>>> 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 email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAO

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

2013-10-14 Thread Darion Yaphet
ok I built Django 1.5.3  on  fedora 18  and  don't use virtualenv


2013/10/14 Leonardo Giordani 

> Please give me the information I asked you, otherwise I cannot figure out
> what kind of problem you have.
>
> Are you using a virtualenv? In that case, can you post the list of
> packages you installed? If not, can you give details about the OS you are
> working on?
>
> Leonardo Giordani
> Author 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>
>
>
> 2013/10/14 Darion Yaphet 
>
>>  Python  2.7.3 and Django is 1.5.3 ..
>>
>>
>> 2013/10/14 Leonardo Giordani 
>>
>>> Hi, are you using a virtualenv? In that case, can you post the list of
>>> packages you installed? If not, can you give details about the OS you are
>>> working on, Django version, and so on?
>>>
>>> Regards,
>>>
>>> Leo
>>>
>>> Leonardo Giordani
>>> Author 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>
>>>
>>>
>>> 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'
>>>>
>>>> what is it 
>>>>
>>>> --
>>>> 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 email to django-users@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/a6024b53-9203-4e25-9202-d2cdf017e5a0%40googlegroups.com
>>>> .
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  --
>>> 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 email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAEhE%2BO%3Dr_nPHCA4T3N1hX8--be1R9SMtB%3Deaa_5cFsPCravawg%40mail.gmail.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>>
>>
>>
>> long is the way and hard  that out of Hell leads up to light
>>
>>  --
>> 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 email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAOHWcC%2BjyqOZBjqSYVHYNZm7vbixRiWtBQ2dvteYLdv%3DNhyi6w%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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 email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEhE%2BO%3D-D_WzBa4_Lis4Bppak-czSKG9D60b91b7GFSWvnWM%2Bw%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 


long is the way and hard  that out of Hell leads up to light

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOHWcCLGk_MTSTd%2BLXPdu90kYva%3D5v2Gmgp85QxGtU%2BE4EH%2B8A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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

2013-10-14 Thread Leonardo Giordani
Please give me the information I asked you, otherwise I cannot figure out
what kind of problem you have.

Are you using a virtualenv? In that case, can you post the list of packages
you installed? If not, can you give details about the OS you are working on?

Leonardo Giordani
Author 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>


2013/10/14 Darion Yaphet 

> Python  2.7.3 and Django is 1.5.3 ..
>
>
> 2013/10/14 Leonardo Giordani 
>
>> Hi, are you using a virtualenv? In that case, can you post the list of
>> packages you installed? If not, can you give details about the OS you are
>> working on, Django version, and so on?
>>
>> Regards,
>>
>> Leo
>>
>> Leonardo Giordani
>> Author 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>
>>
>>
>> 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'
>>>
>>> what is it 
>>>
>>> --
>>> 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 email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/a6024b53-9203-4e25-9202-d2cdf017e5a0%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>> 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 email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAEhE%2BO%3Dr_nPHCA4T3N1hX8--be1R9SMtB%3Deaa_5cFsPCravawg%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
>
>
> long is the way and hard  that out of Hell leads up to light
>
>  --
> 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 email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOHWcC%2BjyqOZBjqSYVHYNZm7vbixRiWtBQ2dvteYLdv%3DNhyi6w%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEhE%2BO%3D-D_WzBa4_Lis4Bppak-czSKG9D60b91b7GFSWvnWM%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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

2013-10-14 Thread Darion Yaphet
Python  2.7.3 and Django is 1.5.3 ..


2013/10/14 Leonardo Giordani 

> Hi, are you using a virtualenv? In that case, can you post the list of
> packages you installed? If not, can you give details about the OS you are
> working on, Django version, and so on?
>
> Regards,
>
> Leo
>
> Leonardo Giordani
> Author 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>
>
>
> 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'
>>
>> what is it 
>>
>> --
>> 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 email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a6024b53-9203-4e25-9202-d2cdf017e5a0%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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 email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEhE%2BO%3Dr_nPHCA4T3N1hX8--be1R9SMtB%3Deaa_5cFsPCravawg%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 


long is the way and hard  that out of Hell leads up to light

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOHWcC%2BjyqOZBjqSYVHYNZm7vbixRiWtBQ2dvteYLdv%3DNhyi6w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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

2013-10-14 Thread Leonardo Giordani
Hi, are you using a virtualenv? In that case, can you post the list of
packages you installed? If not, can you give details about the OS you are
working on, Django version, and so on?

Regards,

Leo

Leonardo Giordani
Author 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>


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'
>
> what is it 
>
> --
> 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 email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a6024b53-9203-4e25-9202-d2cdf017e5a0%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEhE%2BO%3Dr_nPHCA4T3N1hX8--be1R9SMtB%3Deaa_5cFsPCravawg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a6024b53-9203-4e25-9202-d2cdf017e5a0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: custom management commands: AttributeError: 'module' object has no attribute 'Command'

2012-08-13 Thread Kurtis Mullins
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
> 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 wrote:
>>
>> Since I don't see anything wrong with your code or setup, I'm going to
>> take a stab in the dark and say that you need to loose the underscore in
>> the command.
>>
>
> Toodle-looo
> creedcode
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/IyKV_xgNgOcJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: custom management commands: AttributeError: 'module' object has no attribute 'Command'

2012-08-13 Thread creecode
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 wrote: 
>
> Since I don't see anything wrong with your code or setup, I'm going to 
> take a stab in the dark and say that you need to loose the underscore in 
> the command.
>

Toodle-looo
creedcode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/IyKV_xgNgOcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: custom management commands: AttributeError: 'module' object has no attribute 'Command'

2012-08-12 Thread Melvyn Sopacua
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.
> 
> Am I overlooking something here? Any help is appreciated, thanks!

Since I don't see anything wrong with your code or setup, I'm going to
take a stab in the dark and say that you need to loose the underscore in
the command.
Otherwise, please provide the *full* traceback for more clues.

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



custom management commands: AttributeError: 'module' object has no attribute 'Command'

2012-08-10 Thread Matthew Meyer
 

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 attribute 'Command'

Here is the file:

#event_expiration.py
from django.core.management.base import BaseCommand, CommandError
from app.models import Event
import datetime

class Command(BaseCommand):
help = 'deletes expired events'

def handle(self, *args, **options):

today = datetime.datetime.now()
events = Event.objects.filter(date=datetime.date(2011,11,11))

for e in events:
e.delete()

self.stdout.write('Expired events successfully deleted.')

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.

Am I overlooking something here? Any help is appreciated, thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/hG2tkLMfDO0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2012-01-27 Thread MURUGESAN
I am new bee to Django. Can some one help me what is below error and
how to solve?

C:\PythonExamples\compass>python manage.py runserver 18080
Traceback (most recent call last):
  File "manage.py", line 14, in ?
execute_manager(settings)
  File "C:\Program Files\Python24\lib\site-packages\django\core
\management\__init__.py", line 438, in execute_manager
utility.execute()
  File "C:\Program Files\Python24\lib\site-packages\django\core
\management\__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Program Files\Python24\lib\site-packages\django\core
\management\base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
  File "C:\Program Files\Python24\lib\site-packages\django\core
\management\base.py", line 209, in execute
translation.activate('en-us')
  File "C:\Program Files\Python24\lib\site-packages\django\utils
\translation\__init__.py", line 100, in activate
return _trans.activate(language)
  File "C:\Program Files\Python24\lib\site-packages\django\utils
\translation\__init__.py", line 43, in __getattr__
if settings.USE_I18N:
  File "C:\Program Files\Python24\lib\site-packages\django\utils
\functional.py", line 276, in __getattr__
self._setup()
  File "C:\Program Files\Python24\lib\site-packages\django\conf
\__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
  File "C:\Program Files\Python24\lib\site-packages\django\conf
\__init__.py", line 139, in __init__
logging_config_func(self.LOGGING)
  File "C:\Program Files\Python24\lib\site-packages\django\utils
\dictconfig.py", line 553, in dictConfig
dictConfigClass(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 M

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest), AttributeError: 'module' object has no attribute 'handler500'

2011-07-07 Thread David Markey
Anyone any ideas? Is this a bug in 1.2.5?

On 3 July 2011 12:52, David Markey  wrote:

> Anyone any idea how to fix this, in my urls.py im explicitly doing:
>
> from django.conf.urls.defaults import handler404, handler500, include,
> patterns, url
>
>
> ==
> ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest)
> --
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/contrib/auth/tests/views.py",
> line 270, in test_14377
> response = self.client.get('/logout/')
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/test/client.py",
> line 305, in get
> response = self.request(**r)
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/test/client.py",
> line 245, in request
> response = self.handler(environ)
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/test/client.py",
> line 79, in __call__
> response = self.get_response(request)
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/core/handlers/base.py",
> line 141, in get_response
> return self.handle_uncaught_exception(request, resolver,
> sys.exc_info())
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/core/handlers/base.py",
> line 179, in handle_uncaught_exception
> callback, param_dict = resolver.resolve500()
>   File
> "/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 _resolve_special
> callback = getattr(self.urlconf_module, 'handler%s' % view_type)
> AttributeError: 'module' object has no attribute 'handler500'
>
> --
> Ran 21 tests in 0.481s
>
> Thanks...
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest), AttributeError: 'module' object has no attribute 'handler500'

2011-07-03 Thread David Markey
Anyone any idea how to fix this, in my urls.py im explicitly doing:

from django.conf.urls.defaults import handler404, handler500, include,
patterns, url


==
ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest)
--
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/contrib/auth/tests/views.py",
line 270, in test_14377
response = self.client.get('/logout/')
  File
"/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/test/client.py",
line 305, in get
response = self.request(**r)
  File
"/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/test/client.py",
line 245, in request
response = self.handler(environ)
  File
"/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/test/client.py",
line 79, in __call__
response = self.get_response(request)
  File
"/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/core/handlers/base.py",
line 141, in get_response
return self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File
"/usr/local/lib/python2.7/dist-packages/Django-1.2.5-py2.7.egg/django/core/handlers/base.py",
line 179, in handle_uncaught_exception
callback, param_dict = resolver.resolve500()
  File
"/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 _resolve_special
    callback = getattr(self.urlconf_module, 'handler%s' % view_type)
AttributeError: 'module' object has no attribute 'handler500'

--
Ran 21 tests in 0.481s

Thanks...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2011-02-01 Thread Karen Tracey
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
related to this message: http://code.djangoproject.com/ticket/13603.)

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@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



AttributeError 'module' object has no attribute '__path'

2011-02-01 Thread gintare
I searched all help,
could not find a solution.

Windows7
python and django runs from cmd

1) to run python
c:\Python27\python

2)to run django and to create the project

c:\Python27\python  c:\Python27\Scripts\django-admin.py   startproject
Spokas

THERE is an error while trying to create tables 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:\amber\Spokas
None of directories nor none of their combination gave the result.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2010-01-18 Thread abs
Trying to start dev server of django on mac os x with postresql
database.

bash-3.2$ ./manage.py runserver
Validating models...
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/django/core/management/
commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
  File "/Library/Python/2.6/site-packages/django/core/management/
base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
  File "/Library/Python/2.6/site-packages/django/core/management/
validation.py", line 22, in get_validation_errors
from django.db import models, connection
  File "/Library/Python/2.6/site-packages/django/db/__init__.py", line
74, in 
connection = connections[DEFAULT_DB_ALIAS]
  File "/Library/Python/2.6/site-packages/django/db/utils.py", line
75, in __getitem__
backend = load_backend(db['ENGINE'])
  File "/Library/Python/2.6/site-packages/django/db/utils.py", line
20, in load_backend
return import_module('.base', backend_name)
  File "/Library/Python/2.6/site-packages/django/utils/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 'DatabaseError'

Any ideas? :)
-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




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 "import django; print django.get_version()"
1.0.2 final

The broken server;
0.97-pre-SVN-7862

Once i updated it, it all works fine.

Hope this helps someone,

D

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



AttributeError: 'module' object has no attribute

2008-07-22 Thread Tom

From: Morgan Packard  gmail.com>
Subject: newbie -- hiccups in following tutorial
Newsgroups: gmane.comp.python.django.user
Date: 2008-07-22 09:02:56 GMT (13 hours and 48 minutes ago)

Hello all,

I'm going through the tutorial at 
http://www.djangoproject.com/documentation/tutorial01/,
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: 'module' object has no attribute
'site'

Everything else has worked perfectly up to this point.  This is how my
models.py looks:


from django.db import models
from django.contrib import admin
import datetime

class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')

def __unicode__(self):
return self.question

def was_published_today(self):
return self.pub_date.date() == datetime.date.today()

class Choice(models.Model):
poll = models.ForeignKey(Poll)
choice = models.CharField(max_length=200)
votes = models.IntegerField()
def __unicode__(self):
return self.choice

admin.site.register(Poll)


One possible clue is the fact that the urls.py Django generated for me
differes from the one in the tutorial. The urls.py Django gave me is
missing the following lines which are shown in the tutorial:


from django.contrib import admin
admin.autodiscover()


thanks so much!

-Morgan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



AttributeError: 'module' object has no attribute

2007-07-31 Thread [EMAIL PROTECTED]

Hello,

I keep getting this error and I can't seem to track where it is coming
from. I am working with django-0.91.  I had a calendar app that was
installed but I commented calendar out in my installed apps and
commented it out in the urlpatterns. So there should be no reason why
this is trying 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.

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


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 I want to?
>
> Well... this depends on exactly what sort of initialization do you
> want to do. I'm still a little unclear on what you want to initialize,
> and why this initialization needs to be done on module load, rather
> than model synchronization, model definition or instance
> instantiation).

Thanks Russ, I figured it out. It didn't really need to be done on
module load - I was justy trying to do it as early as possible.
Anyway, model definition time is fine, and when I moved the code from
__init__.py to models.py, the problems went away.

Best regards,

Vinay Sajip


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 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 I want to?

Well... this depends on exactly what sort of initialization do you
want to do. I'm still a little unclear on what you want to initialize,
and why this initialization needs to be done on module load, rather
than model synchronization, model definition or instance
instantiation).

Yours,
Russ Magee %-)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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

2007-03-29 Thread Vinay Sajip

I created a vanilla project using 'django-admin.py startproject
mysite' and then created a vanilla app in mysite using 'manage.py
startapp myapp'. I ensured that 'mysite.myapp' was added to
mysite.settings.INSTALLED_APPS, and also updated some other settings
in mysite.settings.py. All well and good.

Now, myapp is the package for my application, and so in its
__init__.py, I want to do some setting up. I wanted some information
from the User model in django.contrib.auth.models, and so I imported
django.contrib.auth.models - this led to an error, though I was able
to import django.contrib.auth without any problems.

With the following myapp/__init__.py:

import django.contrib.auth
print django.contrib.auth
#import django.contrib.auth.models

When I ran 'manage.py diffsettings', I got the following output, as
expected
(please excuse line-wrap if it happens):

[EMAIL PROTECTED]:~/projects/mysite$ ./manage.py diffsettings

DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '/home/vinay/projects/mysite.db'
DEBUG = True
INSTALLED_APPS = ['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sites', 'mysite.myapp']
LANGUAGE_CODE = 'en-gb'
MIDDLEWARE_CLASSES = ('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
ROOT_URLCONF = 'mysite.urls'  ###
SECRET_KEY = 'u_wf!1^!3y7iz!)=3cs8-=clsg^#g&2y16cavha2!fca3macrw'
SETTINGS_MODULE = 'mysite.settings'  ###
SITE_ID = 1  ###
TEMPLATE_DEBUG = True
TIME_ZONE = 'Europe/London'

However, uncommenting the last line in myapp/__init__.py and running
'manage.py
diffsettings' led to an error:

[EMAIL PROTECTED]:~/projects/mysite$ ./manage.py diffsettings

Traceback (most recent call last):
  File "./manage.py", line 11, in ?
execute_manager(settings)
  File "/usr/lib/python2.4/site-packages/django/core/management.py",
line 1680, in execute_manager
execute_from_command_line(action_mapping, argv)
  File "/usr/lib/python2.4/site-packages/django/core/management.py",
line 1572, in execute_from_command_line
translation.activate('en-us')
  File
"/usr/lib/python2.4/site-packages/django/utils/translation/
trans_real.py", line 195, in activate
_active[currentThread()] = translation(language)
  File
"/usr/lib/python2.4/site-packages/django/utils/translation/
trans_real.py", line 184, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File
"/usr/lib/python2.4/site-packages/django/utils/translation/
trans_real.py", line
167, in _fetch
app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])
  File "/home/vinay/projects/mysite/../mysite/myapp/__init__.py", line
3, in ?
import django.contrib.auth.models
  File "/usr/lib/python2.4/site-packages/django/contrib/auth/
models.py", line 4,
in ?
from django.contrib.contenttypes.models import ContentType
  File "/usr/lib/python2.4/site-packages/django/contrib/contenttypes/
models.py",
line 33, in ?
class ContentType(models.Model):
  File "/usr/lib/python2.4/site-packages/django/db/models/base.py",
line 30, in
__new__
new_class.add_to_class('_meta', Options(attrs.pop('Meta', None)))
  File "/usr/lib/python2.4/site-packages/django/db/models/base.py",
line 169, in
add_to_class
value.contribute_to_class(cls, name)
  File "/usr/lib/python2.4/site-packages/django/db/models/options.py",
line 53,
in contribute_to_class
setattr(self, 'verbose_name_plural',
meta_attrs.pop('verbose_name_plural',
self.verbose_name + 's'))
  File "/usr/lib/python2.4/site-packages/django/utils/functional.py",
line 42,
in __wrapper__
res = self.__func(*self.__args, **self.__kw)
  File
"/usr/lib/python2.4/site-packages/django/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
"/usr/lib/python2.4/site-packages/django/utils/translation/
trans_real.py", line
167, in _fetch
app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])
AttributeError: 'module' object has no attribute 'myapp'

Now, why should this be? The traceback is mystifying to me - can
anyone shed any
light? I certainly want, in myapp's setup, to do some things based on
django.contrib.auth.models

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 really don't want to upgrade the package.
>
> So if anyone know about a mod-python 3.2.8 package that would work
> properly for Ubuntu Dapper I'd surely appreciate it.

You might be able to fudge it to get around the mod_python problem with
that version. Use the PythonImport directive to force import the
modules at Apache child process startup.

  PythonImport django.contrib.auth
  etc ...

It just so happens that the PythonImport directive in that version
underneath does the equivalent of using the "import" statement, thus
bypassing the flawed behaviour of the mod_python.apache.import_module()
function that the Python*Handler directives use.

The PythonImport directive must be at global scope within Apache
configuration.

Graham


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



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.

So if anyone know about a mod-python 3.2.8 package that would work
properly for Ubuntu Dapper I'd surely appreciate it.

Kind regards, Stefan Freyr.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



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

2006-10-05 Thread Graham Dumpleton


[EMAIL PROTECTED] wrote:
> Hello. I'm trying to get Apache to authenticate users using Django's
> user database but I'm getting the above error (the whole apache error
> log is at the bottom of the message).
>
> I've set up my project and created users using the Django development
> server so the database connection is working from there.
>
> Hoping that someone can help.
>
> Kind regards, Stefan Freyr.
>
> I have added the auth application to my settings.py file:
> INSTALLED_APPS = (
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'django.contrib.admin',
> 'svac.projectmgmt',
> )
>
> My relevant part of the apache config file looks like this:
> Alias /test/ /root/test_www/
> 
> Options FollowSymLinks
> AllowOverride None
>
> AuthName"test access"
> AuthTypeBasic
>
> Require valid-user
>
> SetHandler python-program
>
> PythonPath "[r'/root/svac-prj/'] + sys.path"
>
> # I've tried both ways of setting DJANGO_SETTINGS_MODULE, there
> seems to be no difference
> #SetEnv DJANGO_SETTINGS_MODULE svac.settings
> PythonOption DJANGO_SETTINGS_MODULE svac.settings
>
> 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]
> PythonAuthenHandler django.contrib.auth.handlers.modpython: Traceback
> ...
> [Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
> PythonAuthenHandler django.contrib.auth.handlers.modpython:
> AttributeError: 'module' object has no attribute 'auth'

Possibly related to this problem:

  http://issues.apache.org/jira/browse/MODPYTHON-12

If you are using a version of mod_python older than 3.2.7, then
upgrade mod_python.

Graham


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



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

2006-10-05 Thread [EMAIL PROTECTED]

Hello. I'm trying to get Apache to authenticate users using Django's
user database but I'm getting the above error (the whole apache error
log is at the bottom of the message).

I've set up my project and created users using the Django development
server so the database connection is working from there.

Hoping that someone can help.

Kind regards, Stefan Freyr.

I have added the auth application to my settings.py file:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'svac.projectmgmt',
)

My relevant part of the apache config file looks like this:
Alias /test/ /root/test_www/

Options FollowSymLinks
AllowOverride None

AuthName"test access"
AuthTypeBasic

Require valid-user

SetHandler python-program

PythonPath "[r'/root/svac-prj/'] + sys.path"

# I've tried both ways of setting DJANGO_SETTINGS_MODULE, there
seems to be no difference
#SetEnv DJANGO_SETTINGS_MODULE svac.settings
PythonOption DJANGO_SETTINGS_MODULE svac.settings

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]
PythonAuthenHandler django.contrib.auth.handlers.modpython: Traceback
(most recent call last):
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch\nresult = object(req)
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/django/contrib/auth/handlers/modpython.py",
line 24, in authenhandler\nfrom django.contrib.auth.models import
User
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/django/contrib/auth/models.py", line
4, in ?\nfrom django.contrib.contenttypes.models import ContentType
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/django/contrib/contenttypes/models.py",
line 17, in ?\nclass ContentType(models.Model):
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/django/db/models/base.py", line 29,
in __new__\nnew_class.add_to_class('_meta',
Options(attrs.pop('Meta', None)))
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/django/db/models/base.py", line 135,
in add_to_class\nvalue.contribute_to_class(cls, name)
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/django/db/models/options.py", line
53, in contribute_to_class\nsetattr(self, 'verbose_name_plural',
meta_attrs.pop('verbose_name_plural', self.verbose_name + 's'))
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:   File
"/usr/lib/python2.4/site-packages/django/utils/functional.py", line 42,
in __wrapper__\nres = self.__func(*self.__args, **self.__kw)
[Thu Oct 05 15:46: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 255, in gettext\n_default =
translation(settings.LANGUAGE_CODE)
[Thu Oct 05 15:46: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 184, in translation\ndefault_translation =
_fetch(settings.LANGUAGE_CODE)
[Thu Oct 05 15:46: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:])
[Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108]
PythonAuthenHandler django.contrib.auth.handlers.modpython:
AttributeError: 'module' object has no attribute 'auth'


--~

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 email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



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

2006-08-06 Thread Todd O'Bryan

It looks like you didn't get rid of the older version (notice the  
0.90) and the path is confused.

Try deleting the old version from your site-packages, making sure  
that whatever version of django-admin.py you're running in pointing  
at the right place, and give it another go.

Todd

On Aug 6, 2006, at 5:44 PM, [EMAIL PROTECTED] wrote:

>
> I've had Django working before so I'm a bit confused by this.  What
> makes it all the more unusual is I've done a Google search and not  
> come
> across anyone else who's had this issue.  I get htis error message  
> when
> I attempt to "startproject" straight after a fresh install on Windows
> XP of Django 0.95.
> -- 
> ---
> Traceback (most recent call 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'
> -- 
> ---
>
> Does anyone know of a solution?
>
> I'd be very grateful
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



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

2006-08-06 Thread [EMAIL PROTECTED]

I've had Django working before so I'm a bit confused by this.  What
makes it all the more unusual is I've done a Google search and not come
across anyone else who's had this issue.  I get htis error message when
I attempt to "startproject" straight after a fresh install on Windows
XP of Django 0.95.
-
Traceback (most recent call 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'
-

Does anyone know of a solution?

I'd be very grateful


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---