Re: Javascript frameworks with Django

2011-04-27 Thread Jani Tiainen
This is exactly like I've done it in the past and it's problematic. Specially with lazy loading features. (Though I haven't upgraded my apps to use 1.3 style media serving that could ease whole thing) One problem is that I need some dynamic parts for otherwise static JS code. Let's take an

Getting reStructuredText to work in admindocs

2011-04-27 Thread Mike Edwards
Hi all! I'm having a really tough time getting reStructuredText to work in the admindocs application. I've installed docutils with pip, but everything I see in my model details documentation under admin/docs/ is rendered as the original text, not converted to links and HTML formatting. So, when

Re: inlineformset_factory and many-to-many relationships

2011-04-27 Thread Kenny Meyer
Hi Rosemarie, Try a quick google search with terms like "django has no ForeignKey to " and you'll get a bunch of results. I promise. Here's only one of those results: http://stackoverflow.com/questions/609556/django-admin-inlining-foreign-key-issue AFAICS this issue has been discussed various

weird error on admin index

2011-04-27 Thread Pascal Moutia
Hi django users I'm trying to start my admin section of my django site but i always got an error apparently with the admin template, but i never touched it, there is the error: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'ListView' object has no attribute 'rindex'

Re: Running tests automatically as you work.

2011-04-27 Thread Kenny Meyer
Thanks for sharing! Very useful, indeed. The sleep() in your script is pretty clever, as I also tend to save files pretty frequently. On Wed, Apr 27, 2011 at 5:58 PM, Shawn Milochik wrote: > http://dpaste.com/hold/536487/ > > I cobbled this little script together that

Running tests automatically as you work.

2011-04-27 Thread Shawn Milochik
http://dpaste.com/hold/536487/ I cobbled this little script together that monitors my project folder and runs tests every time a .py file is saved. I'm sharing it in case anyone is interested. Feedback is welcome, of course. Interesting bits: pyinotify: This module plugs into kernel

Re: inlineformset_factory and many-to-many relationships

2011-04-27 Thread Rosemarie
ahh, and class MemberForm(ModelForm): class Meta: model = member exclude = ('password','date_joined','username','is_staff','is_active','last_login','is_superuser','firstAid') it has the class Meta: that's not the problem. Sorry, I'm all over the place here! -- You received this

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
On 04/27/2011 04:06 PM, Kenny Meyer wrote: Hi Shawn, http://docs.djangoproject.com/en/dev/ref/django-admin/#running-management-commands-from-your-code Does this answer your question? Kenny Never mind. More pdb action and I figured out that I had overwritten DJANGO_SETTINGS_MODULE at the

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
On 04/27/2011 04:06 PM, Kenny Meyer wrote: Hi Shawn, http://docs.djangoproject.com/en/dev/ref/django-admin/#running-management-commands-from-your-code Does this answer your question? Kenny Kenny, This is *exactly* what I was looking for. Unfortunately it doesn't work. It keeps saying that

Re: inlineformset_factory and many-to-many relationships

2011-04-27 Thread Rosemarie
Oh yeah, and the exact error I am currently getting is Exception at /members/edit/ has no ForeignKey to -- 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

inlineformset_factory and many-to-many relationships

2011-04-27 Thread Rosemarie
ahh, feeling very frustrated, hopefully someone can enlighten me :) -Creating a form to edit a "member" model -Member has a few many-to-many relationships. -I was initially getting an error about not being able to update m2m unless you use the manager for the other table -After googling, I found

Senior Web Apps Developer - Pasadena, CA Area

2011-04-27 Thread AceGerard
Senior Web Application Developer - Major Parts Distribution – Pasadena, CA Area Experience at a high traffic web property preferred (100,000+ page views a day – Pricegrabber, eHarmony, Disney, MySpace, Google, Yahoo, etc.) Experience in more than one area at said high traffic site preferred.

Re: Running Django tests from Python

2011-04-27 Thread Kenny Meyer
Hi Shawn, http://docs.djangoproject.com/en/dev/ref/django-admin/#running-management-commands-from-your-code Does this answer your question? Kenny On Wed, Apr 27, 2011 at 12:41 PM, Shawn Milochik wrote: > Sorry, I realize that last post is missing the context of the

Re: Error performing rar file download.

2011-04-27 Thread Cal Leeming [Simplicity Media Ltd]
So, let me get this straight. You are trying to serve a 299mb file, directly from your webapp instance? I'm just gonna come right out and say it... what you are doing is pretty stupid. I'd look into doing things properly (i.e. serving it from a real web server) rather than trying to resolve this

Re: Unexpected error

