Django-tables2

2012-08-23 Thread MattDale
Your answer is LinkColumn instead of TemplateColumn. You can pass Args and kwargs with this in your table. I'll post an example of this when I get home. It's quite simple. I love django-tables2! -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django-tables2

2012-08-24 Thread MattDale
x27;t need any ajax features. Although I've lately been creating manual tables and using the "tablesorter.js" to handle quick sorting. On Friday, August 24, 2012 1:58:03 AM UTC-4, Alex Strickland wrote: > > On 2012/08/24 01:49 AM, MattDale wrote: > > > I love djan

Re: Django-tables2

2012-08-24 Thread MattDale
Here's an example of one of my tables. class NeedsTable(tables.Table): needQuantity = tables.Column() prod_id = tables.Column() description = tables.LinkColumn('needsdetail', args=[A('pk')]) department = tables.Column() order = tables.Column() priority = tables.Column(acces

RES: Django-tables2

2012-08-24 Thread MattDale
If you make that column a regular Column does it render properly? If not then confirm that you define the column exactly as it is spelled in your models.py(case and all). Once it renders properly as a regular Column, then try changing to a LinkColumn. -- You received this message because you

Re: New to Django, having difficulty creating first app. PLEASE HELP!

2012-08-24 Thread MattDale
Glad you are trying out Django. That error is telling you what's wrong The directory that you are in does not include the file "manage.py". Depending on your operating system, when you get this error, get the contents of the directory(windows, type dir and press enter) if the outputted list d

Re: Editable Tables

2012-09-04 Thread MattDale
Try DHTMLX Grid. I use it solely for the editable grid feature. It took a little while to style it so it fits with my site, but as far as simple AJAX editable grids, I couldn't find an better one. On Saturday, September 1, 2012 5:58:25 PM UTC-4, Sait Maraşlıoğlu wrote: > > Just seen a demo page

Re: Editable Tables

2012-09-05 Thread MattDale
I used this tutorial to get me going with the dhtmlx grid. http://www.rkblog.rk.edu.pl/w/p/using-dhtmlxgrid-django-application/ it's easy once you get the hang of it to make custom grids for each view, but not as cut and dry as it seems you are looking for. On Wednesday, September 5, 2012 4:

Re: Controlling GPIO on rasPi, need help with Refreshing switch status without reloading page via jquery

2013-02-05 Thread MattDale
I think you are on the right track with the jquery setup for handling the submission of the form. What you need to implement here is an AJAX form. I would do something like this, although I don't necessarily know what I'm doing: $(document).ready(function () { var form = $("#gpio_form") var b

Re: Problem with csrf

2013-06-12 Thread MattDale
You are correct in assuming that your first view using render_to_response shouldn't work without sending a RequestContext in. A much cleaner way is just to use the render function. https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#render which takes a lot of typing out of the typical re

Re: Point System in django

2013-06-12 Thread MattDale
A quick google didn't turn up any packages for your specific case, but you may not want to use a pre-built solution. Amirouche wanted some more information about how you plan on implementing the project. Here's a simple concept: It seems that you would want to customize the standard User mode

Complex(for me) queryset comparisons

2013-06-12 Thread MattDale
I am having an issue coming up with a way to analyze data that I've been collecting. I would rather not change my model definition at this point, but I am open to suggestions. A Bundle is a group of audio/video/AC cables that are taped together in our warehouse to our client's specification.

Re: Problem with csrf

2013-06-12 Thread MattDale
ject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext for people working off the docs like you did. On Wednesday, June 12, 2013 9:03:55 PM UTC-4, Nick Dokos wrote: > > MattDale > writes: > > > You are correct in assuming that your first view using > > re

Re: Complex(for me) queryset comparisons

2013-06-13 Thread MattDale
Thank you so much! The CSI field is the way to go I think. It definite gets me thinking in a new direction, rather than trying to mess with Django querysets, just design the model to give me the information I want! -- You received this message because you are subscribed to the Google Groups "D

looking for an apache/system admin master

2013-06-18 Thread MattDale
I've been using windows/django1.4/apache2.2 for a couple intranet apps and it has been working well. I recently had our admin open up a port in our firewall to deploy another app publicly. We weren't using the app and there were issues when testing, since both the admin and myself are newbies t

Re: looking for an apache/system admin master

2013-06-18 Thread MattDale
o not exist why are you worried? Just > block that IP address in the > vhost configuration and continuously monitor the server for strange or > unexpected traffic. > > You can look into something like munin or graphite. > > > On Tue, Jun 18, 2013 at 8:26 PM, MattDale >

Database Modeling Help - Relating Instance Fields to Instance Fields

2016-03-13 Thread MattDale
I'm working on an A/V Cable and Equipment management project and have run into an issue. The application is functioning as designed, but I'd like to add another feature that keeps track of connections between equipment and cables. Since the app is working as is, I'd like to fit this feature in

Re: Database Modeling Help - Relating Instance Fields to Instance Fields

2016-03-14 Thread MattDale
= GenericForeignKey('content_type', 'object_id') Then the PatchPoint model fields would be ForeignKey relations to PatchConnections. I guess writing out the question helped me to figure it out. Thanks, On Sunday, March 13, 2016 at 9:41:08 PM UTC-4, MattDale wrote: >