How to communicate with Authorize.net?

2007-07-21 Thread Greg
Is there any documentation on how to send form data to a Authorize.net from within a Django view? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Which database, and why?

2007-07-21 Thread Nicola Larosa
walterbyrd wrote: > I know that PostgreSQL is recommended, but why? Are the django > developers assuming a high-traffic, database intensive site. Not necessarily. Using a separate server, instead of an embedded one, you pay a small setup cost once, and then reap benefits all the time. > Are

Re: foreign key on database not created with models referencing from other application

2007-07-21 Thread james_027
Hi russ, nice to hear from you again... As of now I am only saying that no foreign key is created by just checking the database tables itself, I haven't perform any django query. doing the describe main_profile and main_cellusage I got the same results ... but for me the MUL value on Key

Using the enumerate() function in a loop?

2007-07-21 Thread Greg
In my template I have the following info: {% for a in mychoice %} {{ a.style.manufacturer }} - {{ a.style.collection }} - {{ a.style }} - {{ a.choice.size }} - ${{ a.choice.price }}.00 - Delete Item This works except for the very last value which is 0. Obviosly these needs to be the position

Re: Storing binary data into a table

2007-07-21 Thread Russell Keith-Magee
On 7/21/07, Stefan Matthias Aust <[EMAIL PROTECTED]> wrote: > > I want to store binary data as part of my model. I didn't find > something like a BlobField or BinaryField. What's the best approach to > achieve this? Seems that Python has no byte array type (yet), so the > Python way is probably

Re: Script works in django and in manage.py but doesn't anywhere else

2007-07-21 Thread Russell Keith-Magee
On 7/22/07, Kai Kuehne <[EMAIL PROTECTED]> wrote: > > ImportError: No module named kaikuehne ... > When I run the code above in ``python manage.py shell`` it works perfectly so > I guess I'm just missing to set something what mange.py does: You need to set up your PYTHONPATH. Your project should

Re: foreign key on database not created with models referencing from other application

2007-07-21 Thread Russell Keith-Magee
On 7/22/07, james_027 <[EMAIL PROTECTED]> wrote: > > 5. then i run python manage.py syncdb > > the result is ... in my cellusage table there is no foreign key > created. but in the profile table there is a foreign created. > mysql> describe mytest_profile;

Re: Deleting an item out of my dictionary?

2007-07-21 Thread SmileyChris
On Jul 22, 5:09 am, Greg <[EMAIL PROTECTED]> wrote: > It's just weird how that line 'del > request.session['cart'][0]' works fine in the showcart function but > doesn't work right in the deletecart function. It sounds like that the session just isn't getting saved. See

Re: Using django-comment-utils

2007-07-21 Thread Chris Moffitt
I've moved my comments over there. Thanks. --~--~-~--~~~---~--~~ 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,

Re: I have a class in my Models that contains one field which happens to be an integer type

2007-07-21 Thread jeffself
On Jul 20, 11:09 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/21/07, jeffself <[EMAIL PROTECTED]> wrote: > > > > > How do I get the season to > > display in the select box of my season field on the Game form? > > Normally this would be fixed by using def __unicode__(self) but

Re: Deleting an item out of my dictionary?

2007-07-21 Thread mykola
I was curious and reproduced your code in shell. It looks correct. I think when you go back, the cart object stays in the session. If you update cart once you go back to the page, it gets updated in the session. Here is the example based on your code: >>> cart=[] >>> s='s' >>> c='c' >>>

edit_inline and empty models

2007-07-21 Thread Tyson Tate
http://dpaste.com/14978/ I have Project and ProjectImage models. The goal is to allow me, while adding a Project object in the admin interface, to add a few related ProjectImage objects (anywhere from one to several). However, when adding a Project object, the empty ProjectImage rows get

Re: Using django-comment-utils

2007-07-21 Thread James Bennett
On 7/21/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > I'm trying to get django-comment-utils working and I'm having a persistent > problem where I get the following error when running syncdb: Well, there is an issue tracker where I'll happily help people with any questions they have:

Using django-comment-utils

2007-07-21 Thread Chris Moffitt
I'm trying to get django-comment-utils working and I'm having a persistent problem where I get the following error when running syncdb: Error: Couldn't install apps, because there were errors in one or more models: blog: (1146, "Table 'myapp.django_content_type' doesn't exist") So, if I comment

Re: Some questions on Django's authentication system

2007-07-21 Thread eXt
Hey, thats really cool - simple and effective solution. I'm really impressed. Thanks a lot. Regards -- Jakub Wisniowski --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

