Re: Problem with Django Captcha

2006-05-18 Thread Ian Holsman
Hi. I wrote that app, and it does work (for me at least) some of the main problems I have had in the past with it is the lack of dependant libraries. you need pycaptcha and Imaging and pycrypto (if you want to use the register app in that SVN) If you want, feel free to ping me on irc (my nic

Re: Announcing Tabblo, a Django app

2006-05-18 Thread Pradeep Kishore Gowda
Wow! great app Ned! I like it better than Flickr already :). http://www.btbytes.com/blog/tabblo-rocks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: Announcing Tabblo, a Django app

2006-05-18 Thread PythonistL
I wanted to try it out but I can not sing up. --~--~-~--~~~---~--~~ 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,

Problem with Django Captcha

2006-05-18 Thread Scott Anderson
Hi all, I'm a new Django user trying to get the captcha app working with svn Django. I've done the following: 1) Placed the captcha app in my site directory (which is named 'craft') 2) Added a reference to "craft.captcha" to INSTALLED_APPS in settings.py 3) Placed {% load captcha %} and {% capt

Re: How debug django 0.95 in windows + komodo

2006-05-18 Thread Jeremy Dunck
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Any idea? > > At least I want to know how use the integrated Komodo python shell... i > like colors :) I recently saw this: http://www.petersblog.org/node/1051 but I haven't tried it. --~--~-~--~~~---~--~---

Re: Blocking in views?

2006-05-18 Thread Malcolm Tredinnick
On Thu, 2006-05-18 at 17:09 -0400, Jay Parlar wrote: > For the app I'm working on, the user uploads a file, the server does a > whole bunch of work on it, and then returns the result. > > This work takes 10-20 seconds to do. It's ok if the user has to wait > 10-20 seconds for the result to come b

Re: How debug django 0.95 in windows + komodo

2006-05-18 Thread [EMAIL PROTECTED]
Any idea? At least I want to know how use the integrated Komodo python shell... i like colors :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: no INSTALLED_APPS

2006-05-18 Thread Don Arbow
On May 18, 2006, at 3:22 PM, Jeremy Dunck wrote: > Also, I tried to repro this issue, but I can't find a 2.3 Django egg > for download (as in the initial Django-0.91-py2.3.egg ). > Mac OS X python installs have some sort of weird thing going on. I originally downloaded 0.91 and ran setup.py (or

Re: no INSTALLED_APPS

2006-05-18 Thread Joseph Kocherhans
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > same thing: > > File > "/Users/Stirman/Development/django_src/django/bin/django-admin.py", > line 2, in ? > from django.core import management > ImportError: No module named django.core > > Man, didn't know we would be jumping down

Re: no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
same thing: File "/Users/Stirman/Development/django_src/django/bin/django-admin.py", line 2, in ? from django.core import management ImportError: No module named django.core Man, didn't know we would be jumping down the rabbit hole on this one... but I do really appreciate the help. Seems

Re: no INSTALLED_APPS

2006-05-18 Thread Joseph Kocherhans
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I think we're getting closer... fixed my .bashrc file, both the PATH > and PYTHONPATH var's as follows: > > PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/local/mysql/bin:$HOME/Development/django_src/django/bin > PYTHONPATH=$HOME/Library/Frame

Re: no INSTALLED_APPS

2006-05-18 Thread Jeremy Dunck
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > now when I execute "django-admin.py startproject mysite" I get: I assume django-admin.py is running your default python (not 2.4). In that python: import sys print sys.path and give us those results. :) --~--~-~--~~---

Re: no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
I think we're getting closer... fixed my .bashrc file, both the PATH and PYTHONPATH var's as follows: PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/local/mysql/bin:$HOME/Development/django_src/django/bin PYTHONPATH=$HOME/Library/Frameworks/Python.framework/Versions/2.4:$HOME/Development/django_src/dja

Re: no INSTALLED_APPS

