Re: Graceful Reloading for Schema Changes - UWSGI - Gunicorn?

2015-04-16 Thread Roberto De Ioris
> > > Hello Djangonats, > > How do you reload Django script changes with UWSGI? I know `touch-reload > ` > exists with UWSGI however I was looking more into what uwsgi does when the > schema(s) in the models change? How do you

Django 1.8 data migrations not able to locate related collections

2015-04-16 Thread A Lee
Hello, After upgrading to 1.8 from 1.7.7 our tests are now unable to create test data via data migrations and complain about related collections not existing as attributes for some but not all models (exception stack trace at https://travis-ci.org/virtualcommons/vcweb). It appears to succeed

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread Filipe Ximenes
Yes, you can develop a website were some data is processed and presented in the template by the backend, and some is fetched using AJAX (Javascript/Angular) from the frontend. I do not know a specific tutorial to point you, but from a quick search, this one seems to cover a lot of things:

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread 백병화
> > > Thank you very much for the professional advice :) I have more questions.. Is there a way to develop a web site by combining MPA and SPA ? And.. Can you please recommend a tutorial of django+angularjs that is about configuration, building structure, and etc for dividing backend and

Re: treemenus treemenu or sitetree

2015-04-16 Thread felix
El 16/04/15 15:27, Joris Benschop escribió: Hi List I'm currently using django-treemenus to show a site menu, but now that Im migrating to 1.8, Im getting imcompatibility bugs. What modules do you use to display link menus in your site? I found sitetree and treemenu but they are not

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread Filipe Ximenes
1) The Facebook WEBSITE is a MPA, but some of it's content is loaded via ajax (like the newsfeed). The Facebook mobile app is a native application. The Android one is developed in Java, and the iOS is developed in Objectve-C 2) If you use a cross-paltform framework like Cordova you will be

treemenus treemenu or sitetree

2015-04-16 Thread Joris Benschop
Hi List I'm currently using django-treemenus to show a site menu, but now that Im migrating to 1.8, Im getting imcompatibility bugs. What modules do you use to display link menus in your site? I found sitetree and treemenu but they are not mentioned at all on this forum. thanks! -- You

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread 백병화
Thank you very much for replying my question. I'm a student in Korea, so my english grammar is not good. I'm sorry for that. I'm wondering to create a web site as Facebook. I have 3 questions. 1) Is facebook developed as SPA? or Is it developed as SPA+MPA ? 2) Last time, I understood as when I

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread 백병화
Thank you very much for replying my question. I'm a student in Korea, so my english grammar is not good. I'm sorry for that. I'm wondering to create a web site as Facebook. I have 3 questions. 1) Is facebook developed as SPA? or Is it developed as SPA+MPA ? 2) Last time, I understood as

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread Filipe Ximenes
Hi, I think I partially answered this to you in your previous question: https://groups.google.com/forum/#!topic/django-users/B8v9wjR4-M0 Can you tell me if you didn't understand something? Mobile and AngularJS apps don't work exactly the same as a normal web page. While in a normal web page, the

Can you please suggest a way to make multi page apps and single page apps with django and angularjs ?

2015-04-16 Thread 백병화
I'm a student in Korea, so my english grammar is not good. I'm sorry for that. I'm confused about how to make an architecture for combining multi page and single page with django and angularjs.. Can you please suggest a way? -- You received this message because you are subscribed to the

Re: annotate() questions

2015-04-16 Thread Ramiro Morales
On Wed, Apr 8, 2015 at 3:07 PM, Carsten Fuchs wrote: > Dear Django fellows, > > at https://docs.djangoproject.com/en/1.8/topics/db/aggregation/#joins-and- > aggregates the first example is: > > >>> from django.db.models import Max, Min > >>>

Re: form detail view using generic view

2015-04-16 Thread Filipe Ximenes
Hi Pradeep, when data is saved, you want to show it in the form or as "view-only"? If it is a form you need, Use a CreateView, and the redirect it to a UpdateView. Otherwise, do a CreateView and redirect to a TemplateView. CreateView ->

Re: annotate() questions

2015-04-16 Thread Carsten Fuchs
Hello, Am 08.04.2015 um 20:07 schrieb Carsten Fuchs: 1) Is there a way to annotate each Store object with the actual Book objects related to the minimum and maximum prices? 2) Can this annotation be filtered? For example, if for each Store we wanted to learn the min and max prices of

Re: Graceful Reloading for Schema Changes - UWSGI - Gunicorn?

2015-04-16 Thread Stephen J. Butler
I'm not familiar with uWSGI. On gunicorn you send it SIGHUP (kill -HUP pid) and it will reload w/o interrupting requests. Looks like uWSGI supports something similar: https://uwsgi-docs.readthedocs.org/en/latest/Management.html#signals-for-controlling-uwsgi On Thu, Apr 16, 2015 at 11:32 AM,

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread willyhakim
Thank you guys. On Wednesday, April 15, 2015 at 5:41:47 PM UTC-5, willyhakim wrote: > > Hi everyone, > I am using django-userena and extend the form class to add some of my own > fields. I followed > the demo and still get the above error. Anyone know what I am doing wrong? > > class

Graceful Reloading for Schema Changes - UWSGI - Gunicorn?

2015-04-16 Thread Shapath Neupane
Hello Djangonats, How do you reload Django script changes with UWSGI? I know `touch-reload ` exists with UWSGI however I was looking more into what uwsgi does when the schema(s) in the models change? How do you handle

