Re: Django Improper Configuration

2011-01-24 Thread Kimberly Harvey
yes the sqlite package is installed. I installed the Django and the python, and I test it to ensure it is there and it is. On Mon, Jan 24, 2011 at 12:48 PM, Kimberly Harvey wrote: > Karen, > > It worked after I used the mv command to move the settings.py > settings.py.break and then did ano

Re: Django Improper Configuration

2011-01-24 Thread Kimberly Harvey
Karen, It worked after I used the mv command to move the settings.py settings.py.break and then did another move where from settings.py.break to settings.py, then I ran the server by using the manage.py syncdb. I do not understand why that even worked ( I didn't want to use the settings.py.b

Re: Django Improper Configuration

2011-01-24 Thread Mark Penix
This might be a stupid question but did you install the sqlite package? On Mon, Jan 24, 2011 at 9:39 AM, Kelly Nicholes wrote: > I think I had this error too when I was cloning a repo from WebFaction > to use on my local dev machine. I ended up having to replace > WebFaction's manage.py with the

Re: Django Improper Configuration

2011-01-24 Thread Kelly Nicholes
I think I had this error too when I was cloning a repo from WebFaction to use on my local dev machine. I ended up having to replace WebFaction's manage.py with the one from Django. Let me know if it works for you! I wish I could explain why. Can't. On Jan 23, 8:55 pm, Graham Dumpleton wrote:

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Thanks for the advice. Thanks for your help! On Mon, Jan 24, 2011 at 12:10 AM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > our help > On Monday, January 24, 2011 5:05:05 PM UTC+11, Kimberly wrote: >> >> LOL, I do have another thing I want to ask. I ran the server ( 0 errors) >> but

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 5:05:05 PM UTC+11, Kimberly wrote: > > LOL, I do have another thing I want to ask. I ran the server ( 0 errors) > but when to the browser to check, http://127.0.0.1:8000/ and now it says > it refused the connection. It said that the server may be busy or may have >

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
LOL, I do have another thing I want to ask. I ran the server ( 0 errors) but when to the browser to check, http://127.0.0.1:8000/ and now it says it refused the connection. It said that the server may be busy or may have network connection problem. It also said I may have an old version of the pag

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 4:39:47 PM UTC+11, Kimberly wrote: > > Screen: > > You just installed Django's auth system, which means you don't have any > superusers defined. > > So it is working > > I do have a question... after I've used the move technique to move the > settings.py settings

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Screen: You just installed Django's auth system, which means you don't have any superusers defined. So it is working I do have a question... after I've used the move technique to move the settings.py settings.py.broken which places all of the file of settings.py inside the settings.py.broken

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 4:25:52 PM UTC+11, Kimberly wrote: > > The directory I did it from was from my home directory. I've moved the > files like you've indicated by using mv settings.py settings.py.broken. > > Should I go ahead and type in the command as python manage.py syncdb to see > i

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
I ran the syncdb and it says it doesn't recognize the wiki module. Also, when I moved the original file which was settings.py to settings.py.broken, that means I have to change the formats in the manage,py and other files so that it recognizes the settings.py.broken file, right? On Sun, Jan 23, 20

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
The directory I did it from was from my home directory. I've moved the files like you've indicated by using mv settings.py settings.py.broken. Should I go ahead and type in the command as python manage.py syncdb to see if it works? On Sun, Jan 23, 2011 at 11:17 PM, Graham Dumpleton < graham.dumpl

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 4:10:15 PM UTC+11, Kimberly wrote: > > > /home/username/wikicamp/wikicamp/settings.py --> THIS DOES NOT EXIST > > WHAT DOES EXIST: /home/username/wikicamp and inside that directory, > settings.py is there. > Earlier you said you got: import settings print set

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
/home/username/wikicamp/wikicamp/settings.py --> THIS DOES NOT EXIST WHAT DOES EXIST: /home/username/wikicamp and inside that directory, settings.py is there. On Sun, Jan 23, 2011 at 11:02 PM, Kimberly Harvey wrote: > Sorry about that, there is nothing showing for either echo $PYTHONPATH >

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Sorry about that, there is nothing showing for either echo $PYTHONPATH and echo $DJANGO_SETTINGS_MODULE I am currently reading your messages. On Sun, Jan 23, 2011 at 10:55 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > On Monday, January 24, 2011 3:44:59 PM UTC+11, Kimberly wro

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 3:44:59 PM UTC+11, Kimberly wrote: > > Please do the following and provide the output: > > pwd > > MY OUTPUT: /home/username/wikicamp > > Now run 'python' from the command line and do the following, providing the > output to us: > > import settings > print setti

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
I did not modified the manage.py file On Sun, Jan 23, 2011 at 10:44 PM, Kimberly Harvey wrote: > Please do the following and provide the output: > > pwd > > MY OUTPUT: /home/username/wikicamp > > Now run 'python' from the command line and do the following, providing the > output to us: > >

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Please do the following and provide the output: pwd MY OUTPUT: /home/username/wikicamp Now run 'python' from the command line and do the following, providing the output to us: import settings print settings.__file__ import wikicamp.settings print wikicamp.settings.__file__ after imp

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 3:18:45 PM UTC+11, Kimberly wrote: > > Traceback ( most recent call last): > File "manage.py", line 11, in > execute_manager(settings) > File "/usr/lib/python2.5/site- > packages/django/core/management/_init_.py", line 438, in execute manager > Fi

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
The output was produced with the print __file__ and print 'DATABASES', DATABASES at the end of the settings.py file. On Sun, Jan 23, 2011 at 10:18 PM, Kimberly Harvey wrote: > Traceback ( most recent call last): > File "manage.py", line 11, in > execute_manager(settings) > File

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Traceback ( most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/lib/python2.5/site- packages/django/core/management/_init_.py", line 438, in execute manager File "/usr/lib/python2.5/site-packages/django/core/management/_init_.py", line 37

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Thank you for the advices. I've done some Python codes in the past and recently. I already have a Python code that I will need to use to create a Django website ( response to Steven). (Response to Graham): Traceback ( most recent call last): File "manage.py", line 11, in execute_mana

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 2:55:16 PM UTC+11, Graham Dumpleton wrote: > > Are you saying that those two print statements you were told to add are not > causing anything additional to be displayed on the screen when you run both > runserver and syncdb? > > This is why I asked you to provide the

Re: Django Improper Configuration

2011-01-23 Thread Steven Elliott Jr
Just curious if you've done a python tutorial yet? It's hard to really understand Django well unless you have at least some working knowledge of python. You will most definitely struggle later on when things become more complicated with your app. The framework is great for repetitive tasks but

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
Are you saying that those two print statements you were told to add are not causing anything additional to be displayed on the screen when you run both runserver and syncdb? This is why I asked you to provide the output again. You may not understand what we are looking for. Don't care about wha

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
I've provided the full errors in the post, it is there. ( same errors as I've faced prior to adding the print __file__ and 'DATABASES', DATABASES) as I'm encountering the same after I've copied and paste the print inside the settings.py file at the end) On Sun, Jan 23, 2011 at 9:40 PM, Graham Dump

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
That is two underscores, followed by 'file' followed by two underscores. Not just a single underscore. Please try and cut and paste out we give to use and vice versa. In other words, provide complete output showing full errors and tracebacks. Such information may be meaningful to use even if yo

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
it says that the _file_ is not defined. On Sun, Jan 23, 2011 at 9:28 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > On Monday, January 24, 2011 2:19:09 PM UTC+11, Steven Elliott Jr wrote: >> >> Copy and Paste the following to replace your entire DATABASES tuple: >> >> DATABASES =