2006-05-18 Thread Jeremy Dunck
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Okay, my easy-install.pth only has one line now: > /Library/Python/2.3/site-packages/setuptools-0.6a9-py2.3.egg ... PYTHONPATH=$HOME/Library/Frameworks/Python.framework/Versions/2.4:$HOME/Development/django_src > > Does that help? When

Best way to run dev and production site concurrently on same server?

2006-05-18 Thread Rob Hudson
I've recently completed a first milestone of a project and want to publish it. I've got two URLs: www.mydomain.com and dev.mydomain.com. I'm not too concerned if dev is public, I just don't want to break the production website while I'm developing. What's the best way to handle this? Currently

Re: no INSTALLED_APPS

2006-05-18 Thread Joseph Kocherhans
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Okay, my easy-install.pth only has one line now: > /Library/Python/2.3/site-packages/setuptools-0.6a9-py2.3.egg > > I found my newer installation of django at: > ~/Development/django_src > > and my PYTHONPATH variable in .bashrc: > PYTHO

Re: no INSTALLED_APPS

2006-05-18 Thread Jeremy Dunck
On 5/18/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > Open up the easy-install.pth file in your site-packages directory. > There should be a reference to the Django egg in it. Delete that line. > It's telling Python to use the Django .egg, but since you deleted the > .egg, it complains. Sorry for m

Re: no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
Oh, and, you may notice reference to two different versions of Python. I installed 2.4, but if I just type "python", I get 2.3.5. If I type python2.4, I get 2.4.3. Don't know if that matters at all? -stirman --~--~-~--~~~---~--~~ You received this message becau

Re: no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
Okay, my easy-install.pth only has one line now: /Library/Python/2.3/site-packages/setuptools-0.6a9-py2.3.egg I found my newer installation of django at: ~/Development/django_src and my PYTHONPATH variable in .bashrc: PYTHONPATH=$HOME/Library/Frameworks/Python.framework/Versions/2.4:$HOME/Develo

Re: no INSTALLED_APPS

2006-05-18 Thread Joseph Kocherhans
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Still the same error... maybe this is an indication that my svn install > didn't work as I thought it did. If I do have teh dev build of django, > where would I find it? That error is definitely related to the egg though. The newest de

Re: no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
Still the same error... maybe this is an indication that my svn install didn't work as I thought it did. If I do have teh dev build of django, where would I find it? Thanks again!!! -stirman --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: no INSTALLED_APPS

