Re: Simple Join with no matching primary keys

2017-03-08 Thread ayshalab
Tables are coming from different sources, for each single datetime value there is a different url, in order to tie up the single source data it must live inside its own table. On Wednesday, March 8, 2017 at 9:11:42 AM UTC-7, Matthew Pava wrote: > > Why are there no better design options to

Re: Simple Join with no matching primary keys

2017-03-08 Thread ayshalab
Thanks for your answer, the models represent two different tables, identical structure but have to be segregated, there is no better design options to implement them. Any leads on how to do the join? > > > > Models cannot be joined. There is no Model.join(). Models are objects you > can

Simple Join with no matching primary keys

2017-03-07 Thread ayshalab
Greetings, I am trying to do a join on the following 2 models (tables) class Rio1(models.Model): datestr = models.DateTimeField() source = models.TextField() dFlag = models.TextField() url = models.TextField() class Meta: managed = False db_table = 'rio1'

how to display JSON data in template

2016-06-27 Thread ayshalab
Greetings, How can I access and display JSON data in a template html file? I am getting the JSON data back in the javascript console as follows : I tried {{ jason_data }} but no luck. Thank you! Here is how I am returning the json data in views.py: return HttpResponse(json_obj,

Django/Ajax update existing template page

2016-06-22 Thread ayshalab
Hello everyone, I am trying to do the following: Grab Year/Month values from a template page via dropdown select list and send them via ajax post (this part is working) Process the submitted values and return new variables to the same template page, it works if I hard code the Month/Year but

Displaying a list of images

2016-04-13 Thread ayshalab
Hello, I can display single images that are manually uploaded fine, but how can I display a group of images inside a certain directory? Instead of manually typing the image file names each time there is a new image added to the folder? So if I have 2 images or 20 images stored, I would like to