How to develop a frontend web app for using REST services

2015-10-15 Thread kk
Dear all. I got some very important suggestions from members of this list on using Django for an accounting and inventory system, including Point of Sale. After the POS topic was discussed, OUr team decided to write a RESTfull server with all the business logic in API. We plan to do this using

How can I get current user in my ModelForm, using inlineformset?

2015-10-15 Thread Fellipe Henrique
Hello, I have my ModelForm... and I need to filter my products with Current User.. if a change my modelform init, doesn't show me any error, but when I use in my inlineformset, show me on error.. Here is my code: View: ofertasinlineformset = inlineformset_factory(Assinatura, Ofertas, form=Ofe

Re: Question about Django Tutorial Part 5

2015-10-15 Thread Vijay Khemlani
The "create" method (as in Question.objects.create) saves the object to the database On Thu, Oct 15, 2015 at 6:08 AM, Shun Liang wrote: > Dear All, > > In the 5th part of the Django Tutorial ( > https://docs.djangoproject.com/en/1.8/intro/tutorial05/#testing-our-new-view > ), there is a helper f

Re: Creating the testing db fails (django 1.8.5)

2015-10-15 Thread Uwe Schuerkamp
> > I solved it myself... looks like I forgot to create the initial migrations > for the app. After running > python manage.py makemigrations club300 python manage.py migrate --fake-initial python manage.py test club300 appears to work fine. Sorry for the noise & thanks for your help! Uwe -

Question about Django Tutorial Part 5

2015-10-15 Thread Shun Liang
Dear All, In the 5th part of the Django Tutorial ( https://docs.djangoproject.com/en/1.8/intro/tutorial05/#testing-our-new-view ), there is a helper function "create_question" in polls/test,py, which creates a question instance and returns it. However the created question instance does not see

Re: Creating the testing db fails (django 1.8.5)

2015-10-15 Thread Uwe Schuerkamp
Here's some more info in case it helps: The "manage.py test" call seems to get as far as creating the table "django_migrations", then things break. The production DB has several more tables (25 in all) I'm not seeing in the output below, so I guess this issue must be related to the migrations

Re: Creating the testing db fails (django 1.8.5)

2015-10-15 Thread Uwe Schuerkamp
> > Hi Mike, > thanks for your quick reply. I tried deleting the test database, but that didn't help either (actually I tried this several times before I posted here, I even set up a "fresh" production database on my test machine and re-imported the live data in order to solve the problem).

RE: Django 1.8: subclass AbstractUser, App 'auth' doesn't have a 'myuser' model.

2015-10-15 Thread syl pingus
Hi, Your table myauth_myuser is used to store your users. But Django create additional custom tables for groups and user_permissions related to the custom user model and which are useless and I don't uderrstand why. If somebody have an explanation or could tell me how to avoid the creation of t