Re: JS static file is not accessible in Django

2017-01-10 Thread M Hashmi
RIght click on the page when local server is running and click inspect elements. Check if there is any error in console section. If JS is showing file then it means the issue is with the function not with loading file. Send snapshot for further help. On Tue, Jan 10, 2017 at 10:19 PM, wrote: > Ih

Re: data must be QuerySet-like (have count() and order_by()) or support list(data) -- NoneType has neither

2017-01-10 Thread Ali khan
Vijay, I've tried many ways but its not working. Can you show me an example the way you proposed. Its also surprising for me that in Django Users group so little people contribute to solving issues. Thanks Vijay for your response at the first place. Regards, Ali On Sun, Jan 8, 2017 at 7:53 AM,

JS static file is not accessible in Django

2017-01-10 Thread anjalimk68
Ihave an application for that I am trying to use multifilter js script. I am able to load the file through my application. Ex: /static/js/multifilter.js if i open this link it will print my js file on html without any issues, But in the application js functionality is not working. Can anyone s

Re: Form Inheritance. Order is Reversed.

2017-01-10 Thread Justin J
Thanks Mathew, I do have multiple forms, and that is why the nested loop. I'm going to try to upgrade to the latest 1.10 and see if it solves the problem. If anything I will be able to use the field_order attribute. I reverted to a commit before I upgraded from 1.5 to 1.8 and the problem was n

RE: Form Inheritance. Order is Reversed.

2017-01-10 Thread Matthew Pava
Hi Justin, Something that caught my eye is {% for d in forms.myforms %}. If you have one form, D, then I don’t think you should need to loop through the other forms. After saying that, it does look like there was a change in field order in Django 1.7. See https://github.com/pennersr/django-all

RE: Trying to print data containing a space in html

2017-01-10 Thread Matthew Pava
You might want to consider just wrapping the text in a tag. {% for x in data %}{{ x }}{% endfor %} From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Asad Jibran Ahmed Sent: Tuesday, January 10, 2017 1:39 AM To: django-users@googlegroups.com Subject: Re: Try

Re: Question Is Django Rest Framework only for APIs or can i Use it to create Users for a website?

2017-01-10 Thread Melvyn Sopacua
On Friday 06 January 2017 23:13:12 Robert librado wrote: > Thanks i guess i will go with djangi all auth instead kind of leaning > towards a social network Yeah, you should, cause it's the opposite of what Django Rest Framework does. Django All Auth connects an *external API* to *your applicati

Re: list? queryet? joining together

2017-01-10 Thread MikeKJ
May be another way of doing this? 5 tools @ 9 hours = 45 hours maximum possible utilisation 1 tool = 9 hours maximum possible utilisation each tool is a list pa = [] (tool1) pb = [] (tool2) etc max = 9 need to know the count of objects loop all the booking objects use the max count as the inde

Re: Method Flowchart for Generic Editing Views

2017-01-10 Thread Melvyn Sopacua
On Monday 09 January 2017 19:39:49 Greg Schmit wrote: > In the documentation, I notice that for the base views and the generic > display views, there exists a descriptive "method flowchart" that I > can use to figure out which method I need to use to perform a task. > However, for the generic editi

Method Flowchart for Generic Editing Views

2017-01-10 Thread Greg Schmit
In the documentation, I notice that for the base views and the generic display views, there exists a descriptive "method flowchart" that I can use to figure out which method I need to use to perform a task. However, for the generic editing views this seems to be missing. I end up looking throug

Re: Single Page Application in Django

2017-01-10 Thread Chris Bartos
Hi, You don't have to use one or the other. You can use both authentication mechanisms. You would just list each authentication mechanism backend in your settings.py file. So, what would happen is the authentication framework will loop through each of the backends and if one backend fails than

Re: Dynamic Models

2017-01-10 Thread Guilherme Leal
Well, some more context then: I've worked at a company that have exactly the same logic writen in perl and using an ORM built inside the company. The ideia was to build a plataform to interact with the DB, and with this interaction, extend the information about the table been created/modified or t

Re: Dynamic Models

2017-01-10 Thread Jani Tiainen
Problem, as you see is that Django is build for static models. So if you have a dynamic model, how would you construct (efficient) queries in your other views unless you know the structure of the data? Well you kind of can't since there is no structure. Also, what purpose would such a models s

Re: Dynamic Models

2017-01-10 Thread Guilherme Leal
@Jani Tiainen I really like Django ORM, and will make everything possible to keep it. I think that losing the ORM will make things harder in the big picture because it would make the logic built by the developers a lot more error prone and not "database agnostic" (at least as far as thedatabases ba

Re: Trying to print data containing a space in html

2017-01-10 Thread ludovic coues
load only search for python module in apps specified in INSTALLED_APPS in settings.py. So either moving templatetags to the webpage folder or adding mysite to INSTALLED_APPS would help. 2017-01-10 9:57 GMT+01:00 Asad Jibran Ahmed : > Can you try moving the templatetags directory to be underneath

Re: Trying to print data containing a space in html

2017-01-10 Thread Asad Jibran Ahmed
Can you try moving the templatetags directory to be underneath the webpage directory. I think that templatetags should be a part of an app. Right now your templatetags are under the mysite folder, which if I'm not wrong isn't considered an app. Regards, Asad Jibran Ahmed http://blog.asadjb.com

RE: Trying to print data containing a space in html

2017-01-10 Thread Anjali Mk -X (anmk - WIPRO LIMITED at Cisco)
Asad, My Application directory hierarchy is like this: Project is “mysite”, Application within the project mysite is “webpage” mysite |_ webpage |_ __init__.py |_ views.py |_ urls.py |_ models.py