Intensive View Tracking

2012-10-07 Thread jondykeman
Hello, I'm looking for some conceptual input. I am starting to plan the development of an app utilizing highly confidential data that will need to meet certain governmental requirements. I had dealt with auditing of the data etc, but it ends up they will require a timestamped history of

Re: Can I simply disable the CSRF? crazy

2012-09-24 Thread jondykeman
+1 For doing it right from the beginning. I was tempted to disable when trying to deal with AJAX especially early on. Below is some code with jQuery so that you won't need to manually feed the token through your AJAX. jQuery(document).ajaxSend(function(event, xhr, settings) { function

Re: Extending templates

2012-09-17 Thread jondykeman
: > > On Mon, Sep 17, 2012 at 7:31 PM, jondykeman <jondy...@gmail.com> > wrote: > > Can you put the code of the template you are extending this one with? > Here is the file that is extending: > > {% extends "report/report_header.html" %} >

Re: Extending templates

2012-09-17 Thread jondykeman
Can you put the code of the template you are extending this one with? What I would guess from what you said is that you might be using {% block head %} {% endblock %} in the other template that extends this one. In that case you would override that for loop. If you want to add to the head and

Re: java script alert from view after sucessfull opreation

2012-09-17 Thread jondykeman
You can feed variables back through HttpResponse() using json serializer. eg. from django.utils import simplejson response = {'Name': Name, 'Email': activeUser.email} json = simplejson.dumps(response) return HttpResponse(json, mimetype="text/json") You should really look into AJAX as suggested

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread jondykeman
Hello, I am in a very similar situation. I would in an environment that deals with sensitive data collection. Everything has to be two-factor authenticated, in the secure server zone etc. As part of this we need logging of every action ever taken, by whom, when, and what the changes were. At

complicated permissions

2012-09-09 Thread jondykeman
Hi Everyone, I was hoping to get some input on how other people deal with complicated permission situations. I have banged my head against these concepts I think I need some fresh eyes. - User accounts can create and manage their own content. - Users that are part of the same company can

Re: Announcement of GUI for Creating Models

2012-09-09 Thread jondykeman
It might only come up in the context of my work, but we do a lot of data collection, and so when using the GUI all of the variables we create as destined to be part a of specific modelform. As such, we way want to end up with two forms (eg. Baseline, Purchase History) each of which will be

Re: Announcement of GUI for Creating Models

2012-09-09 Thread jondykeman
choice in > your implementation, can you change its value and label? > Do/will you support most of the field and model options? > > On Sun, Sep 9, 2012 at 7:46 AM, jondykeman <jondy...@gmail.com> > wrote: > > with attachment. > > > > > >

Re: Announcement of GUI for Creating Models

2012-09-09 Thread jondykeman
with attachment. On Sunday, September 9, 2012 8:46:10 AM UTC-6, jondykeman wrote: > > Also, I saw on your github that you are looking for choices support. > > Just to give my insight I have implemented the attached for adding choices. > > It is ajax via a modal that pre-

Re: Announcement of GUI for Creating Models

2012-09-09 Thread jondykeman
, September 9, 2012 8:37:48 AM UTC-6, jondykeman wrote: > > Timothy - I am implementing something similar (Model GUI.png attached) > that is within a larger structure that not only generates models.py, but > registers them to the admin, builds the modelforms, and generates JS

Re: Announcement of GUI for Creating Models

2012-09-09 Thread jondykeman
Timothy - I am implementing something similar (Model GUI.png attached) that is within a larger structure that not only generates models.py, but registers them to the admin, builds the modelforms, and generates JS logic etc. Rather than such a thing being useful for developers I have found it

favourite reusable apps

2012-08-03 Thread jondykeman
Hi Everyone, I have found when getting into Django that at least once a month I find a reusable app that replaces the need for what I had spent the last ~2 weeks figuring out how to write myself. As such, I thought it might be nice to start a thread of everyone's favourite / most useful

Re: form resubmit on refresh problem

2012-05-14 Thread jondykeman
unt number in the session. 2) How should I go about selecting which type of session is best for me to use? Thanks again! JD On Sunday, May 13, 2012 7:39:53 PM UTC-6, jondykeman wrote: > > Hello, > > I have a form submission problem I can't seem to figure out a way around. >

Re: help with foreignkeys

2012-05-13 Thread jondykeman
On Sunday, May 13, 2012 7:53:58 PM UTC-6, psychok7 wrote: > > yes, like a park doesn't have to have comments, but all the comments must > have an associated park and user all the time. > > what is the django syntax for me to achieve this? > > On Monday, May 14, 2012 2:49:18

Re: help with foreignkeys

2012-05-13 Thread jondykeman
As far as I understand it the ForeignKey will have to be unique=True and null=False. I want to get a better sense of what you are trying to achieve. Is it that you want to link comment and park only some of the time? JD On Sunday, May 13, 2012 7:41:39 PM UTC-6, psychok7 wrote: > > so i have

form resubmit on refresh problem

2012-05-13 Thread jondykeman
Hello, I have a form submission problem I can't seem to figure out a way around. Normally, once a form was submitted I would HttpResponseRedirect() to the main page. However, there is something I can't seem to make work with this approach. The form is being completed/submitted in the

Re: Access specific ModelForm field option within array of ModelForms for use with .js

2012-05-03 Thread jondykeman
You're right! Thank you. I have a custom template filter in the app to format the radio options a certain way and I can just add this in to pick out the ones needing the additional onChange. JD On Tuesday, May 1, 2012 9:27:01 PM UTC-6, jondykeman wrote: > > Hello, > > I have t

Access specific ModelForm field option within array of ModelForms for use with .js

2012-05-02 Thread jondykeman
Hello, I have the following situation: I am rendering an array of ModelForms to my template. ie. formArray = [, , ] In the template I display the forms with the following: {% for form in formArray %} {{ form }} {% endfor %} Previously I have accessed certain ModelForms using {% if