refreshing won't reload page

2007-07-21 Thread Evan H. Carmi
Hello, I am running Django with lighttpd. I will make a change in the code and try and refresh the page through firefox. The page will reload but error page shows me the old code. I can refresh it 20-30 times before it will reload the new code. It seems as if something is being cached. I don't

Script works in django and in manage.py but doesn't anywhere else

2007-07-21 Thread Kai Kuehne
Hi again, I still get this error where the tagging application is trying to import my project, instead of an application. What I'm trying to do is just to set an objects tags using django-tagging outside a running application and outside of ``manage.py shell``. kaikuehne/delicious/sync.py:

Re: Which database, and why?

2007-07-21 Thread William Waites
On 21 juil, 01:14, "Joe Bloggs" <[EMAIL PROTECTED]> wrote: > > MySQL accepts the date 31st February 2007 and has several other lax views of > rounding data or squeezing it in when it should reject it. SQLite has this problem as well, being untyped and effectively coercing everything to strings

►►Get FREE Satellite TV on your PC or Laptop◄◄

2007-07-21 Thread Gary RAF
Why pay over $90.00 a month for Cable or Satellite TV services, If you Can Get it FREE? Instantly Turn your Computer into a Super TV Get over 3000 STATIONS on your PC or Laptop... For More Details: http://shortlinks.co.uk/35w --~--~-~--~~~---~--~~ You received

Re: Template Works on Django Server but not on Apache

2007-07-21 Thread oggie rob
> PythonPath "['/home/rith'] + sys.path" > > > This is the templates in settings.py: > TEMPLATE_DIRS = ( > "/home/rith/soccerux/templates", > ) > > Any idea why it's not working with apache? Thank you. Apache probably can't "read" any files/directories because your home directory

Re: Template Works on Django Server but not on Apache

2007-07-21 Thread nokor
Oops, I meant: but it's NOT working when I view it on apache at: http://localhost/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Template Works on Django Server but not on Apache

2007-07-21 Thread nokor
I can view my test at: http://127.0.0.1:8000/ but it's now working when I view it on apache at: http://localhost/ It gives me the TemplateDoesNotExist error. : http://dpaste.com/14947/ This is the apache httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython

Re: foreign key on database not created with models referencing from other application

