Django on Codenmvy

2016-04-09 Thread bob gailer
I am new to Codenvy. Do you have any experience with Codenvy / Django? I could use some help. I will post questions if I hear from an experienced user. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: Problem with order_by when using paginator

2016-04-09 Thread Rahmat Ramadhan
I was fixed it by change order_by('id') to .order_by('-id') then adding reversed in {% for i in objects reversed %} i wonder if there is another solution to fix this problem. thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: google/bing maps using django

2016-04-09 Thread Sergiy Khohlov
Check django-leaflet. Also best way for storing lon lat use geodjango with postgis 9 квіт. 2016 23:26 "Xristos Xristoou" пише: > if i have two fields in my model with coordinates lon = models.FloatField > () > >lat = models.FloatField() > > how to show this

Re: variable inside @media screen

2016-04-09 Thread Peter of the Norse
You also need a max-width or this will always be true. > On Mar 11, 2016, at 2:21 AM, Rose wrote: > > @media screen and (min-width:767px){ > Peter of the Norse rahmc...@radio1190.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Problem with order_by when using paginator

2016-04-09 Thread Rahmat Ramadhan
Hallo there. i have problem with my order_by when using paginator. the data are not sort well. data becomes random. when i do qs = Messages.objects.filter( main_msg=get_message).order_by('datetime') the data are sort well by order_by. but when i'm using paginator = Paginator(

Re: Trouble getting posted

2016-04-09 Thread James Schneider
> > I have tried to post a couple of things in the last few days with no results. My posts are never returned to me. So this is another test. > Google Groups does not send the post back to the OP, which is annoying, confusing and non-intuitive, and not configurable AFAIK. -James -- You receive

Re: Trouble getting posted

2016-04-09 Thread Gary Roach
On 04/09/2016 02:37 PM, jorrit...@gmail.com wrote: Did you subscribe to the topics you posted? Have been for months. This is a new problem but seems to not be a problem with this site. The trouble seems to be unique to the Debian User site. Thanks for your reply. Gary R. -- You received thi

Trouble getting posted

2016-04-09 Thread jorrit787
Did you subscribe to the topics you posted? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, sen

Re: google/bing maps using django

2016-04-09 Thread Xristos Xristoou
if i have two fields in my model with coordinates lon = models.FloatField() lat = models.FloatField() how to show this place in google maps in my html template ? Τη Σάββατο, 9 Απριλίου 2016 - 10:50:08 μ.μ. UTC+3, ο χρήστης Xristos Xristoou έγραψε: > > h

google/bing maps using django

2016-04-09 Thread Xristos Xristoou
hello i want some toturial or examble to easy way ping and show one place in google maps/bing maps with lat/log and can be dynamic because i have more places to show in my web site ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Trouble getting posted

2016-04-09 Thread Gary Roach
I have tried to post a couple of things in the last few days with no results. My posts are never returned to me. So this is another test. Gary R -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Simple to say but difficult in django?

2016-04-09 Thread Vijay Khemlani
Your question seems to be incomplete considering you are using a login_required decorator then you also want to limit access to the file If you put it in your static directory then it will be public if anyone knows the URL to the file On Sat, Apr 9, 2016 at 1:56 PM, Luca Brandi wrote: > Hi, >

Re: Multidimensional form requirements

2016-04-09 Thread Scot Hacker
On Friday, April 8, 2016 at 11:27:01 AM UTC-7, Tundebabzy wrote: > > I don't know if I'm off target but. > > I'm presently work on something like this where I have have to save three > models at a go. One model is a stand alone while the other two have a > foreign key to the stand alone mo

Simple to say but difficult in django?

2016-04-09 Thread Luca Brandi
Hi, I need to make something very simple but it seems all exmplesI found on the web, do not work, so I am sure this group will find the right solution (please consider I am a newbie so please be specific and detailed in your reply): I just need to store a pdf file in my sytic files and have a li

Re: Suggest newsletter to integrate in django project

2016-04-09 Thread Luca Brandi
Thanks, seems just few of the list use django 3... Furthermore I like the way mailchimp is structured...so need something similar... thanks anyway Il giorno sabato 9 aprile 2016 16:19:18 UTC+2, jorr...@gmail.com ha scritto: > > There's a good chance you will find something that fits your needs at

Formset:What's INITIAL_FORMS for?

2016-04-09 Thread Tundebabzy
Hello, When using formset, what's the use of the management form's INITIAL_FORMS and why is it always set as 0. Does INITIAL_FORMS need to be incremented when new forms are added? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Rendering Form Fields That Are Passed To Context Inside Of An Object

2016-04-09 Thread jorrit787
Are you sure you have the name of the fields correct? According to the documentation {{ form.fieldname }} should do what you want. It sounds like formsets would be more appropriate for what you're trying to achieve though. And yeah, if you're going to go that specific you might as well render al

Re: Suggest newsletter to integrate in django project

2016-04-09 Thread jorrit787
There's a good chance you will find something that fits your needs at django-packages :) https://www.djangopackages.com/grids/g/newsletter/ On Thursday, April 7, 2016 at 12:55:08 PM UTC+2, Luca Brandi wrote: > > Hi, > followed some tutorials on the web integrating Mailchimp in my django > proj

Re: Should I use Django's builtin control panel for user facing purposes?

2016-04-09 Thread jorrit787
There's nothing physically stopping you from letting all your site's users use the Django Admin, but at least in spirit the Admin is only meant to be used by your staff. Even then, consider whether you need the Admin at all for your purposes: it sounds like what you're trying to do could easily

Re: inventory in Django

2016-04-09 Thread jorrit787
Have you looked into Django ecommerce packages that are already out there? They may fit most of your needs, and you could extend them where they don't. https://www.djangopackages.com/grids/g/ecommerce/ -- You received this message because you are subscribed to the Google Groups "Django users"

Re: How to know which models have changed and need make migrations?

2016-04-09 Thread Tim Graham
Also, your models might reference a setting whose value differs between development and production. This probably won't cause any problems but will trip up the migrations autodetector into thinking that a migration needs to be made. https://code.djangoproject.com/ticket/24648 On Saturday, Apri

Re: How to know which models have changed and need make migrations?

2016-04-09 Thread jorrit787
I've run into the problem of migration files not being added to source control with PyCharm because PyCharm doesn't seem to automatically commit auto-created files unless you explicitly tell it to in the settings (and even then it doesn't always work). -- You received this message because you

Re: Problems with dumpdata/loaddata

2016-04-09 Thread jorrit787
I jus tested it again and it happens even without opening the file in an editor first. Would that be a bug then? On Friday, April 8, 2016 at 10:23:43 AM UTC+2, Ramiro Morales wrote: > > It shouldn't. Are you sure you haven't opened and saved the json file with > a text editor that might be addi

Re: variable to a template

2016-04-09 Thread Chris Bartos
There are probably 3 ways you can do this: 1) Use a Filter You should be able to use the "add" filter to concatenate two strings. 2) Map the elements of your array in your v

Re: Does anyone use Django on bluehost? "Cant find fcgi module" error on line 9 .

2016-04-09 Thread Rob Groves
I am using Django on bluehost. I suspect that the issue you are seeing is that Django1.9 has stopped supporting fcgi. I found that out when I tried to upgrade from 1.8 a while back. I think you can probably copy over the fcgi module from the Django 1.8 release, but I haven't tried that. I ju