FINALLY! I used your modifications and adjusted the security settings of
the directory (twice). And now it works. Thank you everyone for taking the
time to look at my code!
Brandy
On Thursday, April 12, 2012 3:13:58 PM UTC-5, William Ratcliff wrote:
> Hi Brandy,
>
> I downloaded your project modified the beginning to the following:
>
> # Django settings for mysite project.
>
> import os,sys
> HOMEDIR=os.path.dirname(__file__)
> DEBUG = True
> TEMPLATE_DEBUG = DEBUG
>
> ADMINS = (
> # ('Your Name', '[email protected]'),
> )
>
> MANAGERS = ADMINS
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3', # Add
> 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
> 'NAME': os.path.join(HOMEDIR,'testdb'), # Or
> path to database file if using sqlite3.
> 'USER': '', # Not used with sqlite3.
> 'PASSWORD': '', # Not used with sqlite3.
> 'HOST': '', # Set to empty string for
> localhost. Not used with sqlite3.
> 'PORT': '', # Set to empty string for
> default. Not used with sqlite3.
> }
> }
>
> It works under the django 1.4 that I just pulled onto a "virgin" windows 7
> box. My suspicion is that in your engine file, you wanted to use:
> r'c:/program files/bitnami djangostack/mysite/sqlite3.db'
> instead of:
> 'c:/program files/bitnami djangostack/mysite/sqlite3.db',
>
> This is assuming that you have read/write permissions to that directory,
> etc. I prefer the pattern that I used of putting the sqllite database
> relative to __file__ because it is easier to move it between machines.
> So, for example, if I develop on a mac (or windows), when I deploy to linux
> (not so much for the database) for production, I don't have to manipulate
> the path throughout the code...Later, if I need to find something relative
> to the project root, I can then do a:
>
> from django.conf import settings
> and grab settings.HOME as the base directory
>
> Best,
> William
> (btw. I placed the directory in c:\mysite for my test
>
> so you have:
> -- denotes a mysite directory
>
>
> c:\mysite
> manage.py
> --mysite
> __init__.py
> settings.py
> testdb
> urls.py
> wsgi.py
>
>
> )
>
>
>
> 2012/4/12 Brandy <[email protected]>
>
>> This is the whole directory.
>>
>>
>> On Thursday, April 12, 2012 2:00:24 PM UTC-5, William Ratcliff wrote:
>>
>>> Can you post your full code somewhere as a zip?
>>>
>>>
>>>
>>> On Thu, Apr 12, 2012 at 2:33 PM, Leonid Toshchev <[email protected]>wrote:
>>>
>>>> Hello.
>>>> Try to escape spaces. I don`t check how django work when path have
>>>> spaces inside, but i meet same problems in my practice.
>>>>
>>>> p.s. sorry for my bad english.
>>>>
>>>> 12 апреля 2012 г. 21:32 пользователь victoria <[email protected]>
>>>> написал:
>>>> > On Thu, Apr 12, 2012 at 7:09 PM, Brandy <[email protected]>
>>>> wrote:
>>>> >> I am working (again) through the tutorial part 1. I have made
>>>> changes to
>>>> >> Engine and Name as specified in the instructions. However, running
>>>> "python
>>>> >> manage.py syncdb" continues to return "Please supply the ENGINE
>>>> value." I
>>>> >> did not encounter this problem the first time I worked through this
>>>> >> tutorial.
>>>> >>
>>>> >> # Django settings for mysite project.
>>>> >>
>>>> >> DEBUG = True
>>>> >> TEMPLATE_DEBUG = DEBUG
>>>> >>
>>>> >> ADMINS = (
>>>> >> # ('Your Name', '[email protected]'),
>>>> >> )
>>>> >>
>>>> >> MANAGERS = ADMINS
>>>> >>
>>>> >> DATABASES = {
>>>> >> 'default': {
>>>> >> 'ENGINE': 'django.db.backends.sqlite3', # Add
>>>> 'postgresql_psycopg2',
>>>> >> 'mysql', 'sqlite3' or 'oracle'.
>>>> >> 'NAME': 'c:/program files/bitnami
>>>> >> djangostack/mysite/sqlite3.db'**, # Or path to
>>>> database
>>>> >> file if using sqlite3.
>>>> >> 'USER': '', # Not used with sqlite3.
>>>> >> 'PASSWORD': '', # Not used with sqlite3.
>>>> >> 'HOST': '', # Set to empty string for
>>>> >> localhost. Not used with sqlite3.
>>>> >> 'PORT': '', # Set to empty string for
>>>> default.
>>>> >> Not used with sqlite3.
>>>> >> }
>>>> >> }
>>>> >>
>>>> >
>>>> > Your settings seem correct. Which version of django are you using?
>>>> > Have you checked that the settings.py file is in the correct location
>>>> > for your django version?
>>>> >
>>>> > Django 1.4 expects this layout:
>>>> >
>>>> > mysite/
>>>> > manage.py
>>>> > mysite/
>>>> > __init__.py
>>>> > settings.py
>>>> > urls.py
>>>> > wsgi.py
>>>> >
>>>> > While Django 1.3 expects this:
>>>> >
>>>> > mysite/
>>>> > __init__.py
>>>> > manage.py
>>>> > settings.py
>>>> > urls.py
>>>> >
>>>> >
>>>> > Since 1.4 was released this seems one of the most common mistakes that
>>>> > could cause this error.
>>>> >
>>>> >> --
>>>> >> 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/-/**qnfmdfEObKAJ<https://groups.google.com/d/msg/django-users/-/qnfmdfEObKAJ>
>>>> .
>>>> >> To post to this group, send email to [email protected].
>>>> >> To unsubscribe from this group, send email to
>>>> >> django-users+unsubscribe@**googlegroups.com<django-users%[email protected]>
>>>> .
>>>> >> For more options, visit this group at
>>>> >> http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>> .
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> > To post to this group, send email to [email protected].
>>>> > To unsubscribe from this group, send email to
>>>> django-users+unsubscribe@**googlegroups.com<django-users%[email protected]>
>>>> .
>>>> > For more options, visit this group at http://groups.google.com/**
>>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>> .
>>>> >
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to django-users+unsubscribe@
>>>> **googlegroups.com <django-users%[email protected]>.
>>>> For more options, visit this group at http://groups.google.com/**
>>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>> .
>>>>
>>>>
>>> --
>> 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/-/YNcdzM_WZJcJ.
>>
>> To post to this group, send email to [email protected].
>> 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.
>>
>
>
--
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/-/NqY04epA4oEJ.
To post to this group, send email to [email protected].
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.