2007-07-21 Thread james_027
hi, in the case of my application here is what i done (I start from scratch): 1. django-admin.py startproject ksk 2. django-admin.py startapp main 3. edit the settings.py file: database engine, name, user, password, password, and then add the ksk.main in the installed_apps INSTALLED_APPS = (

Re: newforms for idiots and designers?

2007-07-21 Thread to_see
Austin Govella wrote: > I'm *almost* getting forms to work, but not quite. > > Can anyone recommend a newforms tutorial written for designers? > Something akin to Zoolander's School for Kids Can't Program Good. > I know the feeling. Here's a link to lots of tutorials - some of the others will

Re: Deleting an item out of my dictionary?

2007-07-21 Thread Greg
I've done some more testing with these two functions. It seems that when the function 'deletecart' is accessed the line 'del request.seesion['cart'][0]' is working. It's deleting the first element in request.session['cart']. Because I get directly returned to my showcart function and the first

Re: Missing packages

2007-07-21 Thread hq4ever
Same issue here, I think the book should be updated with this section to avoid more confusion for django newbiews like myself. On Jul 18, 3:17 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > The Django Book had directed the commenting out of the packages. Once > I uncommented, things

Re: How to implement Django-like models?

2007-07-21 Thread theju
[snipped] > Unfortunately, I do not really understand the code > that does all the magic in the django.db.models module. I don't think > it is possible to use Django models without a database. Therefore, > can anybody point me to some tutorial/documentation on how to do this > kind of meta

Re: i18n on win 32 : make_message.py doesn't find anything to translate

2007-07-21 Thread Carl Karsten
olivier wrote: > Hi group, > > I'm running Windows XP, django from the trunk, pyhon 2.5.1. > As recommended here [1], I run gettext natively (not Cygwin), using > gettext for win32 [2]. > My templates, my python source files and my settings are all made by > the book. > > Nevertheless,

i18n on win 32 : make_message.py doesn't find anything to translate

2007-07-21 Thread olivier
Hi group, I'm running Windows XP, django from the trunk, pyhon 2.5.1. As recommended here [1], I run gettext natively (not Cygwin), using gettext for win32 [2]. My templates, my python source files and my settings are all made by the book. Nevertheless, make_message doesn't find any string to

Re: Can Django call cscript.exe to run vbscripts

2007-07-21 Thread Carl Karsten
You might want to describe the current problem you need to solve. good chance it will be easier to solve using a few lines of python/django than trying to run your existing vbscript. Carl K braveheart wrote: > Anyone else have other solution ? > > On Jul 20, 8:54 pm, Dennis Allison <[EMAIL

Re: How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
Russ, 2007/7/21, Russell Keith-Magee <[EMAIL PROTECTED]>: > > Therefore, > > can anybody point me to some tutorial/documentation on how to do this > > kind of meta programming in Python? > > Google is your friend. Well, that friend is sometimes too unspecific or too helpful and overwhelming.

Re: How to implement Django-like models?

2007-07-21 Thread Russell Keith-Magee
On 7/21/07, Stefan Matthias Aust <[EMAIL PROTECTED]> wrote: > > Therefore, > can anybody point me to some tutorial/documentation on how to do this > kind of meta programming in Python? Google is your friend. Guido wrote a decent introduction to the topic when types and classes were unified in

Re: foreign key on database not created with models referencing from other application

2007-07-21 Thread Russell Keith-Magee
On 7/21/07, james_027 <[EMAIL PROTECTED]> wrote: > > I dont know what you mean by what_I_have_done? Help me to replicate exactly the steps that you have taken to make this problem occur. I have your model file. If _I_ use that model file, and it works fine for me. Obviously you have done

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
2007/7/21, Tim Chase <[EMAIL PROTECTED]>: > I believe you're looking for the word "arbitrary". Yes. Thanks. Geeks should however take into consideration that a "random access file" isn't called an "arbitrary access file" ;) -- Stefan Matthias Aust

hi

2007-07-21 Thread fantazicİ
güzel bir grup beklerim bayanlar seviyeden ödün vermeden fantazilerinizi paylasabileceginiz bir grup http://groups.google.com.tr/group/fantazici --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
This request is slightly off topic. I like the way attributes of Django models are defined. I'd like to use a similar approach for a pure Python, too. Unfortunately, I do not really understand the code that does all the magic in the django.db.models module. I don't think it is possible to use

Re: 4 beginner's questions

2007-07-21 Thread Tim Chase
>>> Let's assume you have users who are allowed to assign nick names to >>> theirselves and still all thoses nick names must be different. This is >>> want I call a random ID. >>> >> If a user assigns it, it is not random, by any definition of random I >> can think of. > > From the server's

Storing binary data into a table

2007-07-21 Thread Stefan Matthias Aust
I want to store binary data as part of my model. I didn't find something like a BlobField or BinaryField. What's the best approach to achieve this? Seems that Python has no byte array type (yet), so the Python way is probably to use a (raw) string here. But a CharField is unicode so I cannot use

Re: Debugging file uploads

2007-07-21 Thread Stefan Matthias Aust
Russ, 2007/7/20, Russell Keith-Magee <[EMAIL PROTECTED]>: > > The Django debug HTML page is great for finding bugs in templates and > > view functions. However, if you have an error in a view function with > > a request object that contains a - say - 200MB file object, well, then > > your

Make money

2007-07-21 Thread Samitha
Hi all, Want to make some money,, Just clicks away.. Log in to http://bux.to/?r=samitharansara Surf their ads, just watch 30 seconds of each add Cash will withdraw to your paypal account If you don't have paypal account, create one www.paypal.com Regards, Samitha

Re: Multiple Edit

2007-07-21 Thread Kenneth Gonsalves
On 21-Jul-07, at 4:42 PM, Christopher wrote: > Can no one out there help me with this or is this just a really stupid > question? you should be patient and wait for an answer - I personaly try never to ask questions on a friday as the reply may only come on tuesday ;-) As for your

Re: Multiple Edit

2007-07-21 Thread Christopher
Can no one out there help me with this or is this just a really stupid question? On Jul 20, 1:44 pm, Christopher <[EMAIL PROTECTED]> wrote: > I've been looking for a way to have a model and in the Admin be able > to edit a couple at one. Is this even possible? I know models that > have

Re: superuser login forgotten

2007-07-21 Thread Russell Keith-Magee
On 7/21/07, schmitzkatze <[EMAIL PROTECTED]> wrote: > > I have forgotten my superuser login, what to do? > Even with another project I have to have it. > I can not login ad the admins page Use the Python prompt to modify the admin User. Run ./manage.py shell, then run the following commands.