How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread 백병화
I want to develop a web site and mobile apps(iOS/Android) as Facebook.by using Django REST Framework AND Angularjs. I'm confused about what steps should I follow.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Django Custom lookup running different SQL query than it's displaying in str(query)

2015-04-16 Thread d33tah
(This is basically a copy of http://stackoverflow.com/q/29680060/1091116 - I hope that this is allowed here) Consider the following `urls.py` - for brevity, I decided to put the example in one file: from django.conf.urls import patterns, include, url from django.http import

Queryset/order_by option sort keys string manipulation

2015-04-16 Thread Henry Versemann
I have a string of sort keys which I've generated dynamically using the name of the table (model) that I'm trying to retrieve elements from, while putting them in a pre-determined sort order. The original sort key string looks like this:

Django, JavaScript, Python, HTML : Print on html a variable running on python file

2015-04-16 Thread Beatrice Galvani
Hi, I'm using Django 1.7.2, Python 3.4. My trouble is: I have a simple function in some directory written in python (e.g. a counter since 0 to 10); I would like to see these numbers on my monitor on the HTML page.. I know how start the function but I am not able to print the variables! My

form detail view using generic view

2015-04-16 Thread Pradeep gopi
iam new to django. i want to develop a web page with a form with some data to enter after saving the data in the database the data must be shown on the same page from where it has been submitted -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Django Admin should really support Twitter Bootsrap

2015-04-16 Thread Scot Hacker
On Monday, April 13, 2015 at 3:16:40 PM UTC-7, Patrick Lemiuex wrote: > > It's about time, the django admin tool should support twitter bootstrap > markups and styling. This is the third django project where I've had to > deal with custom form widgets because the admin tool supports kind of an

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
Yeah, sorry:) 2015-04-16 16:04 GMT+03:00 Vijay Khemlani : > Why are you talking to me? I'm not OP xD > > On Thu, Apr 16, 2015 at 9:57 AM, Pavel Kuchin > wrote: >> >> Hi Vijay, >> >> Looks like Django does not use SortedDict anymore >> >>

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Vijay Khemlani
Why are you talking to me? I'm not OP xD On Thu, Apr 16, 2015 at 9:57 AM, Pavel Kuchin wrote: > Hi Vijay, > > Looks like Django does not use SortedDict anymore > ( > https://github.com/django/django/commit/07876cf02b6db453ca0397c29c225668872fa96d#django/forms/forms.py

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
Hi Vijay, Looks like Django does not use SortedDict anymore (https://github.com/django/django/commit/07876cf02b6db453ca0397c29c225668872fa96d#django/forms/forms.py) The self.fields.keyOrder does not work anymore, django-userena has an obsolete documentation. Try to remove def __init__(self,

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Vijay Khemlani
In the title: "'OrderedDict' object has no attribute 'keyOrder'" On Thu, Apr 16, 2015 at 6:13 AM, Pavel Kuchin wrote: > Hi Willy, > > Can you send an error, because I see only the SignupFormExtra class. > > Yours sincerely, > Pavel > > четверг, 16 апреля 2015 г.,

Transform all Django exceptions to JSON?

2015-04-16 Thread jack
Hello, I use django rest framework to make API server. DRF catches some Django exceptions and transforms them in JSON. However some exceptions, like 404, are still returned as Django pages (at least it works that way on my machine). How can I wrap all exceptions in JSON from any library? I'm

Re: Django keep variable in memory, even if i refresh the page

2015-04-16 Thread Silvio Benvegnù
But I need to do it: **ok I try to explain better my situation**: - I've got a class that is a "javascript repository". Its role is to respond with a string of javascript functions. Javascript functions are organized in indipendent modules (list of functions), so I can attach to my page just

Re: Django keep variable in memory, even if i refresh the page

2015-04-16 Thread Avraham Serour
you are instantiating the variable on class definition, try doing on function execution instead On Thu, Apr 16, 2015 at 12:43 PM, Silvio Benvegnù wrote: > I'm using Django Framework 1.7 with its webserver. > > I have a custom class where I declare a static variable, a

Checking for foreign key in clean method - Django 1.77 vs 1.8

2015-04-16 Thread Graham Oliver
Hi guys I have some code in a clean() method that works ok on Django 1.77 but stops working in 1.8 The scenario class Span(models.Model): happening = models.ForeignKey('Happening', blank = True, null = True) soul_class = models.ForeignKey('SoulClass', blank = True, null = True)

Django keep variable in memory, even if i refresh the page

2015-04-16 Thread Silvio Benvegnù
I'm using Django Framework 1.7 with its webserver. I have a custom class where I declare a static variable, a list, where I append some values: class my_class: list = [] def __init__( self, *args, **kwargs ): [...] def append_value(self,value):

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
Hi Willy, Can you send an error, because I see only the SignupFormExtra class. Yours sincerely, Pavel четверг, 16 апреля 2015 г., 1:41:47 UTC+3 пользователь willyhakim написал: > > Hi everyone, > I am using django-userena and extend the form class to add some of my own > fields. I followed >

Re: saving data using cleaned data method

2015-04-16 Thread Pavel Kuchin
Hi Sekkizhar, I think django.forms.ModelForm is exactly what you are looking for. (https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#modelform) Yours sincerely, Pavel. Good Morning, > I am trying to save data in the table using cleaned data by get and post > method in the view. >