Re: Django Improper Configuration

2011-01-23 Thread Steven Elliott
> That was already pointed out to them. You're right, sorry my bad -- I just got to my computer and read the thread rather than just using my phone. > The lack of a comma should have resulted in a syntax error, which makes me > believe, unless they modified the content before posting, that they

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
I am using pico editior and I've been saving the work by using the control X. On Sun, Jan 23, 2011 at 9:25 PM, Steven Elliott wrote: > Also, what editor are you using? if its not an IDE-type thing remember to > save your work in the editor. If you are coming from the Windows programming > world

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 2:19:09 PM UTC+11, Steven Elliott Jr wrote: > > Copy and Paste the following to replace your entire DATABASES tuple: > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.sqlite3', > 'NAME': 'database.db', >

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
It is not working at all, still facing the same configuration problem (ENGINE IS NOT SET). On Sun, Jan 23, 2011 at 9:19 PM, Steven Elliott wrote: > Copy and Paste the following to replace your entire DATABASES tuple: > > DATABASES = { >'default': { >'ENGINE': 'django.db.backends.sqli

Re: Django Improper Configuration

2011-01-23 Thread Steven Elliott
Also, what editor are you using? if its not an IDE-type thing remember to save your work in the editor. If you are coming from the Windows programming world generally your programs will save when you build and run something in the IDE. If you're using just an editor like Emacs, Vim, Gedit, Kate,

Re: Django Improper Configuration

2011-01-23 Thread Steven Elliott
Copy and Paste the following to replace your entire DATABASES tuple: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'database.db', 'USER': '', 'PASSWORD': '',

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
That doesn't work for me ( very very strange), that why I am very confused on what is going on with the database itself. On Sun, Jan 23, 2011 at 8:55 PM, Steven Elliott Jr wrote: > I remember that the one time I tried sqlite it complained until I put a .db > suffix on the name of my database. If

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
The error that I am seeing is in the shell/ the terminal. I am unable to paste the exception problems on here. But I've typed it... look below After I've ran the python manage.py runserver, there was NO errors. But when I try to use, python manage.py syncdb, it showed errors/exceptions: Traceback

Re: Django Improper Configuration

2011-01-23 Thread Steven Elliott Jr
I remember that the one time I tried sqlite it complained until I put a .db suffix on the name of my database. If you do not specify the full path and just specify a name, then it will just create the database file in your project's root directory. So, under name just put: 'NAME' : 'database.

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 1:36:10 PM UTC+11, Kimberly wrote: > > username@debian:~/wikicamps$ python manage.py runserver > Validating models > 0 errors found > > Django version 1.2.4, using settings 'wikicamp.settings' > Development server is running at http://127.0.0.1:8000/ > Quit the ser

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
username@debian:~/wikicamps$ python manage.py runserver Validating models 0 errors found Django version 1.2.4, using settings 'wikicamp.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. It runs fine, but yet I faced problem with the database ENG

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
Provide the full error including any Python traceback so we can see where the error is occurring. If running manage.py runserver, easiest thing to do is to provide the whole output from running the command. Graham On Monday, January 24, 2011 1:11:47 PM UTC+11, Kimberly wrote: > > Still doesn't

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Still doesn't work. But thank you for trying to help me. It keep giving me the same ENGINE configuration that it is not set. On Sun, Jan 23, 2011 at 8:05 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > On Monday, January 24, 2011 12:42:57 PM UTC+11, Kimberly wrote: >> >> Sorry abo

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 12:42:57 PM UTC+11, Kimberly wrote: > > Sorry about that... here is what I have in the settings.py ( similiar to > what you showed, but mine is abit different in the NAME section): > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.sqlite3',

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
Sorry about that... here is what I have in the settings.py ( similiar to what you showed, but mine is abit different in the NAME section): DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
Rather than have us guess what is in your settings file, post that whole section. For example: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': os.path.join(ENVIRON_ROOT, 'db'

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
I've used the tutorials and it doesn't work. I've done exactly what the tutorial says, and it keeps saying that the ENGINE has not been set in the setting. I am also using Django 1.2 or higher version. On Sun, Jan 23, 2011 at 6:29 PM, Karen Tracey wrote: > On Sun, Jan 23, 2011 at 6:47 PM, Kimber

Re: Django Improper Configuration

2011-01-23 Thread Karen Tracey
On Sun, Jan 23, 2011 at 6:47 PM, Kimberly Harvey wrote: > it still doesn't work. I typed it like you've suggested and it keeps saying > that the database ENGINE has not been set. > > If you are using ENGINE by itself, you need to be using Django 1.2 or higher and ENGINE is a key in the dictionary

Re: Django Improper Configuration

2011-01-23 Thread Kimberly Harvey
it still doesn't work. I typed it like you've suggested and it keeps saying that the database ENGINE has not been set. On Sun, Jan 23, 2011 at 5:11 AM, Mark Penix wrote: > your whole engine line should read > 'ENGINE': 'django.db.backends.sqlite3' > > -- > You received this message because you a

Re: Django Improper Configuration

2011-01-23 Thread Mark Penix
your whole engine line should read 'ENGINE': 'django.db.backends.sqlite3' -- 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 django-u

Django Improper Configuration

2011-01-23 Thread Kimberly
Hello! I have a problem with the Django. I was able to create django- admin.py startproject project in my home directory, and was able to see the files such as manage.py, init.py, settings.py, and so on. After some steps, I approached a problem with manage.py syncdb. It says that the database ENGIN