Re: Search results in template

2017-12-22 Thread James Schneider
> > > > {% for object in object_list %} > {{ object.title > }} > > > >class="day">{{object.chron_date}} >

Re: Search results in template

2017-12-22 Thread James Schneider
Here's your problem. Your results are being entered in to your header and not in to the body of the HTML. I bet if you look at the source code of the rendered page, they're all there. Scratch that, I'm thinking of not . -- You received this message because you are subscribed to the Google Grou

Re: Search results in template

2017-12-22 Thread James Schneider
{% for object in object_list %} {{ object.title }} Here's your problem. Your results are being entered in to your header and not in to the body of the HTML. I bet if you look at the source code of the rendered page, they're all

Re: Search results in template

2017-12-22 Thread Malik Rumi
Thanks to both of you. The template context is what it should be, and putting all the view in the same block made no difference. :-( On Wednesday, December 20, 2017 at 6:24:57 AM UTC-8, James Schneider wrote: > > > > On Dec 19, 2017 5:12 PM, "Malik Rumi" > > wrote: > > I am implementing search o

Re: Model Design Questions

2017-12-22 Thread Mark Phillips
Thanks for the feedback! For James, the reference to MongoDB is very interesting. The more I looked into MongoDB, I am thinking it is just what I need for this project, since the db stuff is still so fluid. There is (was?) a django interface for MongoDB, at https://django-mongodb- engine.readthed

Admin adding images to blog via the admin section

2017-12-22 Thread Krafty Coder
How Can I add images to a my blog dynamically at any place while writing my blog... I found a tutorial on adding images to the form while people comment but I wasn't able to add it as am describing it to you. Any one please help, I have a link to the github repo, Y ̀̀all are welcome to contrib

Re: Calculate Response Time

2017-12-22 Thread Larry Martell
I had a need for this as well, and here is what I did. I split each request up into 4 parts: Query Time, Process Time, Render Time, and Network Latency. On the server I have a class all my request handlers subclass and inherit from. That class has a method for getting the data from the db and a met

Re: Let the model define the database with a custom router

2017-12-22 Thread gernot . cseh
I have the same problem as Stodge. What I know right know is that the method parameters of *allow_migrate* changed from *def allow_migrate(self, db, model) *to *def allow_migrate(self, db, app_label, model_name=None, **hints). *Since that change, you don't have any reference to a model class an

Re: Response is None in exception handling?

2017-12-22 Thread andyhasit
I have had a bit of bother because the project was written for django 1.4 and uses quite a few plugins, some of which are not actively maintained. Mostly the errors are easily traced, but this middleware issue doesn't raise helpful errors. Maybe there's something I can add to help, we should be

Re: Calculate Response Time

2017-12-22 Thread Jason
you can use an extension like https://chrome.google.com/webstore/detail/page-load-time/fploionmjgeclbkemipmkogoaohcdbig?hl=en to see how long a page takes to load you can also use https://github.com/django-silk/silk to see the time queries take to execute but the biggest factor will be using

Display objects in a respective html page

2017-12-22 Thread Victor Santos
Hi everyone. I am trying to make a project which have an app named pet, in this app in the model I have "choice field"(I don't know if this is the best way to say that). So, I want to display the objects according to the choice value in a respective template. Therefore if I put meat with food "

Calculate Response Time

2017-12-22 Thread liewsw28
Hi, I wonder how to calculate a response time for an entire Django project from where the user input the search criteria until the information are loaded and displayed onto the page. Please advise. Thanks. -- You received this message because you are subscribed to the Google Groups "Django

Re: Response is None in exception handling?

2017-12-22 Thread Jason
Interesting solution, and thanks for posting the solution for others to find. You've been having an adventure updating, haven't you? On Thursday, December 21, 2017 at 8:31:59 PM UTC-5, Andrew Buchan wrote: > > Hi Jason, > > The stack was all just the normal stuff that happens, all of which is