> But I thought sqlite3 came along with Python 2.5. No?
>
> Any clues to what am I missing here? Need to install something else?
> Path problems?
> Generic newbiness?
I don't think so. Anyway, it is as simple as installing package
"sqlite3" on your Ubuntu. If it's already there, even better.
You might also need the "python-sqlite2" package, which provide the
Python bindings for SQLite 3 (yeah, the version numbers look confusing
at first). I'm not sure how Django works with SQLite, but those are
the steps I took when installing Trac (I use Django with MySQL).
Shouldn't be much different, as both are written in Python.
Hope it helps,
Eduardo.
An unrelated note to your question...
If you are using 0.96, you need to use the 0.96 docs.
http://www.djangoproject.com/documentation/0.96/
The link you pasted assumes you are using the development version, which
has some differences. My personal recommendation is to remove 0.96 and
use django-svn.
Just thought I'd let you know!
Jeff Anderson
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com
> To unsubscribe from this group, send email to django-users...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
What you have installed is the SQLite library and the Python bindings, both
pieces come now included in Python 2.5 (if you were using an older
Python version you would have to install Ubunto packages named libsqlite3
and python-sqlite3 or similar).
But what dbshell does is to execute tue command line client
for your backend (mysql for MySQL, etc,...) aleady configured
to work with the database of your Django project, and for
SQLite that command line client application is sqlite3
that in Debian/Ubuntu comes in the sqlite3 package:
Note the "A command line interface for SQLite 3" part. Install it
using the package management tool of the distribution
and try again.
Regards,
--
Ramiro Morales
The 0.96 package there is just the one from Debian, the only changes
that are made to the debian package is that django-admin.py becomes
django-admin as it's installed in to /usr/bin (django-admin.py is still
in /usr/lib/python-django/bin, along with the other django scripts).
(Except the version in hardy, which rewrites the shebang of manage.py
when manage.py is created - which we used to have in the debian
packages, but removed as using the system default python is the correct
behaviour as a default, and if you're not using the default then you
already know enough to run manage.py in the interpreter of your choice).
There are svn snapshot packages available from the debian experimental
repository, with some pinning you should be able to pull in that and
only that from the experimental repository. The latest snapshot was
r7047 (thanks Gustavo).
Thanks,
--
Brett Parker
Better is subjective! It's just a snapshot of the svn trunk at rev
7074... it should be fairly easy to install though, and it'd get dropped
in to site-packages for all python versions installed. However, I've
just glanced at the version of python-support in gutsy and it appears to
be older than the version that package relies on...
If you're just wanting to run the latest trunk then you can just use an
svn checkout and add that in to PYTHONPATH on the command line (you
might also want to add <checkout>/bin to your PATH to get
django-admin.py there).
I haven't currently got an upto date ubuntu system about, but I could
build packages for the current svn when I get home if that would be of
use...
Thanks,
--
Brett Parker
PYTHONPATH is just an environmental variable, often if you're not
already using it it'll be empty ;) You can check it's current value
with:
echo $PYTHONPATH
If it's empty then you can just do:
export PYTHONPATH=/path/to/django/trunk/checkout
Otherwise:
export PYTHONPATH=$PYTHONPATH:/path/to/django/trunk/checkout
That should give you enough to be able to run the development server
etc... For apache2 and mod_python you can just add it in the
PythonPath.
Hope that helps,
--
Brett Parker
Always use absolute paths when creating symbolic links. Sounds like it
should be something similar to "sudo ln -s
/home/YOUR_USER/django-trunk/django
/usr/lib/python2.5/site-packages/django" for you.
This should make the import wrok.
Hope it helps,
Eduardo.