2006-05-18 Thread Jay Parlar
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > errr, kind of confused: > > /Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/ > > The .egg is a directory with the django stuff in it? If I remove that > directory and try to start a django project, I get: > > Traceback (m

Re: no INSTALLED_APPS

2006-05-18 Thread Joseph Kocherhans
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > errr, kind of confused: > > /Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/ > > The .egg is a directory with the django stuff in it? If I remove that > directory and try to start a django project, I get: I would have th

Re: no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
errr, kind of confused: /Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/ The .egg is a directory with the django stuff in it? If I remove that directory and try to start a django project, I get: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framewo

Re: no INSTALLED_APPS

2006-05-18 Thread Jeremy Dunck
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > is it possible the newer > version of django is installed somewhere else and I'm using the old > version? Sure, just move the .egg file out of your site-packages directory. :) --~--~-~--~~~---~--~~ You re

Blocking in views?

2006-05-18 Thread Jay Parlar
For the app I'm working on, the user uploads a file, the server does a whole bunch of work on it, and then returns the result. This work takes 10-20 seconds to do. It's ok if the user has to wait 10-20 seconds for the result to come back, but it's *not* ok if other users are blocked from accessin

Re: no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
>>> import django >>> django Looks like you're right, but I followed the instructions to use svn to get the dev build AFTER I installed 0.91 ... is it possible the newer version of django is installed somewhere else and I'm using the old version? Thanks! -stirman www.stirman.net --~--~-

Re: no INSTALLED_APPS

2006-05-18 Thread Jeremy Dunck
On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > And, the next command in the tutorial, python manage.py syncdb, > returns: > > Error: Your action, 'syncdb', was invalid. > Run "manage.py --help" for help. import django django.VERSION ? It sounds like you're running on an old version o

no INSTALLED_APPS

2006-05-18 Thread [EMAIL PROTECTED]
Going through the tutorial, and when I get to the section on the first page explaining what's in the INSTALLED APPS section of settings.py, I stopped because my INSTALLED_APPS in empty: INSTALLED_APPS = ( ) And, the next command in the tutorial, python manage.py syncdb, returns: Error: Your act

Announcing Tabblo, a Django app

2006-05-18 Thread Ned Batchelder
Hey all, We've just launched a Django-based application for story-telling, focused on sharing photos: Tabblo.  We'd love for you to come and try it out.  Adrian has demonstrated his skill yet again by creating a nice tabblo about his visit to London: Moreno at Le Quecumbar, London. Django ha

Re: dojo

2006-05-18 Thread lcaamano
You should add these dojo info to the cookbook mentioned above. http://code.djangoproject.com/wiki/CookBookAdminTools -- lpc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: [solved] Could not load custom filter module

2006-05-18 Thread Facundo Casco
Facundo Casco wrote: > Hi, I'm tring to make custom filters but I can't make Django find my module > I get this error: > Could not load template library from django.templatetags.amx2_filters, > No module named amx2_filters > > The directory structure is: > ~/base/amx/templatetags/__init__py > ~/ba

Re: Best way to do a dynamic sidebar?

2006-05-18 Thread Luke Plant
On Tuesday 16 May 2006 22:24, Jay Parlar wrote: > It feels like I should be able to define a template just for the > sidebar, and insert the content of that template into whatever > template is being rendered. I guess that the 'include' tag would do > that, but then I'd need to explicitly pass th

Re: integrating complex SQL updates with manipulators?

2006-05-18 Thread Ivan Sagalaev
mazurin wrote: >if request.POST: >new_data = request.POST.copy() > > WHERE SHOULD THIS FUNCTIONALITY GO? # >moveOK = moveNode(item.id, new_data['parent']) > >errors = manipulator.get_validation_errors(new_data) > > Is it necessery that moveNode is cal

Re: Record is show in admin, not in view (0.95) Failure in inheriterance?

2006-05-18 Thread [EMAIL PROTECTED]
Ok Maybe out a warning in the docs? Is good idea then go for 1-1 relationships? --~--~-~--~~~---~--~~ 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@googlegro

Re: Tagging things

2006-05-18 Thread Malcolm Tredinnick
On Thu, 2006-05-18 at 12:48 +0200, Jesper Nøhr wrote: [...] > I was helped by Malcom on IRC, so the only decent thing to do, is to > post the solution here. [...] > You can call it like this: > > tags = ["foo","bar"] > > all = Contract.objects.from_tags(tags) > > What happens is that you count

send_email problem

2006-05-18 Thread Russell Blau
I see that django.core.email was recently patched to use the DEFAULT_CHARSET setting to encode all outgoing email. This is a problem -- for my application, I want UTF-8 as my default charset for HttpResponses, but I need to be able to send mail in plain ASCII to communicate with a remote host. I

Re: There is no v0.92 or v0.95 release of Django

2006-05-18 Thread Ted
The best solution would be just to release 0.92 today, as is (unless it is fatally flawed which it doesn't seem to be) People know that it is not a major release since it is still a 0.xx release so nobody will complain about a few minor bugs. It is important not to scare off potential users just

Re: Multi-app project

2006-05-18 Thread Douglas Campos
the nice thing about django and its staff is that you always get some kind of "RTFM" :) Thanks for pointing this out On 5/18/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Thu, 2006-05-18 at 08:49 -0300, Douglas Campos wrote: > > I'm working at an audit system in django. > > > > There'

Re: Help please with get_absolute_url in admin and public pages

2006-05-18 Thread Paul Childs
Thanks everyone. --~--~-~--~~~---~--~~ 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 PROTECTE

Re: dojo

2006-05-18 Thread va:patrick.kranzlmueller
just found out an easier way: forget nr. 3 and change AddRichTextEditing.js to this: document.write(''); document.write('dojo.require ("dojo.widget.Editor2");'); var AddEditor = { init: function() { var helptext = document.getElementsByTagName('p'); for

Re: Multi-app project

2006-05-18 Thread Malcolm Tredinnick
On Thu, 2006-05-18 at 08:49 -0300, Douglas Campos wrote: > I'm working at an audit system in django. > > There's a stupid question lying: Can I make models that use foreign > keys from other apps? > > like this > > myproject/app1/models.py: > Class AnyThing(models.Model): > a = models.Integ

Multi-app project

2006-05-18 Thread Douglas Campos
I'm working at an audit system in django. There's a stupid question lying: Can I make models that use foreign keys from other apps? like this myproject/app1/models.py: Class AnyThing(models.Model): a = models.IntegerField(blah, blah) myproject/app2/models.py: Class AnyThang(models.Model):

Re: integrating complex SQL updates with manipulators?

2006-05-18 Thread mazurin
Hi, I'd like to clarify with some sample code. I hope this makes my question clearer. My question is about the line marked with an uppercase comment. Mikah # def modify(request, item_id): ''' View to modify a single node. ''' try: manipulator = nodes.ChangeManipulator(ite

integrating complex SQL updates with manipulators?

2006-05-18 Thread mazurin
Hi, I'm currently implementing a table of nested sets using Django, based on Joe Celko's discussion of the subject. For those of you not familiar with it, the only really relevant part of the problem is that when you modify certain database fields, the corresponding fields in some other records

Re: Trouble resolving URLs

2006-05-18 Thread Simon Johnston
Thanks to both Michael and Ivan - I spent all my time staring at the new urls file and not at the original project file :-( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: dojo

2006-05-18 Thread va:patrick.kranzlmueller
i guess you mean the editor widget: 1. drop dojo (kitchen sink) into /media/ (like /media/dojo) 2. add this script as AddRichTextEditing.js into /media/js/admin/ ### this script looks for the help text "Rich Text Editing" and replaces the textarea before with the dojo widget var AddEditor = {

Re: Tagging things

2006-05-18 Thread Jesper Nøhr
On 5/18/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: [...] I was helped by Malcom on IRC, so the only decent thing to do, is to post the solution here. I'll try to explain as well as I understand it. First some code: class Tags(models.Model): tag = models.CharField(maxlength = 50)

Re: dojo

2006-05-18 Thread olive
I use TinyMCE which is very good. There is an how-to in the Wiki at http://code.djangoproject.com/wiki/CookBookAdminTools --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Django and static files URLs

2006-05-18 Thread [EMAIL PROTECTED]
It looks very clear now! Driven by the simplicity of the tutorial, and by the buzz around how time-saving web frameworks are (in general, Django in particular), it took me a while to figure out that a bit of customization was sometimes necessary. Thanks Phil and Malcolm. Accédez au courrier éle

Re: Two lists generated by generic view on one page, impossible?

2006-05-18 Thread Kosmo
Now that was suprisingly easy, I just used the news view and imported the Events from the event app and called them both and called both of the apps and made a render_to_response with both of them in the news/index.html. I thought that there was much more work involved :| Thanks for the super fa

Re: Two lists generated by generic view on one page, impossible?

2006-05-18 Thread Malcolm Tredinnick
On Thu, 2006-05-18 at 00:03 -0700, Kosmo wrote: > Well, if that is the case, is there a good tutorial on making views > since I'm not so good with python yet. Don't worry. They're not so hard. Just keep in mind that if you are learning Django and Python simultaneously, you may have to backtrack f

dojo

2006-05-18 Thread Mary Adel
hi all I am using magic removal i need to use text widget in my admin interface so can anyone tell me how i could do this Thanks, Mary --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Two lists generated by generic view on one page, impossible?

2006-05-18 Thread Kosmo
Well, if that is the case, is there a good tutorial on making views since I'm not so good with python yet. Also, if I want to have a view that is not tied to any app, how do I define it in the urls.py file? --~--~-~--~~~---~--~~ You received this message because