How do I eliminate django.openid.consumer when trying to use a Pinax complete_project?

2009-06-01 Thread bconnors
We won’t be using django.openid.consumer. we use USDA eAuthentication. this is the system used by USDA agencies to enable users to obtain accounts that will allow them to access USDA Web applications and services via the Internet. How do I eliminate django.openid.consumer when trying to use a Pin

Re: environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-11 Thread bconnors
thanks for the advice, but #set DJANGO_SETTINGS_MODULE=mysite.settings #python manage.py syncdb --settings=settings # ln -s /usr/lib/python2.5/site-packages/pinax /home/pubuntu/pinax # python manage.py suncdb #curl -o pinax-boot.py http://svn.pinaxproject.com/pinax/trunk/scripts/pinax-boo t.pt #p

Re: environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-07 Thread bconnors
'myapp1.person', ) pubu...@pubuntu:~/django-trunk/build/lib/django/bin/myapp1$ I tried doing export DJANGO_SETTINGS_MODULE=myapp1.person as in settings.py, but got same error. On May 7, 10:30 am, Sieker Adi Jörg wrote: > Hi, > > On 07.05.2009, at 16:02, bconnors wrote: &

environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-07 Thread bconnors
I saw this chat related to DJANGO_SETTINGS_MODULE is undefined. Hello I am new to Django. I am trying to exercise "templates" through the interactive shell, however I end up getting this error. Can anyone help? here is the exact steps I follow: 1) cd C:\Django\mysite 2) set DJANGO_SETTINGS_MODULE=

To run manage.py syncdb without being prompted to create a superuser

