How to develop thematic maps with data from databases?

2016-05-17 Thread Leobel
Took a while trying to develop a product that allows me to work with maps, have a check in html 5, but not take it to django, who can help me -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-17 Thread minom du
thank you very much i remove the try_files line and it work fine thanks again James Schneider於 2016年5月14日星期六 UTC+8下午1時24分06秒寫道: > > >> location / { >> uwsgi_pass unix://tmp/school.sock; >> include uwsgi_params; >> try_files $uri $uri/ =404; >> } >> > > I have a feeling this section is what is

Re: Is there a spanish version of Two Scoops of Django?

2016-05-17 Thread David Alejandro Reyes Milian
Thanks Russell, take care friend!! El martes, 17 de mayo de 2016, 19:07:04 (UTC-4), Russell Keith-Magee escribió: > > Hi David, > > On Wed, May 18, 2016 at 6:40 AM, David Alejandro Reyes Milian < > davidreye...@gmail.com > wrote: > >> Thanks for asking. I could like to make a full Spanish

Re: Is there a spanish version of Two Scoops of Django?

2016-05-17 Thread Russell Keith-Magee
Hi David, On Wed, May 18, 2016 at 6:40 AM, David Alejandro Reyes Milian < davidreyesmilia...@gmail.com> wrote: > Thanks for asking. I could like to make a full Spanish translation of > this amazing book, how can I speak to Audrey or Danny? Can you help? > Danny is @pydanny on twitter; Audrey

Re: timezone application aware

2016-05-17 Thread David Alejandro Reyes Milian
I think this will really help you, worked a lot for me!! http://tommikaikkonen.github.io/timezones/ -- 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

Re: Is there a spanish version of Two Scoops of Django?

2016-05-17 Thread David Alejandro Reyes Milian
Thanks for asking. I could like to make a full Spanish translation of this amazing book, how can I speak to Audrey or Danny? Can you help? Greetings! El martes, 17 de mayo de 2016, 17:09:22 (UTC-4), Russell Keith-Magee escribió: > > Hi David, > > To the best of my knowledge, there aren’t any

Re: timezone application aware

2016-05-17 Thread Simon Charette
Hi Noumia, > Whatever operations they do within the database, all dates will be saved with > timezone, right? Django stores datetimes using the UTC timezone on all database backends. > But how do you identify the timezone of a user? is that something that I > should ask the user for and save

Re: Is there a spanish version of Two Scoops of Django?

2016-05-17 Thread Russell Keith-Magee
Hi David, To the best of my knowledge, there aren’t any translations of Two Scoops available - but I’ve asked Audrey and Danny to confirm. If there is, I’ll report back and let you know. Yours, Russ Magee %-) On Tue, May 17, 2016 at 9:03 PM, David Alejandro Reyes Milian <

Re: timezone application aware

2016-05-17 Thread Stephen J. Butler
I'm only experienced with the Oracle backend, but I believe only Postgres stores datetimes with timezone information. Otherwise, Django assumes all datetimes in the database are UTC. For the most portability you should assume that database values will be in UTC. The user's local timezone is

timezone application aware

2016-05-17 Thread Noumia Ngangoum
Hi, how really work timezoned application? Let's stay I set my app to be used worldwide, which means I have user in america, in africa, in europe... Whatever operations they do within the database, all dates will be saved with timezone, right? But how do you identify the timezone of a user?

Django get_prep_value giving headache

2016-05-17 Thread Ankush Thakur
So I'm trying to re-do my personal blog in Django, and have messed up the models and all a bit. Here's the model file: http://pastebin.com/sFhnLkWS Basically what happened was that at the start I had only the Post model. Then I added the Category model and put in a ForeignKey field in Post. Then

Re: How to flush/clear database for single app, i.e. NOT the Project?

2016-05-17 Thread JoeCodeswell
Dear Erik and James, Thanks for the insightful, deep answers to my questions. This is invaluable information. Thanks again to both of you. Love and peace, Joe On Monday, May 16, 2016 at 10:19:36 AM UTC-7, JoeCodeswell wrote: > > How can I flush/clear database for single app, i.e. NOT the

Re: Possible bug with transaction.on_commit