2011-04-27 Thread Czare1
Unfortunately I can't reproduce it. It happens sometimes on production environment. It disappears as soon as django processes are restarted. On 27 Kwi, 16:51, Shawn Milochik wrote: > If you know how to cause this error, run manage.py shell and import or > instantiate whatever

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
Sorry, I realize that last post is missing the context of the original question. Please see this: https://groups.google.com/d/topic/django-users/-4f3J1bJ10k/discussion Thanks, Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
I figure it's been long enough that I can bump this post. I'm currently using subprocess to do this. There must be an easy way to simply invoke the tests from within Python. So, how do you (within Python), do the equivalent of the following?: ./manage.py test myapp1, myapp2, myapp3 Thanks,

Re: User Profile and Form initial values

2011-04-27 Thread James
Doh! As much as I read in the forms section, I skipped the ModelForms part, even though that's what I was using! Thanks again! James -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Javascript frameworks with Django

2011-04-27 Thread Shawn Milochik
In my experience you almost definitely do want to take advantage of templates. It makes things a lot easier. Simple example: A main template (including things like the and tags and doctype). A detail template that just includes, say, a table of results. In action: The user

Re: How can I force a browser to cache my view?

2011-04-27 Thread Oliver Andrich
Hi Javier, 2011/4/27 Javier Guerra Giraldez > On Wed, Apr 27, 2011 at 10:48 AM, Oliver Andrich > wrote: > > So, I was looking into possible solutions. As you can't download anything > > via ajax directly, you have to trick the browser into caching

Re: How can I force a browser to cache my view?

2011-04-27 Thread Javier Guerra Giraldez
On Wed, Apr 27, 2011 at 10:48 AM, Oliver Andrich wrote: > So, I was looking into possible solutions. As you can't download anything > via ajax directly, you have to trick the browser into caching it and then > "download" the cached version. can't you create an invisible

Re: How can I force a browser to cache my view?

2011-04-27 Thread Oliver Andrich
Hi, 2011/4/27 christian.posta > You're trying to cache a pdf file/attachment? why? What's the purpose > of trying to do it that way? Why don't you just send it to the client when they ask for it? > Well, basically the reason is, that I want to show a progress dialog

Mysql NDB Cluster

2011-04-27 Thread pavera
Due to strangeness in the way mysql NDB Cluster works, select queries using a primary key or unique field in the where clause create a read lock for the duration of the connection... IE in a python shell: In [2]: from django.contrib.auth.models import User In [3]: user =

Re: Javascript frameworks with Django

2011-04-27 Thread christian.posta
I'm not sure I completely understand your question, but let me provide an answer and maybe that'll get us started on the right track. For the dynamic parts of the application, you could absolutely use django and view methods/classes to return json/xml or whatever data format you use. The data can

Re: How can I force a browser to cache my view?

2011-04-27 Thread christian.posta
Hi, You're trying to cache a pdf file/attachment? why? What's the purpose of trying to do it that way? Why don't you just send it to the client when they ask for it? Also, there's no way on the server to 'force' content to be cached on the client. The browser has to specifically allow it. All I

Upgrade to Django-1.3 seeing AttributeError: 'NoneType' object has no attribute '_info'

2011-04-27 Thread Bryan
I just downloaded and installed Django 1.3, I can't seem to run the console or server with this error: AttributeError: 'NoneType' object has no attribute '_inf $ python manage.py shell Traceback (most recent call last): File "manage.py", line 13, in execute_manager(settings) File

Re: Unexpected error

2011-04-27 Thread Shawn Milochik
If you know how to cause this error, run manage.py shell and import or instantiate whatever you have to in order to make this happen. The traceback you get there will be more useful. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: sqlite3 and south data migration

2011-04-27 Thread Shawn Milochik
On 04/27/2011 05:22 AM, Amit Sethi wrote: Hi all does sqlite3 not support data migration. I am trying to implement migration on my test fixtures using south however i get this particular error : AttributeError: 'DatabaseFeatures' object has no attribute 'supports_tablespaces' Not all

Re: Error performing rar file download.

2011-04-27 Thread Cal Leeming [Simplicity Media Ltd]
... dare I ask, how big is the file? Cal On Wed, Apr 27, 2011 at 3:20 PM, Elton Pereira wrote: > When attempting to download a zip file the following error is raised: > > 192.168.1.39 - - [27/Apr/2011 11:12:35] "GET /media/downloads/betha/ >

Re: Double security login system

2011-04-27 Thread Cal Leeming [Simplicity Media Ltd]
To be honest, this really isn't a complex system, you shouldn't need "interesting modules", maybe other than the pybulksms :S On Wed, Apr 27, 2011 at 3:28 PM, mendes.rich...@gmail.com < mendes...@gmail.com> wrote: > Dear Django developers, > > Recently we've been asked to start a medical

