Where to download to?

2007-10-18 Thread SSK

I'm running OSX, I've decided to do Python 2.5 + Django + SQLite +
built-in server

I followed the instructions at 
http://www.djangoproject.com/documentation/install/

Instead of doing
   ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django
can I just download to my
 SITE-PACKAGES-DIR/django


--~--~-~--~~~---~--~~
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: Where to download to?

2007-10-18 Thread SSK

Sorry, accidentally posted incomplete message. Continued...

Instead of creating symbolic link,
   ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django
can I just download to my
 SITE-PACKAGES-DIR/django

Are there any downsides to this?
If yes, where should django-trunk (from svn co 
http://code.djangoproject.com/svn/django/trunk/
django-trunk) reside?
Right now, it's in my ~/ and it just doesn't seem clean.




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



Newbie error: sqlite3.OperationalError: unable to open database file

2007-10-21 Thread SSK

I'm trying to get started with Django, but I've hit a hurdle with
database.

I have a very basic configuration: Python 2.5, Django (SVN), built-in
server, SQLite3 db.

My settings.py has this:
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '~/Projects/mysites/mysite/mysite.db'

When I run syncdb, I get the following error:
 python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in 
execute_manager(settings)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management/__init__.py", line 275,
in execute_manager
utility.execute()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management/__init__.py", line 225,
in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management/base.py", line 70, in
run_from_argv
self.execute(*args, **options.__dict__)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management/base.py", line 84, in
execute
output = self.handle(*args, **options)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management/base.py", line 166, in
handle
return self.handle_noargs(**options)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management/commands/syncdb.py",
line 39, in handle_noargs
cursor = connection.cursor()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/db/backends/__init__.py", line 33, in
cursor
cursor = self._cursor(settings)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/db/backends/sqlite3/base.py", line 110,
in _cursor
self.connection = Database.connect(**kwargs)
sqlite3.OperationalError: unable to open database file

I've searched for it. Other people have had this type of error but I
didn't find anyone who has had this with the built-in server. What
might be the problem?


--~--~-~--~~~---~--~~
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: Newbie error: sqlite3.OperationalError: unable to open database file

2007-10-21 Thread SSK

Hmm. Changing ~/... to /Users/Myname/... solved the problem.






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