Re: No Downtime Code Releases

2016-04-19 Thread graeme
On Wednesday, April 20, 2016 at 3:19:59 AM UTC+5:30, Avraham Serour wrote: > > you can easily do code reloading with uwsgi graceful reload, no user will > ever know you reloaded your application, no need to juggle, I mean you > aren't using mod_wsgi or anything like that right? > mod_wsgi in

Re: No Downtime Code Releases

2016-04-19 Thread Vijay Khemlani
Also, you don't need to restart Apache / nginx or whatever, or delete the pyc files, just reload uwsgi / gunicorn. On Tue, Apr 19, 2016 at 6:48 PM, Avraham Serour wrote: > you can easily do code reloading with uwsgi graceful reload, no user will > ever know you reloaded your

Re: No Downtime Code Releases

2016-04-19 Thread Avraham Serour
you can easily do code reloading with uwsgi graceful reload, no user will ever know you reloaded your application, no need to juggle, I mean you aren't using mod_wsgi or anything like that right? On Tue, Apr 19, 2016 at 10:07 PM, Fred Stluka wrote: > Ben, > > I minimize

Re: Help with django.

2016-04-19 Thread Григор Колев
сряда, 20 април 2016 г., 0:00:06 UTC+3, Григор Колев написа: > > )My question is bed. > I read docs of course. > In another's Python frameworks I must write all classes to be used more > than one time. > I make Button and it's. > If I need a button just call this class > > class

Re: Help with django.

2016-04-19 Thread Григор Колев
I apologize for the mistakes, but function for insert a code is just terrible -- 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: Help with django.

2016-04-19 Thread Григор Колев
)My question is bed. I read docs of course. In another's Python frameworks I must write all classes to be used more than one time. I make Button and it's. If I need a button just call this class class MyChoiceField(forms.Form): def __init__(self, foo_choices, *args, **kwargs):

Re: Global variable

2016-04-19 Thread Gabriel Marcondes
Ciao Luca, Take a look at django's i18n [0], it will spare you a lot of work. [0] https://docs.djangoproject.com/es/1.9/topics/i18n/ On Tue, Apr 19, 2016 at 11:27 AM, 'luca72' via Django users < django-users@googlegroups.com> wrote: > hello my view.py is like this: > > from django.contrib

Re: No Downtime Code Releases

2016-04-19 Thread Fred Stluka
Ben, I minimize downtime as much as possible by doing things in advance like copying all of the new files to a staging area on the PROD system, automatically inserting PROD passwords, running collectstatic, dumping the DB in case of problems, etc.  Then, I

Re: No Downtime Code Releases

2016-04-19 Thread Avraham Serour
I don't think you would gain anything by separating your models to a different repository, what are you trying to gain here? if you put a maintenance page when doing migrations it won't matter if the models are from a different package or not. you could still run migrations on a live system, you

Global variable

2016-04-19 Thread 'luca72' via Django users
hello my view.py is like this: from django.contrib import auth from django.contrib.auth.decorators import login_required from django.db import models from django.core.files.storage import FileSystemStorage #from django.core.servers.basehttp import FileWrapper from django.contrib.auth import

Re: MTV and MVC difference

2016-04-19 Thread Javier Guerra Giraldez
On 19 April 2016 at 12:53, Mukul Chakravarty wrote: > What is the difference between Models in django MTV architecture and Models > in rails MVC architecture ? IMNSHO, mostly about the realization that "controller" (as defined in the original, GUI-oriented formulation of

Registration Redux sign up process

2016-04-19 Thread Luca Brandi
Hello I installed this app for authentication and registration purposes. I am wondering if there is a way to send activation link only after admin has verified user can be registered or if a signal could be receive dby admin when someone registers before activating it.. Thnaks -- You received

Re: Help with django.

2016-04-19 Thread Jani Tiainen
Hi, you should start with tutorials, Django official: https://docs.djangoproject.com/en/1.8/intro/tutorial01/ Django Girls Tutorial: http://tutorial.djangogirls.org/ And finally on my list is Marina Mele's tutorial: http://www.marinamele.com/taskbuster-django-tutorial On 19.04.2016 14:23,

Help with django.

2016-04-19 Thread Григор Колев
I try to learnind django. But can't understand how to write good django code. Can I write form in template or thear a good reson to use django form. Or must I use class based view or function is the best idea. How can get the django form from value if post method in class based viwe. -- You

Possible bug in Django Admin site in tabular inline or stacked inline with datetime shortcuts

2016-04-19 Thread Константин Попов
Hi, django users. I have found possible bug in django admin site, using tabular inline with datetime field. The same bug exists in stacked inline as I can see form code. I am not sure what is the best way to report the bug, so I decided to write here first. Please, give me advice on my next

MTV and MVC difference

2016-04-19 Thread Mukul Chakravarty
What is the difference between Models in django MTV architecture and Models in rails MVC architecture ? -- 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: Don't save anything if error on save method

2016-04-19 Thread Michal Petrucha
On Tue, Apr 19, 2016 at 01:12:13AM -0700, elcaiaimar wrote: > Hello, > > I' ve an application where I upload a CSV file and save all its rows in a > database. This is ok, but, at the moment, when I upload the file and it > exists some error on it, it saves all rows until the wrong row. What I

Don't save anything if error on save method

2016-04-19 Thread elcaiaimar
Hello, I' ve an application where I upload a CSV file and save all its rows in a database. This is ok, but, at the moment, when I upload the file and it exists some error on it, it saves all rows until the wrong row. What I want to achieve is that if there is an error when I save, don't save