Re: retain form data when a user session expires while filling a form

2018-04-13 Thread Avraham Serour
You may also always save to cookie before submitting the form and clear it on the thank you page On Thu, 12 Apr 2018, 14:20 Vijay Shanker, wrote: > I have to code this scenario: > > Some user comes to fill a form and while user is at it, session expires; > User tries to submit form, as session h

Re: ARGPARSE ERROR

2018-04-13 Thread Michal Petrucha
On Thu, Apr 12, 2018 at 07:58:08PM +, Ankush Sharma wrote: > Hi Babatunde , > I installed other listed tools ! Here the main concern im talking about is > Argsparse - > the Progressbar2 3.6.2 requires argparse, which is not installed. > Thanks in advance > Ank What version of Python are you ru

Re: I'm trying to edit address form for Saleor ecommerce platform

2018-04-13 Thread ruslan.aldar
Hello thank you for your reply. the problem is when I'm removing fields like company_name, city, city_area, postal code from account/models.py , i18n.py. Mostly this error appears when I delete one line in I18N_MAPPING. on the web: KeyError at /checkout/shipping-address/ 'company_name' Reques

ImportError: No module named 'main'

2018-04-13 Thread Артём Орлов
Hello! Django does not see application created with *django-admin startapp main*. ./DjangoRestfulServer/ ├── __init__.py ├── main │ ├── admin.py │ ├── apps.py │ ├── __init__.py │ ├── models.py │ ├── __pycache__ │ │ ├── admin.cpython-35.pyc │ │ ├── __init__.cpython-35.pyc │

How to handle a migration that last too long for being deployed?

2018-04-13 Thread Adrien Cossa
Hi everybody! I would like to know what options exist when you have a huge migration that will obviously not run on your productive server. I have spitted a model in two smaller ones and wrote then a migration to populate these new models. The number of original objects is around 250,000 and

Create custom widget in django-jet

2018-04-13 Thread j . romeroc97
Hey everybody, I'm here for some help, I'm using django-jet right now and trying to create a new widget with a view that I created before, somebody has knowledge about how to do this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Re: How to handle a migration that last too long for being deployed?

2018-04-13 Thread Mike Dewhirst
Does it actually stop users reading? If the entire migration happens in a single transaction, the database (Postgres anyway) should remain accessible until the moment it is committed. Maybe you could announce a maintenance operation which will only interrupt certain actions for a few minutes?

Django docs Polls App, Diferent queryset returns same object values but QuestionIndexViewTests works for one query and fails for other

2018-04-13 Thread Himanshu Gamit
In polls application I added annotation to check one to many relationship between Question and Choice models such that, Index only return questions with more than one choices to be displayed but my testcase fails all the time with annotation where both query returns same data. views.py (Not Work

Re: How to handle a migration that last too long for being deployed?

2018-04-13 Thread Mike Dewhirst
Adrien May I start a new thread to discuss with you the costs and benefits for splitting your model. I have some big models (47 up to 76 columns) which I have long thought are just too big. The splits would all have to be 1:1 with the core model. Mike On 13/04/2018 7:05 PM, Adrien Cossa wro