Error performing rar file download.

2011-04-27 Thread Elton Pereira
When attempting to download a zip file the following error is raised: 192.168.1.39 - - [27/Apr/2011 11:12:35] "GET /media/downloads/betha/ essencial/sybase9/windows32/win32.rar HTTP/1.1" 500 - Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/django/core/servers/

Double security login system

2011-04-27 Thread mendes.rich...@gmail.com
Dear Django developers, Recently we've been asked to start a medical project with the highest security level system and login wise. This means we have to work with a double login system either managed via cisco tokens or sms codes send to the owners phone. After some searching around i found the

Re: How i connect my PostgreeSQL to a Django?

2011-04-27 Thread Web Lucas
well, I unnistall the PostgreeSQL and install MySQL you can help me with the configuration ? Thanks On 26 abr, 15:40, Shawn Milochik wrote: > What error are you getting? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Can any one help me with this error "Page not found (404)" ?

2011-04-27 Thread Oleg Lomaka
Go on read 3rd part of tutorial about urls.py configuration http://docs.djangoproject.com/en/dev/intro/tutorial03/ On Wed, Apr 27, 2011 at 8:13 AM, Maaz Muqri wrote: > Page not found (404) > Request Method: GET > Request URL:http://127.0.0.1:8000/ > Using the

Re: Using composition in Django

2011-04-27 Thread Tom Evans
On Sun, Apr 17, 2011 at 9:21 PM, W Craig Trader wrote: > If your goal is to have an employee object that has direct access to all of > its related person object, and whose only new data field is a reference to > an address object, then you should change the Employee model

How can I force a browser to cache my view?

2011-04-27 Thread Oliver Andrich
Hi, I have a problem getting the browser to cache the data returned by my view. The basic idea behind this is, I want to download the data via ajax to provide a progress dialog and afterwards I set document.location.href to the same url and use the cached data. last_modified sets the last

Can any one help me with this error "Page not found (404)" ?

2011-04-27 Thread Maaz Muqri
Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/ Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: ^admin/ The current URL, , didn't match any of these. You're seeing this error because you have DEBUG = True in your Django

Using User.add_to_class

2011-04-27 Thread Venkatraman S
Hi, In my app, i have many functions added to the User class using User.add_to_class ; these are basically the functions that restrict the objects that can be viewed by the user during his session with the app. The functions are present in __init__.py in my project. My Q : is this a good

Re: How to display the data on the page from the database

2011-04-27 Thread Kenneth Gonsalves
On Wed, 2011-04-27 at 03:11 -0700, Daniel Roseman wrote: > On Wednesday, April 27, 2011 7:38:32 AM UTC+1, GKR wrote: > > > > How to display the data on the page from the database in tabular > format > > like msflexgrid with update facility. > > > > > > Please help > > > > First, you write some

Re: How to display the data on the page from the database

2011-04-27 Thread Daniel Roseman
On Wednesday, April 27, 2011 7:38:32 AM UTC+1, GKR wrote: > > How to display the data on the page from the database in tabular format > like msflexgrid with update facility. > > > Please help > First, you write some back-end code. Then, you write some front-end code. Hope that helps. -- DR.

sqlite3 and south data migration

2011-04-27 Thread Amit Sethi
Hi all does sqlite3 not support data migration. I am trying to implement migration on my test fixtures using south however i get this particular error : AttributeError: 'DatabaseFeatures' object has no attribute 'supports_tablespaces' -- A-M-I-T S|S -- You received this message because you

Javascript frameworks with Django

2011-04-27 Thread Jani Tiainen
Hi, I've been for a while been using ExtJS and Dojotoolkit. Specially very recently released ExtJS 4 brought lot of interesting features including loading on demand (Dojotoolkit had it for a good while). Now I'm facing good practice problem: I want to construct apps that relies pretty much

Re: Hyperlinks in Messages

2011-04-27 Thread Oleg Lomaka
Just use appropriate filter for your raw message. For example to make all urls clickable in you message, you can apply urlizefilter {% for message in messages %} {{ message*|urlize* }} {% endfor %} Or use

Re: Experience of migrating a Django site to DotCloud

2011-04-27 Thread Olli Wang
I had tried WebFaction before, but its SSH shell is extremely slow in my country. The first plan (40USD) should allow 3 instances, which means I can assign one for Django site, one for database, and one for a worker to handle time-consuming work. I don't know whether WebFaction is designed for

How to display the data on the page from the database

2011-04-27 Thread GKR
How to display the data on the page from the database in tabular format like msflexgrid with update facility. Please help -- 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