The opsys is rhel AS5.2.  I couldn't find "yolk" on it (that's a
program, right?).
The machine has rpms for Python 2.4 & sqlite, but I was unable to get
Django working with them.  I thought Python 2.5 & later versions
included sqlite, so I started installing all the software (Python,
Django) in new locations under /opt.

I don't have a good grasp on installing stuff for Python. Is the link
of the django dir in Pythons's site-packages all I need to install
Django?  How do I install sqlite and/or pysqlite2, so that Django's
"syncdb" will work?  The "syncdb" error appears to say that
django/db/backends/sqlite3/base.py can't find pysqlite2 or sqlite3.
Where/how do I install them so DJango can find them?
 . . . . . . .
  File "/opt/Python-2.7/lib/python2.7/site-packages/django/db/backends/
sqlite3/base.py", line 34, in <module>
    raise ImproperlyConfigured("Error loading %s: %s" % (module, exc))
django.core.exceptions.ImproperlyConfigured: Error loading either
pysqlite2 or sqlite3 modules (tried in that order): No module named
_sqlite3


[myserver]$ ll /opt
drwxr-xr-x 8     502  502 4096 Aug 11 20:44 Django-1.2.1
drwxr-xr-x 6     501   20 4096 Aug 11 22:00 pysqlite-2.6.0
drwxr-xr-x 6 simonst root 4096 Aug 11 20:10 Python-2.7
[caadmin]$ ll /opt/Python-2.7/lib/python2.7/site-packages
lrwxrwxrwx 1 root root  25 Aug 11 21:09 django -> /opt/Django-1.2.1/
django
-rw-r--r-- 1 root root 119 Aug 11 20:09 README
[caadmin]$ ll /opt/Django-1.2.1/django
drwxr-xr-x  3  502  502 4096 Aug 11 20:44 bin
drwxr-xr-x  6  502  502 4096 Aug 11 20:44 conf
drwxr-xr-x 22  502  502 4096 Aug 11 20:44 contrib
drwxr-xr-x  9  502  502 4096 Aug 11 20:44 core
drwxr-xr-x  4  502  502 4096 Aug 11 20:44 db
drwxr-xr-x  2  502  502 4096 Aug 11 20:44 dispatch
drwxr-xr-x  3  502  502 4096 Aug 11 20:44 forms
drwxr-xr-x  2  502  502 4096 Aug 11 20:44 http
-rw-r--r--  1  502  502  549 May 24 12:10 __init__.py
-rw-r--r--  1 root root  757 Aug 11 20:44 __init__.pyc
drwxr-xr-x  2  502  502 4096 Aug 11 20:44 middleware
drwxr-xr-x  2  502  502 4096 Aug 11 20:44 shortcuts
drwxr-xr-x  3  502  502 4096 Aug 11 20:44 template
drwxr-xr-x  2  502  502 4096 Aug 11 20:44 templatetags
drwxr-xr-x  2  502  502 4096 Aug 11 20:44 test
drwxr-xr-x  4  502  502 4096 Aug 11 20:44 utils
drwxr-xr-x  4  502  502 4096 Aug 11 20:44 views

On Aug 13, 1:08 am, Piotr Zalewa <zal...@gmail.com> wrote:
> Google "install sqlite/mysql $your_operating_system"
> If you provide more info (result of running yolk and your operating
> system) we will be able to help you a bit more.
>
> zalun
>
> On 10-08-13 03:15, Tom wrote:
>
> > It's my first time using Django&  I'm unable to get the demo going. I
> > would like to use sqlite (ultimately mysql).
> > Python 2.7 installed ok.  Then I installed (I think) Django 1.2.1.
> > The "manage.py runserver" works, but the "syncdb" fails.  How do I
> > "install" sqlite or pysqlite2 (or even mysql)?  I thought Python 2.5+
> > came with sqlite installed.
>

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

Reply via email to