2016-05-17 Thread barthelemy
Hi Carl, thanks for your input. I opened a ticket (https://code.djangoproject.com/ticket/26627) and submitted a pull request based on your suggestion: https://github.com/django/django/pull/6617 Bart On Tuesday, May 17, 2016 at 1:52:58 AM UTC-4, Carl Meyer wrote: > > Hi Bart, > > On

Re: selecting an item whose relations are all in some desired set

2016-05-17 Thread Florian Iragne
Le 17/05/2016 16:18, David Xiao a écrit : Hi Florian, That's technically correct, but the universe of all possible items might be very large or even infinite so it's not really practical to do it that way. I understand, but i don't now your case precisely. In my case, i do this for a few

Re: selecting an item whose relations are all in some desired set

2016-05-17 Thread David Xiao
Hi Florian, That's technically correct, but the universe of all possible items might be very large or even infinite so it's not really practical to do it that way. Dave On Tue, May 17, 2016 at 9:32 AM florian wrote: > > > Le mardi 17 mai 2016 14:04:28 UTC+2, David Xiao

Re: selecting an item whose relations are all in some desired set

2016-05-17 Thread florian
Le mardi 17 mai 2016 14:04:28 UTC+2, David Xiao a écrit : > > Hi Vitor, > > Sorry I realized that my example should have used a ManyToManyField > instead of a 1-to-many. Let me try again: > > class Bundle(Model) > items = ManyToManyField("Item") > > class Item(Model) > pass > > (So one

Re: FieldError: Cannot resolve keyword u'domain' into field. Choices are: children, content, date_create, date_update, domain__associations, id, level, lft, name, parent, parent_id, rght, tree_id, use

2016-05-17 Thread Michal Petrucha
On Tue, May 17, 2016 at 05:58:51AM -0700, François GUÉRIN wrote: > Thanks very very very much ! You're welcome. (-: On Tue, May 17, 2016 at 05:56:23AM -0700, François GUÉRIN wrote: > Argh !! It works ! We could use double underscores in relation names, > before, no ? I don't think so – if it

Is there a spanish version of Two Scoops of Django?

2016-05-17 Thread David Alejandro Reyes Milian
Do you know if there is a Spanish version of Two Scoops of Django? -- 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

Re: FieldError: Cannot resolve keyword u'domain' into field. Choices are: children, content, date_create, date_update, domain__associations, id, level, lft, name, parent, parent_id, rght, tree_id, use

2016-05-17 Thread François GUÉRIN
Thanks very very very much ! Le mardi 17 mai 2016 14:51:05 UTC+2, Michal Petrucha a écrit : > > On Tue, May 17, 2016 at 05:44:24AM -0700, François GUÉRIN wrote: > > Hi all, > > > > I'm a django application dev for a few years, so I'm pretty familiar > with > > it. I have a problem with a new

Re: FieldError: Cannot resolve keyword u'domain' into field. Choices are: children, content, date_create, date_update, domain__associations, id, level, lft, name, parent, parent_id, rght, tree_id, use

2016-05-17 Thread François GUÉRIN
Argh !! It works ! We could use double underscores in relation names, before, no ? Le mardi 17 mai 2016 14:51:05 UTC+2, Michal Petrucha a écrit : > > On Tue, May 17, 2016 at 05:44:24AM -0700, François GUÉRIN wrote: > > Hi all, > > > > I'm a django application dev for a few years, so I'm

Re: FieldError: Cannot resolve keyword u'domain' into field. Choices are: children, content, date_create, date_update, domain__associations, id, level, lft, name, parent, parent_id, rght, tree_id, use

2016-05-17 Thread Michal Petrucha
On Tue, May 17, 2016 at 05:44:24AM -0700, François GUÉRIN wrote: > Hi all, > > I'm a django application dev for a few years, so I'm pretty familiar with > it. I have a problem with a new django 1.9.6 application. I'm writing a > directory app, with a main model named "Association", which have

FieldError: Cannot resolve keyword u'domain' into field. Choices are: children, content, date_create, date_update, domain__associations, id, level, lft, name, parent, parent_id, rght, tree_id, user_cr

2016-05-17 Thread François GUÉRIN
Hi all, I'm a django application dev for a few years, so I'm pretty familiar with it. I have a problem with a new django 1.9.6 application. I'm writing a directory app, with a main model named "Association", which have 4 m2m related fields : class Association(models.Model): # ... other

Re: selecting an item whose relations are all in some desired set

2016-05-17 Thread David Xiao
Hi Vitor, Sorry I realized that my example should have used a ManyToManyField instead of a 1-to-many. Let me try again: class Bundle(Model) items = ManyToManyField("Item") class Item(Model) pass (So one item can belong many Bundles and one Bundle can have many Items.) Suppose I've

Re: Django custom auth_user_model error

2016-05-17 Thread JJ Williamson
I'm still a bit of a noob but I say you go back to default settings and create another model which has a OnetoOne relationship with the User model that way you can add additional fields about a user account & etc and not break things on the backend. from django.contrib.auth.models import

Re: How to flush/clear database for single app, i.e. NOT the Project?

2016-05-17 Thread James Schneider
On Mon, May 16, 2016 at 10:16 AM, JoeCodeswell wrote: > How can I flush/clear database for single app, i.e. NOT the Project? > > I have a multi-app project. > In a particular app I created my model with single class. > I populated the db for that model with the Admin