Re: ImproperlyConfigured:

2021-06-30 Thread Abdoulaye Koumaré
f.create_connection(alias) > File > "/home/yogesh/mydjango/djangoenv/lib/python3.6/site-packages/django/db/utils.py", > > line 204, in create_connection > backend = load_backend(db['ENGINE']) > File > "/home/yogesh/mydjango/djangoenv/lib/python3.6/site-

ImproperlyConfigured:

2021-06-29 Thread Yogesh Pawar
db/utils.py", line 204, in create_connection backend = load_backend(db['ENGINE']) File "/home/yogesh/mydjango/djangoenv/lib/python3.6/site-packages/django/db/utils.py", line 111, in load_backend return import_module('%s.base' % backend_name) File "/usr/lib64/pytho

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
Ok, i finally found where the problem was : the admin class (UserAdmin) of my custom user class was in models.py and must be in admin.py. I found the solution here : https://stackoverflow.com/questions/45783147/django-lookuperror-app-accounts-doesnt-have-a-user-model -- You received this

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
An additional information : the settings.py was generated with Django 1.9.7 Le lundi 30 octobre 2017 08:35:44 UTC+1, cjacq...@gmail.com a écrit : > > > Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) : > > INSTALLED_APPS = [ > #django > 'django.contrib.admin', >

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) : INSTALLED_APPS = [ #django 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles',

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread James Schneider
> > File "/Library/Python/2.7/site-packages/django/contrib/auth/forms.py", > line 22, in > UserModel = get_user_model() > File "/Library/Python/2.7/site-packages/django/contrib/auth/__init__.py", > line 198, in get_user_model > "AUTH_USER_MODEL refers to model '%s' that has not been

Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-29 Thread cjacquemet
Hi everyone, I'm trying to update Django from 1.10.8 to 1.11.6 but it raise me an error. I just update Django with pip. I use Python 2.7.11 and Mac OS X and everything was working on Django 1.10.8. Traceback (most recent call last): File

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2016-01-25 Thread amarshall
Been a while.I forgot if I solved it using that. However I did create different environments using env wrapper and do an uninstall of old django and complete install to the newest version. Fixing small errors as they arise. On Saturday, May 30, 2015 at 10:21:45 AM UTC-4, dc wrote: > > Were you

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-05-30 Thread dc
Were you able to solve the problem @amarshall? I have the exact same error, do let me know please! On Tuesday, March 31, 2015 at 8:04:23 PM UTC+5:30, Filipe Ximenes wrote: > > Thats strange. > Are you using pip to install dependencies? Try uninstalling everything and > reinstalling again. >

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread Filipe Ximenes
Thats strange. Are you using pip to install dependencies? Try uninstalling everything and reinstalling again. Make sure INSTALLED_APPS is not being defined somewhere else in the code. Does the error persists if you set DEBUG = False locally? On Tue, Mar 31, 2015 at 10:21 AM, amarshall

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread amarshall
Hi Filipe, I have few apps installed. When I comment out the tastypie line my app builds but gets an error in production because tastypie app isn't found. Here it is: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread Filipe Ximenes
Can you show us your INSTALED_APPS? It may be the case you have a lot of apps installed and is not seeing a duplicate reference to tastypie. On Mar 29, 2015 9:43 PM, "amarshall" wrote: > Hi, > > So I updated my django project from django 1.6 to 1.7.7 and when I run >

Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-29 Thread amarshall
Hi, So I updated my django project from django 1.6 to 1.7.7 and when I run "python manage.py migrate" I get this error stating that I have a duplicate label. Here's the traceback Creating tables... Installing custom SQL... Installing indexes... Running migrations: Applying

Django and pydoc - ImproperlyConfigured

2015-02-24 Thread Gergely Polonkai
Hello, I'm trying to document my own webpage's code so I will remember each piece if I have to touch it later. I added docstrings to several functions already, and while this is generally enough, I couldn't help but tried pydoc blog.models.Post What I got instead of the craved documents was an

Re: Error: ImproperlyConfigured: The SECRET_KEY setting must not be empty

2014-06-24 Thread Lachlan Musicman
AM, Rini Michael <rinzyra...@gmail.com> wrote: >> Hi, >> i was trying to install django_cron using pip install django_cron,but >> unfortunately >> now i find a error as >> ImproperlyConfigured: The SECRET_KEY setting must not be empty >> can anybody h

Re: Error: ImproperlyConfigured: The SECRET_KEY setting must not be empty

2014-06-24 Thread Tom Evans
On Tue, Jun 24, 2014 at 9:59 AM, Rini Michael <rinzyra...@gmail.com> wrote: > Hi, > i was trying to install django_cron using pip install django_cron,but > unfortunately > now i find a error as > ImproperlyConfigured: The SECRET_KEY setting must not be empty

Error: ImproperlyConfigured: The SECRET_KEY setting must not be empty

2014-06-24 Thread Rini Michael
Hi, i was trying to install django_cron using pip install django_cron,but unfortunately now i find a error as ImproperlyConfigured: The SECRET_KEY setting must not be empty can anybody help me with this Thanks in advance regards, Rini -- You received this message because you are subscribed

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-04-03 Thread Lachlan Musicman
Are you using Debug toolbar? Try this: http://stackoverflow.com/questions/20963856/improperlyconfigured-the-included-urlconf-project-urls-doesnt-have-any-patte cheers L. On 4 April 2014 11:14, Max Demars <burton449...@gmail.com> wrote: > Greetings, > > I encounter the

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-04-03 Thread Max Demars
t; line 250, in resolve >for pattern in self.url_patterns: > > File > "/opt/app/venv/myapp/lib/python2.6/site-packages/django/core/urlresolvers.py", > > line 283, in _get_url_patterns >raise ImproperlyConfigured("The included urlconf %s doesn't have

Re: ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-17 Thread Начаров Михаил
You're welcome! You can also take a look to another python web-server. Especially if you want to have for example two sites with different version of python on the same server. When I wrote my first django-app on py3, I faced the same problem. 17.01.2014 15:34, Timothy W. Cook пишет: On

Re: ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-17 Thread Timothy W. Cook
On Fri, Jan 17, 2014 at 1:52 AM, Начаров Михаил wrote: > Hi Timothy, > > Note that your mod_wsgi module compiled for using python2.7. So what you > need now is install(compile) mod_wsgi for python3 instead of the > same module compiled for python2.7. > On Debian you

Re: ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-16 Thread Начаров Михаил
Hi Timothy, Note that your mod_wsgi module compiled for using python2.7. So what you need now is install(compile) mod_wsgi for python3 instead of the same module compiled for python2.7. On Debian you can do it by this command: $ sudo apt-get install libapache2-mod-wsgi-py3 16.01.2014

ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-16 Thread Timothy W. Cook
This question is also on Stackoverflow http://goo.gl/LinMue but I thought somene here may have an idea. I have a Django 1.5, Python 2.7 site running under Apache with mod_wsgi on a CentOS 6.4 server. I have rebuilt this site using Django 1.6 and Python 3.3. Deploying it to the same server and

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-01-02 Thread Ahmed Khan
Any progress on this? Does anyone know the causes? On Sunday, June 23, 2013 2:55:16 PM UTC+5, Pratik Mandrekar wrote: > > Has anyone been able to resolve this? > > I am facing the same issue. > > On Sunday, March 24, 2013 8:46:26 PM UTC+5:30, Dan Gentry wrote: >> >> Andrei, I once received this

ImproperlyConfigured DJANGO_SETTINGS_MODULE error when migrating from 1.5.1 to 1.6

2013-11-08 Thread Brian DeWeese
the wsgi. But with 1.6 it does get referenced and therefore raises an ImproperlyConfigured error. Does anyone have any suggestions to help fix this issue? Is there anyway I can get the settings module to load before the wsgi module? Brian DeWeese -- apache.conf -- WSGIScriptAlias / /opt/ecn

Re: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before access

2013-11-02 Thread hjwp
Weirdly I'm getting this error when I 'am' running manage.py. I'm doing something slightly weird, in that I'm using Popen from inside another python process to run python manage.py. Still, it worked a few weeks back and just started happening. Any tips on where to look to debug it? On

Re: ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Adrian Paul Ciobanita
mail.com > > >> Hello, i've been playing with Django 1.5.4 for some TDD tutorials, >> examples, and tried to also do the tutorial : >> https://docs.djangoproject.com/en/1.4/intro/tutorial02/#adding-related-objects >> BUT i keep receiving this error, as suggested

Re: ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Lucas Magnum
docs.djangoproject.com/en/1.4/intro/tutorial02/#adding-related-objects > BUT i keep receiving this error, as suggested in the Subject: > >> ImproperlyConfigured at /admin/polls/poll/add/ > > 'model' is a required attribute of 'PollAdmin.inlines[0]'. >> > > This is

ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Adrian Paul Ciobanita
Hello, i've been playing with Django 1.5.4 for some TDD tutorials, examples, and tried to also do the tutorial : https://docs.djangoproject.com/en/1.4/intro/tutorial02/#adding-related-objects BUT i keep receiving this error, as suggested in the Subject: > ImproperlyConfigured at /admin/po

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-19 Thread Daniel Roseman
On Thursday, 19 September 2013 08:21:49 UTC+1, Leo wrote: > A question to better understand your problem: do you use a custom User > model in Django 1.3? > Did you perhaps set the AUTH_USER_MODEL=auth.User in your settings.py? > There was no such thing as that setting in 1.3. It's new in 1.5.

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-19 Thread Leonardo Giordani
The way you are creating the DB is quite complicated, but I suspect that you are not syncing the base Django applications before doing your magic stuff. That could be the reason why Django is complaining about the auth.User not being installed. I would do the following: * settings.py with the

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-19 Thread Lauri Carpenter
Ok, I have found the problem (through digging through to post more information about it). It turns out that in our gui application, the gui-specific settings file was setting: INSTALLED_APPS = ( 'ncis_gui', 'ncis_sslauth', 'django_auth_ldap', ) and did not include the apps that

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-19 Thread Lauri Carpenter
More information: Interactively, I can get a user_model: $ python Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from django.contrib.auth import get_user_model >>>

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-19 Thread Lauri Carpenter
corators/cache.py" >> in _wrapped_view_func >> 89. response = view_func(request, *args, **kwargs) >> File "/usr/lib/python2.6/site-packages/django/contrib/auth/views.py" in >> login >> 53. form = authentication_form(request) &

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-19 Thread Lauri Carpenter
/lib/python2.6/site-packages/django/views/decorators/cache.py" >> in _wrapped_view_func >> 89. response = view_func(request, *args, **kwargs) >> File "/usr/lib/python2.6/site-packages/django/contrib/auth/views.py" in >> login >> 53. form

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-19 Thread Leonardo Giordani
> in _wrapped_view_func > 89. response = view_func(request, *args, **kwargs) > File "/usr/lib/python2.6/site-packages/django/contrib/auth/views.py" in > login > 53. form = authentication_form(request) > File "/usr/lib/python2.6/site-packages/djan

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-18 Thread Russell Keith-Magee
response = view_func(request, *args, **kwargs) > File "/usr/lib/python2.6/site-packages/django/contrib/auth/views.py" in > login > 53. form = authentication_form(request) > File "/usr/lib/python2.6/site-packages/django/contrib/auth/forms.py" in > __init__

Re: migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-18 Thread Daniel Roseman
w_func(request, *args, **kwargs) > File "/usr/lib/python2.6/site-packages/django/contrib/auth/views.py" in > login > 53. form = authentication_form(request) > File "/usr/lib/python2.6/site-packages/django/contrib/auth/forms.py" in > __init__ >

migrating from django 1.3.0 to 1.5.4, getting ImproperlyConfigured exceptions (AUTH_USER_MODEL refers to model 'auth.User' that has not been installed)

2013-09-18 Thread Lauri Carpenter
uth/forms.py" in __init__ 177. UserModel = get_user_model() File "/usr/lib/python2.6/site-packages/django/contrib/auth/__init__.py" in get_user_model 129. raise ImproperlyConfigured("AUTH_USER_MODEL refers to model '%s' that has not been installed"

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-06-23 Thread Pratik Mandrekar
Has anyone been able to resolve this? I am facing the same issue. On Sunday, March 24, 2013 8:46:26 PM UTC+5:30, Dan Gentry wrote: > > Andrei, I once received this error when the problem was actually in > another python module being imported - in my case views.py. Hope this > helps, Dan --

Re: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before access

2013-04-25 Thread Iftikhar Ali
> but while testing and pychecker i am getting this error how should i > configure DJANGO_SETTINGS_MODULE > -- 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

Re: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before access

2013-04-25 Thread Tom Evans
On Thu, Apr 25, 2013 at 2:56 PM, Iftikhar Ali wrote: > when i am running the project it is running perfectly fine but when i am > trying to open django-admin.py shell the error: Don;t use django-admin to launch the shell, only use django-admin to create projects¹. Once

ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing

2013-04-25 Thread Iftikhar Ali
when i am running the project it is running perfectly fine but when i am trying to open django-admin.py shell the error: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-03-24 Thread Dan Gentry
Andrei, I once received this error when the problem was actually in another python module being imported - in my case views.py. Hope this helps, Dan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-03-20 Thread Andrei
ite-packages/django/core/urlresolvers.py", > > line 283, in _get_url_patterns >raise ImproperlyConfigured("The included urlconf %s doesn't have any > patterns in it" % self.urlconf_name) > > ImproperlyConfigured: The included urlconf myapp.urls doesn't have any

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-02-15 Thread Andrei
pt/app/venv/myapp/lib/python2.6/site-packages/django/core/urlresolvers.py", >> >> line 250, in resolve >>for pattern in self.url_patterns: >> >> File >> "/opt/app/venv/myapp/lib/python2.6/site-packages/django/core/urlresolvers.py", >>

Re: Django-allauth: ImproperlyConfigured at /accounts/login/ No Facebook app configured: please add a SocialApp using the Django admin

2012-12-26 Thread Manu
Hi Gabriel, Thanks for replying. However, the issue, I think, came up because of the incorrect SITE_ID value in my settings.py. You can see the conversation at this stackoverflow thread.

Django-allauth: ImproperlyConfigured at /accounts/login/ No Facebook app configured: please add a SocialApp using the Django admin

2012-12-25 Thread Gabriel - Iulian Dumbrava
Hi Manu, Enter the admin and at allauth -> apps add a new application of type "Facebook" with your FB credentials. You have added a facebook login in settings.py but such a login type is not yet defined in admin. I hope this helps! Gabriel -- You received this message because you are

Django-allauth: ImproperlyConfigured at /accounts/login/ No Facebook app configured: please add a SocialApp using the Django admin

2012-12-24 Thread Manu
Hi, I'm facing this error when I access 'accounts/login/'. Posted a question here - http://stackoverflow.com/q/14019017/1218897 I would really appreciate any help with it. Thanks in advance. -Manu -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2012-12-03 Thread Garth Cumming
/python2.6/site-packages/django/core/urlresolvers.py", > > line 283, in _get_url_patterns >raise ImproperlyConfigured("The included urlconf %s doesn't have any > patterns in it" % self.urlconf_name) > > ImproperlyConfigured: The included urlconf myapp.urls doesn

Django throws ImproperlyConfigured error when loading URLconf on startup

2012-11-28 Thread Michael Dippery
e/urlresolvers.py", line 283, in _get_url_patterns raise ImproperlyConfigured("The included urlconf %s doesn't have any patterns in it" % self.urlconf_name) ImproperlyConfigured: The included urlconf myapp.urls doesn't have any patterns in it --- Others with this problem have c

Re: ImproperlyConfigured at /

2012-08-20 Thread Satinderpal Singh
On Mon, Aug 20, 2012 at 5:24 PM, Amyth Arora wrote: > Hey, Thanks for the kind help. > > seems you are using django 1.4. FYI -> Yes, you are right. > django.template.loaders.app_directories.load_template_source has been > deprecated so you should rather use >

Re: ImproperlyConfigured at /

2012-08-20 Thread Amyth Arora
Hey, seems you are using django 1.4. FYI -> django.template.loaders.app_directories.load_template_source has been deprecated so you should rather use django.template.loaders.app_directories.Loader Just change : django.template.loaders.app_directories.load_template_source TO

ImproperlyConfigured at /

2012-08-20 Thread Satinderpal Singh
I have to deploy osmeditor on my system, and download code from the link: http://wiki.openstreetmap.org/wiki/Editors/Django The database used in this was postgis, but i have mysql on my system, as the tables was successfully made by changing in the settings.py file, but on running it in the

Re: help with rss feed ImproperlyConfigured

2012-07-07 Thread psychok7
anyone?? On Saturday, July 7, 2012 3:52:52 AM UTC+1, psychok7 wrote: > > hi, i am trying to implement the syndicate feed framework simple rss with > my program, but i get a ImproperlyConfigured at /latest/feed/ > > Give your Debt class a get_absolute_url() method, or defi

Re: help with rss feed ImproperlyConfigured

2012-07-06 Thread psychok7
urday, July 7, 2012 3:52:52 AM UTC+1, psychok7 wrote: > > hi, i am trying to implement the syndicate feed framework simple rss with > my program, but i get a ImproperlyConfigured at /latest/feed/ > > Give your Debt class a get_absolute_url() method, or define an item_link() > met

help with rss feed ImproperlyConfigured

2012-07-06 Thread psychok7
hi, i am trying to implement the syndicate feed framework simple rss with my program, but i get a ImproperlyConfigured at /latest/feed/ Give your Debt class a get_absolute_url() method, or define an item_link() method in your Feed class. I know i am supposed to create a get_absolute_url in my

Re: guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-24 Thread su
"from userena.models import UserenaBaseProfile " in settings.py cause this problem. -- 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/-/AA_cMGHU4XYJ. To post

Re: guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-22 Thread su
bjectPermissionChecker > File "/usr/local/lib/python2.7/dist-packages/guardian/core.py", line 7, > in > from guardian.utils import get_identity > File "/usr/local/lib/python2.7/dist-packages/guardian/utils.py", line > 11, in > from guardian.conf.set

Re: guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-22 Thread Brian Schott
s > File "/usr/local/lib/python2.7/dist-packages/guardian/shortcuts.py", line > 9, in > from guardian.core import ObjectPermissionChecker > File "/usr/local/lib/python2.7/dist-packages/guardian/core.py", line 7, in > > from guardian.utils import get_

guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-22 Thread su
ges/guardian/core.py", line 7, in from guardian.utils import get_identity File "/usr/local/lib/python2.7/dist-packages/guardian/utils.py", line 11, in from guardian.conf.settings import ANONYMOUS_USER_ID File "/usr/local/lib/python2.7/dist-packages/guardian/conf/

Re: cx_Oracle error: ImproperlyConfigured

2011-04-29 Thread Jirka Vejrazka
Have you checked permissions? -- 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

Re: cx_Oracle error: ImproperlyConfigured

2011-04-28 Thread kamal sharma
Yes you are correct, that the reason i have replaced the below line in "app.wsgi", but that does not works. #os.environ["LD_LIBRARY_PATH"] = "/opt/app/oracle/products/11.2.0/lib" #os.environ["ORACLE_HOME"] = "/opt/app/oracle/products/11.2.0" os.environ["LD_LIBRARY_PATH"] =

Re: cx_Oracle error: ImproperlyConfigured

2011-04-28 Thread kamal sharma
Hi Again, I have finished my implementation with the local db, but now stuck in major issue.When i try to login to the local oracle database then it is working perfectly fine.I am able to read the data from the db installed in the same UNIX machine. But when i tried to login a db installed in

Re: cx_Oracle error: ImproperlyConfigured

2011-04-26 Thread kamal sharma
Thanks to all for supporting this to fix the issue. So issue is resolved by adding these 2 lines in "app.wsgi" os.environ["LD_LIBRARY_PATH"] = "/opt/app/oracle/products/11.2.0/lib" os.environ["ORACLE_HOME"] = "/opt/app/oracle/products/11.2.0" Thanks again for helping to fix this issue. Its

Re: cx_Oracle error: ImproperlyConfigured

2011-04-24 Thread Ian
On Apr 23, 12:29 pm, kamal sharma wrote: > No it was .profile of mine. Now I have set the LD_LIBRARY_PATH in app.wsgi > as mentioned below and when I print the os.environ in the beginning of > views.py then it shows that newly added value. It's clear that your

Re: cx_Oracle error: ImproperlyConfigured

2011-04-23 Thread kamal sharma
on occurred processing WSGI script '/opt/ > >> www/ui/foo/web/app.wsgi'. > >> Traceback (most recent call last): > >> File "/opt/www/ui/foo/web/app.wsgi", line 30, in application > >> return _application(environ, start_response) > >> File "/usr/local/

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread kamal sharma
n2.6/site-packages/ > django/core/handlers/wsgi.py", line 230, in __call__ > self.load_middleware() > File "/usr/local/packages/python/2.6.6/lib/python2.6/site-packages/ > django/core/handlers/base.py", line 42, in load_middleware > raise exceptions.ImproperlyConfigured('E

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread kamal sharma
I think i have done a mistake in my last cx_Oracle installation. Is this a problem? I used one python while build and another while install. ex: [me] ~/install_cx_oracle/cx_Oracle-5.0.3> /usr/local/bin/python setup.py build [me] ~/install_cx_oracle/cx_Oracle-5.0.3> sudo python setup.py

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread Jirka Vejrazka
Are you getting this error only when using the app through a web server? Have you verified that the web server does have ORACLE_HOME and LD_LIBRARY_PATH correctly defined? (e.g. by logging it using os.environ). Are you sure that the user that is used to run your webserver has permissions to read

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread Ian
On Apr 21, 11:40 pm, kamal sharma wrote: > When i try the same code from python Shell then it is working fine. Okay, so it does sound to me like it's your web server blocking access to the entire ORACLE_HOME directory. Is it running under a chroot jail? If so, then you

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread kamal sharma
Hi Jirka, Thanks for the response. I have installed cx_Oracle in Solaris again and followed this steps but still the error is same: Exception Type:DatabaseErrorException Value: Error while trying to retrieve text for error ORA-01804 Download cx_oracle module:

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread Jirka Vejrazka
Hi Kamal,   checking my install history, this is what I had to do to use cx_Oracle on Ubuntu Server: $ /usr/local/oracle/instantclient_11_2$ ln -s libclntsh.so.11.1 libclntsh.so $ WITH_UNICODE=1 ORACLE_HOME=/usr/local/oracle/instantclient_11_2 python setup.py build $ sudo bash # WITH_UNICODE=1

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
When i try the same code from python Shell then it is working fine. Here is the working output: >>> import cx_Oracle >>> from pprint import pprint >>> connection = cx_Oracle.Connection("%s/%s@%s" % ('foo', 'bar', 'db')) >>> cursor = cx_Oracle.Cursor(connection) >>> sql = "SELECT xyz FROM

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread Ian
On Apr 21, 11:03 am, kamal sharma wrote: > Error while trying to retrieve text for error ORA-01804 > > Here is my code to fetch the data from database. > > def cases(request, dbname, prnum=None, message=''): > >     connection = cx_Oracle.Connection("%s/%s@%s" % ('foo',

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
Thanks a lot. Now that issue is resolved after i execute below command. sudo ln -s /opt/app/oracle/products/11.2.0/lib/libclntsh.so.11.1 But now i am getting databse error. Any pointer please? Exception Value: Error while trying to retrieve text for error ORA-01804 Here is my code to fetch

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
After creating soft link, still it is giving the same error. Do i need to create soft link for any other files? My response are inline with KS: On Thu, Apr 21, 2011 at 9:21 PM, Ian wrote: > On Apr 21, 9:39 am, kamal sharma wrote: > > Here is the

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread Ian
On Apr 21, 9:39 am, kamal sharma wrote: > Here is the error I am getting now: > > cd /usr/local/lib > > /usr/local/lib> sudo ln > /opt/app/oracle/products/11.2.0/lib/libclntsh.so.10.1 > ln: ./libclntsh.so.10.1 is on a different file system > > /usr/local/lib> cd /usr/lib/

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
Here is the error I am getting now: cd /usr/local/lib /usr/local/lib> sudo ln /opt/app/oracle/products/11.2.0/lib/libclntsh.so.10.1 ln: ./libclntsh.so.10.1 is on a different file system /usr/local/lib> cd /usr/lib/ /usr/lib> sudo ln /opt/app/oracle/products/11.2.0/lib/libclntsh.so.10.1 ln:

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread brad
This may be related to Oracle's shared libraries not being in the path recognized by your web server. I created hard links to the Oracle shared libraries in /user/local/lib to get cx_oracle working. I have a blog post that outlines what I did, here:

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
6.6/lib/python2.6/site-packages/ >> django/core/handlers/base.py", line 42, in load_middleware >> raise exceptions.ImproperlyConfigured('Error importing middleware %s: >> "%s"' % (mw_module, e)) >> ImproperlyConfigured: Error importing middleware web.web.framewo

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread David Markey
-packages/ > django/core/handlers/base.py", line 42, in load_middleware > raise exceptions.ImproperlyConfigured('Error importing middleware %s: > "%s"' % (mw_module, e)) > ImproperlyConfigured: Error importing middleware web.web.framework: > "ld.so.1: httpd: fatal: libclntsh.so.11.1:

cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamalp.sha...@gmail.com
packages/python/2.6.6/lib/python2.6/site-packages/ django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e)) ImproperlyConfigured: Error importing middleware web.web.framework: "ld.so.1:

Re: ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.

2011-01-08 Thread gintare
n 2, 2011 at 12:49 PM,gintare<g.statk...@gmail.com> wrote: > > I was changing models many times and deleting tables inbetween. > > New tables were generated to improved models and admin site worked > > perfectly. > > Now smth happened that i am getting error: > &

Re: ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.

2011-01-02 Thread Ramiro Morales
On Sun, Jan 2, 2011 at 12:49 PM, gintare <g.statk...@gmail.com> wrote: > I was changing models many times and deleting tables inbetween. > New tables were generated to improved models and admin site worked > perfectly. > Now smth happened that i am getting error: > &

ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.

2011-01-02 Thread gintare
I was changing models many times and deleting tables inbetween. New tables were generated to improved models and admin site worked perfectly. Now smth happened that i am getting error: ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form. 'dateSent

ImproperlyConfigured: Error importing middleware django.middleware.csrf: "No module named csrf" on Windows XP

2010-08-06 Thread Ariel
Hi everybody, I am working on windows XP with django 1.2, I have downloaded a django web aplication but I continuely get a message error like this: "ImproperlyConfigured: Error importing middleware django.middleware.csrf: "No module named csrf" I have not idea why this is happening,

Re: ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 But I HAVE 1.2.2!

2009-03-16 Thread Theme Park Photo, LLC
gt; > django.core.handlers.modpython: ImproperlyConfigured: MySQLdb-1.2.1p2 > > or newer is required; you have 1.2.1 > > > BUT! I have 1.2.2 installed, see: > > > bash-3.1$ python manage.py shell > > Python 2.4.4 (#1, Oct 23 2006, 13:58:00) > > [GCC 4.1.1 20061011 (Red H

Re: ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 But I HAVE 1.2.2!

2009-03-15 Thread Malcolm Tredinnick
On Sun, 2009-03-15 at 21:08 -0700, Theme Park Photo, LLC wrote: > I'm getting this message when trying to start Django (from mod_python) > > > (From my apache log) > > [Sun Mar 15 22:07:28 2009] [error] [client 67.188.95.50] PythonHandler > django.core.handlers.modpython:

ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 But I HAVE 1.2.2!

2009-03-15 Thread Theme Park Photo, LLC
I'm getting this message when trying to start Django (from mod_python) (From my apache log) [Sun Mar 15 22:07:28 2009] [error] [client 67.188.95.50] PythonHandler django.core.handlers.modpython: ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 BUT! I have 1.2.2

Re: Random HTTP Error 500's - ImproperlyConfigured

2008-09-03 Thread cwurld
I doubt that would be the cause, given that the module it cannot load changes from crash to crash. I was wondering if it could be some sort of timing issue. Maybe the server times out while looking for the file. Or maybe the file is temporarily locked? I am grasping at straws here...

Re: Random HTTP Error 500's - ImproperlyConfigured

2008-09-02 Thread James Matthews
Is it possible that some form of server security is stripping them out? On Tue, Sep 2, 2008 at 10:28 AM, cwurld <[EMAIL PROTECTED]> wrote: > > Hi, > > My site has recently starting generating a lot of HTTP Error 500's. > The traceback is always: > > ImproperlyConfigur

Random HTTP Error 500's - ImproperlyConfigured

2008-09-02 Thread cwurld
Hi, My site has recently starting generating a lot of HTTP Error 500's. The traceback is always: ImproperlyConfigured: Error importing request processor module xxx: "No module named yyy" where xxx and yyy are random modules. I know these modules are present and working corre

Re: Weird ImproperlyConfigured error

2008-09-01 Thread Julien Phalip
> I've spent a couple hours trying to debug this, in vain... I figured out my problem, so I just thought I'd post it here. It was in fact due to some stale .pyc files and folders, not in my apps but in Django itself. I had just done an 'svn update' on it, and apparently some old stuff kept

Weird ImproperlyConfigured error

2008-08-30 Thread Julien Phalip
n __call__ self.load_middleware() File "/MYPATH/django/core/handlers/base.py", line 40, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e) ImproperlyConfigured: Error importing middleware staticpages.middleware: "No m

Re: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-05 Thread AY
on error message. Help > > would be very appreciated. Thanks in advance! > > Hi. > > > > > MOD_PYTHON ERROR > > > ImproperlyConfigured: Error loading psycopg module: No module named > > psycopg > > I think that you have an error in the

Re: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-04 Thread Mauro Sánchez
2007/12/4, AY <[EMAIL PROTECTED]>: > > Hi! I am trying to configure Apache to use facbackopan directory as a > django project, and have the following mod_python error message. Help > would be very appreciated. Thanks in advance! > Hi. > > MOD_PYTHON ERROR >

Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-04 Thread AY
e 3, in from django.db import models File "C:\Python25\Lib\site-packages\django\db\__init__.py", line 11, in backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, {}, {}, ['']) File "C:\Python25\Lib\site-packages\django\db\backends\postgresql

Re: ImproperlyConfigured: Error importing middleware django.contrib.sessions.middleware: "No module named mysite"

2007-02-02 Thread Graham Dumpleton
On Feb 3, 12:12 am, "HenrikG" <[EMAIL PROTECTED]> wrote: > My biggest problem was to get the Location directive right in the > httpd.conf. It now looks like this: > > > SetHandlermod_python > PythonHandler django.core.handlers.modpython > PythonPath "sys.path +

Re: ImproperlyConfigured: Error importing middleware django.contrib.sessions.middleware: "No module named mysite"

2007-02-01 Thread wub
Henrik, I've been stuck in a a place like Ron's all morning. I thought I had gotten to a later problem when I started getting Django errors indication that there was 'no module mysite.urls', but I just gave it another try, and I'm back to the mod-python error 'no module named mysite'. I seem

  1   2   >