Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
NVM i read loaddata documentation Le vendredi 9 décembre 2016 19:49:50 UTC-5, Sylvain Dégué a écrit : > > Thanks guy!!But how do I reload the my previous data to the new database > if the model changed?? > > Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit : >> >> Im about to

Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Thanks guy!!But how do I reload the my previous data to the new database if the model changed?? Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit : > > Im about to lauch a project that uses django for the api. So im only using > the admin side for now. Ive been having problem

Django - How to have multiple (4) distinct forms in CBV

2016-12-09 Thread Leo Shao
I need 4 forms to: sign up for an event (1), un-sign up for an event (2), type in a passcode to manage an event (3) which then shows a modal box that allows that person to check in everyone that shows up at the event (4). I'm using a (ListView, FormView) to allow looping through the numerous

Matching query does not exist when retrieving object by slug

2016-12-09 Thread Viet Phuong
(My English is not so good so I'll just try to be simple, sorry guys) So I have a model TopList which has a slug field so I can look up its object by slug. class TopList(models.Model): name = models.CharField(max_length=200) slug = models.SlugField(max_length=200, default='') def

Help Needed: Django Server For High Frequent Requests

2016-12-09 Thread Xiao Bo
I'm building a Django server for data collection. However, the program seems not capable when the sensing network expands. As time goes on, the program doesn't even enter the code piece and report broken pipe/connection reset by peer/too many open files errors: Exception happened during

Where to store simple texts

2016-12-09 Thread Nikolay Steblin-Kamenskiy
I have created a simple page a sort of announcement and I doubt that I put my text smart enogh. Would love to hear comment of more experienced users. Where are several blocks of text. One of it I've put directly into html template (using "p" tag for each line). For another one (a list) I have

Re: Error with Tutorial - Writing your first Django app, part 1

2016-12-09 Thread Fabio C. Barrionuevo da Luz
Missing comma on you urlpatterns urlpatterns = [ url(r'^polls/', include('polls.urls'))* ,* url(r'^admin/', admin.site.urls), ] On Fri, Dec 9, 2016 at 4:10 PM, shah wrote: > Hi, I am facing the same issue with the tutorial. > > I have got my program

Re: Error with Tutorial - Writing your first Django app, part 1

2016-12-09 Thread shah
Hi, I am facing the same issue with the tutorial. I have got my program correct. But after running the sever. It shows an error on chrome. Page not found (404) Request Method: GET Request URL: http://localhost:8000/polls/ Using the URLconf defined in mysite.urls, Django tried these URL

Re: Drawback of delete all migrations file

2016-12-09 Thread 'Abraham Varricatt' via Django users
Hello Sylvain, I think you have two concerns here, On Friday, December 9, 2016 at 1:39:50 PM UTC-5, Sylvain Dégué wrote: > SO im thinking about reset completly my production database and remove all > the migrations to start fresh. I dont have much data in the production > database so its

RE: Drawback of delete all migrations file

2016-12-09 Thread Matthew Pava
If you made any of your customizations to the migrations files, then you will lose that information. You may want to consider using Django’s dumpdata management command to save all the data on your production database (and loaddata to restore it).

Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Im about to lauch a project that uses django for the api. So im only using the admin side for now. Ive been having problem concerning the database and forms. Ive made many mistake while updating the database, when certain field didnt allow null. It caused IntegrityError, which I was able to fix

Django with MySQL DB for multitenancy

2016-12-09 Thread Peter Edache
Hello guys, we are currently looking for a way to migrate our previous django application to a full multi-tenant application, currently the way we are handling our client is by giving each client a docker container and using nginx to do the routing, through sub-domain mapping. But after

Intermittent 'template not found' errors

2016-12-09 Thread Larry Martell
I have an app that is deployed at 15 sites and has been running for 6 years. All these deployments are with django 1.5, python 2.6, CentOS6, and apache, and they all work perfectly. I just deployed the app at a new site, but this one is django 1.9, python 2.7, CentOS7, and nginx/uwsgi. Only at

Re: Translation problem !

2016-12-09 Thread Tim Graham
Sure, if translations are contributed by the community. Turkish is currently at 2%. The language is typically added to docs.djangoproject.com when the translations for the intro materials are completed. https://www.transifex.com/django/django-docs/ On Friday, December 9, 2016 at 7:05:38 AM

migrating a model from concrete inheritance to abstract inheritance

2016-12-09 Thread Riccardo Magliocchetti
Hello, on django 1.8.17 i'm trying to convert a model Format away from inheriting from a concrete model DryModel and i get this running a migration that adds the id field: django.core.exceptions.FieldError: Local field u'id' in class 'Format' clashes with field of similar name from base class

Translation problem !

2016-12-09 Thread Özkan Nöron
*Will there be a Turkish translation for Django? It becomes difficult to learn a new language and programming language. Thanks.* -- 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,