Re: Django 1.3 to 1.4

2012-07-11 Thread JJ Zolper
Or I thought it would be okay until I saw these errors when trying to run 
my server:

Traceback (most recent call last):
  File "manage.py", line 14, in 
execute_manager(settings)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 459, in execute_manager
utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 196, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 217, in execute
translation.activate('en-us')
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py", 
line 105, in activate
return _trans.activate(language)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 194, in activate
_active.value = translation(language)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 183, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 160, in _fetch
app = import_module(appname)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
line 35, in import_module
__import__(name)
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", 
line 3, in 
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/helpers.py", 
line 2, in 
from django.contrib.admin.util import (flatten_fieldsets, lookup_field,
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/util.py", line 
1, in 
from django.db import models
  File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 
40, in 
backend = load_backend(connection.settings_dict['ENGINE'])
  File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 
34, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 
92, in __getitem__
backend = load_backend(db['ENGINE'])
  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 
51, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'postgresql_psycopg2' isn't an 
available database backend.
Try using django.db.backends.postgresql_psycopg2 instead.
Error was: No module named postgresql_psycopg2.base


On Wednesday, July 11, 2012 10:40:30 PM UTC-4, JJ Zolper wrote:
>
> I made the mistake of not deleting the previous django files before I 
> installed django 1.4
>
> When I run:
>
> >>> import django
> >>> print(django.get_version())
> 1.4
>
> I see that. I'm sure I'm going beyond naive here but I just didn't want to 
> assume that my django would be fine if I didn't uninstall 1.3 first?
>
> I was able to run:
>
> python -c "import sys; sys.path = sys.path[1:]; import django; 
> print(django.__path__)"
>
> "If you previously installed Django using python setup.py install, 
> uninstalling is as simple as deleting the django directory from your 
> Pythonsite-packages. To find the directory you need to remove, you can 
> run the following at your shell prompt (not the interactive Python prompt):"
>
> and read that ^ but when I tried to delete the "django" directory returned 
> errors when I tried to remove it in the "dist-packages" directory.
>
> On the Django site and in the quote above it says "site-packages" but 
> there is nothing in that for me.
>
> I'm probably fine just wanted to post this.
>
> Thanks,
>
> JJ
>

-- 
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/-/zHizEb0Z-80J.
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.



Django 1.3 to 1.4

2012-07-11 Thread JJ Zolper
I made the mistake of not deleting the previous django files before I 
installed django 1.4

When I run:

>>> import django
>>> print(django.get_version())
1.4

I see that. I'm sure I'm going beyond naive here but I just didn't want to 
assume that my django would be fine if I didn't uninstall 1.3 first?

I was able to run:

python -c "import sys; sys.path = sys.path[1:]; import django; 
print(django.__path__)"

"If you previously installed Django using python setup.py install, 
uninstalling is as simple as deleting the django directory from your Python
site-packages. To find the directory you need to remove, you can run the 
following at your shell prompt (not the interactive Python prompt):"

and read that ^ but when I tried to delete the "django" directory returned 
errors when I tried to remove it in the "dist-packages" directory.

On the Django site and in the quote above it says "site-packages" but there 
is nothing in that for me.

I'm probably fine just wanted to post this.

Thanks,

JJ

-- 
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/-/HavKSz5MKLkJ.
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.