many-to-many between apps

2013-07-31 Thread Mike Dewhirst
Is it possible to establish a many-to-many relationship between a model in one app and a model in another app? I've just tried to do it and run into what I think is circular import trouble. This is a retro-fit after initial deployment. #in item.models.reference class Reference(models.Model):

Re: many-to-many between apps

2013-07-31 Thread Mike Dewhirst
On 31/07/2013 5:08pm, Mike Dewhirst wrote: Is it possible to establish a many-to-many relationship between a model in one app and a model in another app? Yes. I needed to avoid importing the class and use ... class Region(models.Model): ... various fields ... ref = models.ManyToMan

Moving data in a browser.

2013-07-31 Thread Nigel Legg
The attached screenshot, simpletab, shows the simple cross tab I have created using Django (my first functioning app). This takes in a csv data file and an xml definition file. The user selects the variables they want to see, and the table is created. My question is that the user may want to flip

Re: Learning how to build a web site for my python games and a blog

2013-07-31 Thread Cal Leeming [Simplicity Media Ltd]
Try this; http://learnpythonthehardway.org/book/next.html http://gettingstartedwithdjango.com/ Cal On Tue, Jul 30, 2013 at 3:07 PM, Randy Baxley wrote: > I am trying to learn Django. I have a good base in Python having worked > several basic MOOCs and second level classes. My major short term

j'ai rajouté une application rapidsms-xforms à rapidsms et maintenant ça ne marche pasn car la version de django de ce dernier est django1.5 et celui de rapidsms est une ancienne version et ça ne marc

2013-07-31 Thread mimi89
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. V

django1.5 pour rapidsms

2013-07-31 Thread mimi89
depuis que j'ai rajouté l'application rapidsms-xforms à rapidsms, celui-ci ne marche plus car la version de ce dernier est Django1.5 et que pour rapidsms c'est un ancienne version! Les tags donnent un messages d'erreurs! Si quelqu'un peut m'aider!!! -- You received this message because you are

Re: Moving data in a browser.

2013-07-31 Thread Bill Freeman
Things that you want to do in the browser should probably be done in the browser. If so, then Django isn't directly involved, until you want to persist the changes. There are a number of JavaScript libraries that support dragging things around a table. Long ago I did something like this using, I

What is the best way to architect this part of the application?

2013-07-31 Thread Chris Ryan
I thank you again for answering a different question a couple of weeks ago. Today, however, I'm struggling with the best way to architect a part of my app. I'm hoping that you can help me figure out the best way to provide the necessary functionality to the user. I am building an application

Re: how to create a new table in existing app

2013-07-31 Thread Mike Dewhirst
On 31/07/2013 5:57pm, Mike Dewhirst wrote: I just defined a new many-to-many relationship in an existing table then manually defined the many-to-many table model. Unfortunately, syncdb didn't/wouldn't create the table for me. No errors, just no table! Is there a trick to it? Yes. Just needed

Remote Authentication and Session Management

2013-07-31 Thread bruno
I'm using Django to build a *frontend* application which will fetch data from a remote (RESTful, for the matter) API for presentation to users that can authenticate within the API. This API will, upon every successful login, output a *cookie* which I will need to use in further requests, and to

Re: Learning how to build a web site for my python games and a blog

2013-07-31 Thread Randy Baxley
These are definitely good suggestions for going deeper in Python and C. I am not real confident that the poll tutorial and vagrant are going to work for me though since my current sticking point is getting the NAME fielod to point to mydb. It does something funny with the r hat which may be c

Re: Remote Authentication and Session Management

2013-07-31 Thread Bill Freeman
Is this an inactivity timeout? If so, you could perform an interaction with the back end every time the user interacts with you, even if the user's interaction doesn't require it, thereby extending the timeout just as though the user was working directly. Just performing an interaction periodicly

How to profile Django App?

2013-07-31 Thread zweb
I have a web page that is loading very slow. It uses a Javascript tree grid component - data loaded via XML - XML generated by LXML - Django view - Django ORM - MYSQL DB. I need to find out where is the performance bottleneck. It could be one or more of the above components. What are the best