Re: Rails Juggernaut like extension for python

2007-07-21 Thread Emanuele Pucciarelli <[EMAIL PROTECTED]>
On 20 Lug, 20:45, serialx <[EMAIL PROTECTED]> wrote: > Is there something like this already? Or if not, does anyone like to > port it to python and django? :D I had proposed to develop a push framework for Django; you can find the original draft at http://hosted.corp.it/django/full.html . I

superuser login forgotten

2007-07-21 Thread schmitzkatze
I have forgotten my superuser login, what to do? Even with another project I have to have it. I can not login ad the admins page. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Can Django call cscript.exe to run vbscripts

2007-07-21 Thread braveheart
Anyone else have other solution ? On Jul 20, 8:54 pm, Dennis Allison <[EMAIL PROTECTED]> wrote: > actually, look at module subprocess rather than os as the subprocess > module contains the current best practice solution. (Check the Python > 3000 docs to see what will be going away and avoid

Re: Can Django call cscript.exe to run vbscripts

2007-07-21 Thread braveheart
Thanks for the info. On Jul 20, 8:54 pm, Dennis Allison <[EMAIL PROTECTED]> wrote: > actually, look at module subprocess rather than os as the subprocess > module contains the current best practice solution. (Check the Python > 3000 docs to see what will be going away and avoid using them.

Re: removal of Django

2007-07-21 Thread Kenneth Gonsalves
On 21-Jul-07, at 2:35 PM, Chris Hoeppner wrote: >>> to setup a django-development environment on my linux pc. And now >>> it's >>> "autoloading" somewhere else? Heck, I must have missed the >>> autoloading-installer. ;) >> >> must be some virus called django >> > > A quite useful virus, IMHO.

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
2007/7/21, Nis Jørgensen <[EMAIL PROTECTED]>: > > Stefan Matthias Aust skrev: > > > > Let's assume you have users who are allowed to assign nick names to > > theirselves and still all thoses nick names must be different. This is > > want I call a random ID. > > > If a user assigns it, it is not

Re: Rails Juggernaut like extension for python

2007-07-21 Thread Neil Blakey-Milner
On 7/20/07, serialx <[EMAIL PROTECTED]> wrote: > > Is there any juggernaut-like extension for python? > > http://rubyforge.org/projects/juggernaut/ > > It's a push framework implemented using flash and a custom web server. > It's integrated with rails in a quite clean way. > > Is there something

Re: 4 beginner's questions

2007-07-21 Thread Nis Jørgensen
Stefan Matthias Aust skrev: > > Let's assume you have users who are allowed to assign nick names to > theirselves and still all thoses nick names must be different. This is > want I call a random ID. > If a user assigns it, it is not random, by any definition of random I can think of. I do

Re: removal of Django

2007-07-21 Thread Chris Hoeppner
Kenneth Gonsalves escribió: > > On 21-Jul-07, at 1:51 PM, Christian Hoeppner wrote: > >> That's just silly. Or I might be dumb. It took me 2 weeks the first >> time >> to setup a django-development environment on my linux pc. And now it's >> "autoloading" somewhere else? Heck, I must have

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
2007/7/19, Collin Grady <[EMAIL PROTECTED]>: > However, it seems like a poor solution to spam INSERTS until you get a > valid ID. Why exactly do you need a random ID? Let's assume you have users who are allowed to assign nick names to theirselves and still all thoses nick names must be

Re: removal of Django

2007-07-21 Thread Kenneth Gonsalves
On 21-Jul-07, at 1:51 PM, Christian Hoeppner wrote: > That's just silly. Or I might be dumb. It took me 2 weeks the first > time > to setup a django-development environment on my linux pc. And now it's > "autoloading" somewhere else? Heck, I must have missed the > autoloading-installer. ;)

Re: removal of Django

2007-07-21 Thread Christian Hoeppner
[EMAIL PROTECTED] escribió: > Hi all.Django auto loaded onto my computer from( I believe) a Harry > Potter web site.I want to remove it,as it is messing up one of the web > sites that I frequent.The site shows a 404 error.As I am a newby to > computer with NO codeing experience,I am at a loss as

Re: newforms for idiots and designers?

2007-07-21 Thread Christian Hoeppner
Austin Govella escribió: > I'm *almost* getting forms to work, but not quite. > > Can anyone recommend a newforms tutorial written for designers? > Something akin to Zoolander's School for Kids Can't Program Good. > > > > (And I *have* been reading. What's odd is that I used similar >