2009-05-05 Thread bconnors
I'm looking at How to run manage.py syncdb without being prompted to create a superuser at http://code.djangoproject.com/wiki/CookBookScriptsNoSuperUserSyncdb >>> from django.core import management >>> from django.dispatch import dispatcher >>> from django.contrib.auth.management import create_s

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread bconnors
touch worked for me. thanks On May 4, 11:31 am, Mike Ramirez wrote: > I forgot to mention that sqlite3 expects a file to be there, it can't create > one on it's own, using ./manage.py syncdb.  To do so I use touch, tho you can > also do the same thing with vi, if you save it as an empty file (

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread bconnors
ng for default. Not used with sqlite3. # Local time zone for this installation. Choices can be found here: @ "settings.py" 81 lines, 2871 characters On May 4, 10:01 am, Phil Mocek wrote: > On Mon, May 04, 2009 at 05:33:05AM -0700, bconnors wrote: > > I created a mysite.db

Re: i've looked at other discussions regarding the error “unable to open database file”

2009-05-04 Thread bconnors
e3/ base.py", li ne 170, in _cursor self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file On May 4, 8:08 am, bconnors wrote: > I’m getting the error “unable to open database file” > > I have sqlite3: > > pubu...@pubuntu:~/dj

i've looked at other discussions regarding the error “unable to open database file”

2009-05-04 Thread bconnors
I’m getting the error “unable to open database file” I have sqlite3: pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$ python Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more informa

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-28 Thread bconnors
ite/mysite On Apr 28, 8:57 am, Karen Tracey wrote: > On Mon, Apr 27, 2009 at 1:30 PM, bconnors wrote: > > > With my ubuntu I can’t type @ > > That's bizarre, but a topic for another list. > > > > > So I can’t do : > > export PYTHONPATH=/path/to/your/

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-27 Thread bconnors
@ that I can use? On Apr 27, 12:32 pm, Karen Tracey wrote: > On Mon, Apr 27, 2009 at 10:40 AM, bconnors wrote: > > [snip stuff related to removing old Django level] > > I found that my site/packages is in /usr/lib/python2.5/site-packages > > and in that directory I d

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-27 Thread bconnors
n Fri, Apr 24, 2009 at 1:43 PM, bconnors wrote: > > > i eliminated the field in Poll question = models.CharField > > (max_length=200) and Choice choice = models.CharField(max_length=200) > > and the error went away > > Sure, but eliminating use of CharFields (plus, as you

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-24 Thread bconnors
i eliminated the field in Poll question = models.CharField (max_length=200) and Choice choice = models.CharField(max_length=200) and the error went away On Apr 24, 11:35 am, bconnors wrote: > I get: > > Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) > [GCC 4.2.3 (Ubuntu 4.2.3-2

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-24 Thread bconnors
from=olddocs from django.db import models class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_length=200) votes

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-24 Thread bconnors
/site-packages /mnt/C/Python25/Lib/site-packages On Apr 24, 9:28 am, bconnors wrote: > I created a djsite folder and put new django there > > pubu...@pubuntu:~/djsite/mysite$ > + svn cohttp://code.djangoproject.com/svn/django/trunk/django-trunk > Checked out revision 10630. &g

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-24 Thread bconnors
rom? On Apr 22, 2:35 pm, Daniel Roseman wrote: > xOn Apr 22, 7:30 pm, bconnors wrote: > > > > > > > I just updated django > > > pubu...@pubuntu:~$ sh -x dj > > + svn cohttp://code.djangoproject.com/svn/django/trunk/django-trunk > > U    django-trunk/dj

mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-22 Thread bconnors
I just updated django pubu...@pubuntu:~$ sh -x dj + svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk Udjango-trunk/django/db/backends/oracle/creation.py Udjango-trunk/django/forms/models.py Udjango-trunk/django/contrib/gis/db/models/sql/query.py Udjango-trunk/dj

Re: don't know how to use http://docs.djangoproject.com/en/dev/howto/initial-data/

2009-04-22 Thread bconnors
$ python manage.py syncdb but got : Error: Couldn't install apps, because there were errors in one or more models: mysite.polls: __init__() got an unexpected keyword argument 'max_length' pubu...@pubuntu:~/django-trunk/django/bin/mysite$ On Apr 22, 11:00 am, bconnors wrote: > I get :

Re: don't know how to use http://docs.djangoproject.com/en/dev/howto/initial-data/

2009-04-22 Thread bconnors
n", } ] I copied my bob file into the fixtures directory. pubu...@pubuntu:~/django-trunk/django/bin/mysite$ python manage.py loaddata bob Loading 'bob' fixtures... No fixtures found. pubu...@pubuntu:~/django-trunk/django/bin/mysite$ On Apr 20, 3:28 pm, Daniel Roseman wrote: >

don't know how to use http://docs.djangoproject.com/en/dev/howto/initial-data/

2009-04-20 Thread bconnors
How do I set up a initial_data.json file? At http://docs.djangoproject.com/en/dev/howto/initial-data/ I came across this “Or, you can write fixtures by hand; fixtures can be written as XML, YAML, or JSON documents. The serialization documentation has more details about each of these supported ser

can’t input @ sign on a Windows PC which I installed Portable Ubuntu -- which gives you linux on it

2009-04-15 Thread bconnors
I have a Windows PC which I installed Portable Ubuntu -- which gives you linux on it. I’m trying to do Python manage.py syncdb so I can get Django working. Trouble is in Linux I’m not able to input @ sign 1 Tried ascii representation of @ sign #64 and 2 Tried hex representation of @

trying unsuccessfully to access django admin

2009-01-22 Thread bconnors
when I typed in: http://127.0.0.1:8000/admin/ I got: Traceback (most recent call last): File "C:\Python26\Lib\site-packages\django\core\servers \basehttp.py", line 278, in run self.result = application(self.environ, self.start_response) File "C:\Python26\Lib\site-packages\django\core\s

Writing your first Django app, part 2 error in using http://127.0.0.1:8000/admin/

2009-01-21 Thread bconnors
in followingWwriting your first Django app, part 2 when I typed in: http://127.0.0.1:8000/admin/ I got: Traceback (most recent call last): File "C:\Python26\Lib\site-packages\django\core\servers \basehttp.py", line 278, in run self.result = application(self.environ, self.start_response)

Re: trouble with the Database_Engine name in settings.py. i've unsuccessfully tried sqlite3

2009-01-16 Thread bconnors
ine 1, in ImportError: DLL load failed with error code 193 On Jan 16, 8:53 am, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2009-01-16, o godz. 14:39, przez bconnors: > > > Settings.py wants a sqlite3.db. When I loaded python 2.5 I got a > > sqlite3.dll and sqlite3.pyd

trouble with the Database_Engine name in settings.py. i've unsuccessfully tried sqlite3

2009-01-16 Thread bconnors
Settings.py wants a sqlite3.db. When I loaded python 2.5 I got a sqlite3.dll and sqlite3.pyd sqlite3.lib, but no sqlite3.db. I used sqlite3.pyd and got: File "C:\Python25\Lib\site-packages\django\db\__init__.py", line 16, in backend = __import__('%s%s.base' % (_import_path, settings.DATABAS

Re: the last line is plone\Python\lib\site-packages\django\db\backends\sqlite3\base.py

2009-01-14 Thread bconnors
my bad. i read that sqlite3 was supplied by python 2.5. i have python 2.4. the base.py says sqlite2 is correct for prior to python 2.5, but that didn't work either. tomorrow i install python 2.5. will that work? On Jan 14, 2:16 pm, bconnors wrote: > In the settings.py it says “ If yo

the last line is plone\Python\lib\site-packages\django\db\backends\sqlite3\base.py

2009-01-14 Thread bconnors
In the settings.py it says “ If you're new to databases, we recommend simply using SQLite (by setting DATABASE_ENGINE to 'sqlite3').” I did that but get this error: C:\PROGRA~1\plone\Python\jan13django\mysite>..\..\python manage.py syncdb Traceback (most recent call last): File "manage.py", l

trying to install a database for settings.py what should i do?

2009-01-14 Thread bconnors
i'm trying for a free download of mysql from the internet. the 1st 3 tries i've failed on. --~--~-~--~~~---~--~~ 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@googl

django installation problem

2009-01-12 Thread bconnors
At my pythonpath directory I type in: Python django-admin.py and I get : Type 'django-admin.py help' for usage, which is : #!/usr/bin/env python from django.core import management if __name__ == "__main__": management.execute_from_command_line() what can i do? --~--~-~--~~