Re: pdf conversion error

2013-07-31 Thread Charly Román
2013/7/29 Harjot Mann : > I am trying to convert the html templates in my project from localhost > using wkhtltopdf. I used weasyprint and a script also but the getting > the same errror from all. It creates the pdf but inside this is > written: > Not Found > The requested URL /accounts/login/ was

Re: pdf conversion error

2013-07-31 Thread Charly Román
*haven't defined 2013/7/31 Charly Román : > 2013/7/29 Harjot Mann : >> I am trying to convert the html templates in my project from localhost >> using wkhtltopdf. I used weasyprint and a script also but the getting >> the same errror from all. It creates the pdf but inside this is >> written: >> N

django jquery

2013-07-31 Thread Robin Lery
Hi, Can any one please suggest good book or tutorials if possible regarding django and ajax (jquiry). I looked at one book "Django JavaScript Integration AJAX and jQuery", but it was very confusing and outdated as well, didn't help much.Please suggest tutorials or books with latest version. Would

Re: pdf conversion error

2013-07-31 Thread Harjot Mann
On Wed, Jul 31, 2013 at 9:23 PM, Charly Román wrote: > You probably have in your view the decorator 'login_required' and you > have defined de correct url of login whit LOGIN_URL in your settings. Yeah..it was the problem. Thanks for your help but I already solved it yesterday. Now its working f

Re: django jquery

2013-07-31 Thread Jonathan Baker
You've posed a pretty open-ended question. Are you looking to provide an API using Django that then a client communicates with via Ajax using jQuery? Or are you interested in, say, using jQuery to manipulate the UI generated by Django templates? If you can be more specific in your goals, more direc

Re: Impossible? Django with NTLM SSO auth on windows?

2013-07-31 Thread Andre Terra
On Sun, Jul 7, 2013 at 5:01 PM, Yves Rausch wrote: > Hello guys, > > we had a similar issue and created a new module on apache 2.4 where you > can use ntlm authentication on a windows machine. > Here is the binary download and some information (including a link to > github repository): http://www

Re: django jquery

2013-07-31 Thread Robin Lery
I was thinking about client communication via ajax and jquery, but also interested in jquery ui. I am a django noob and also with ajax. So its very confusing for me how to integrate these two. Can you please advice where to start? Thank you. On Wed, Jul 31, 2013 at 9:54 PM, Jonathan Baker < jonat

Re: Using standard Django admin User forms for Custom User model?

2013-07-31 Thread Russell Keith-Magee
On Wed, Jul 31, 2013 at 12:36 PM, Victor Hooi wrote: > Hi, > > When you add a Django User through the admin, it presents you with a > initial screen to enter a username and password (/admin/auth/user/add/), > and then handles hashing for you. > > Also, when you go to edit a User, it gives you a

Upgrading to 1.5 on Centos

2013-07-31 Thread Larry Martell
On my Mac, running python 2.7, I upgraded from 1.4 to 1.5 by doing this: rm -rf /Library/Python/2.7/site-packages/django Followed by python setup.py install in the dir I untar-ed Django-1.5.1 to. This all worked fine. On a Centos system running python 2.6 I did: rm -rf /usr/lib/python2.6/site-

Looking for the right way to specialize the User model

2013-07-31 Thread Paul Whipp
I'm using Django 1.5 and I needed an api to control the addition of users and the management of users on those groups. Django's rest framework proved a good starting point but I hit issues with the ManyToMany relation groups which means that there is no model for the user_group which in turn

Re: django1.5 pour rapidsms

2013-07-31 Thread Victor Rocha
can you post the traceback you are getting? On Wednesday, July 31, 2013 7:49:10 AM UTC-4, mimi89 wrote: > > depuis que j'ai rajouté l'application rapidsms-xforms à rapidsms, celui-ci > ne marche plus car la version de ce dernier est Django1.5 et que pour > rapidsms c'est un ancienne version! > L