Re: Django 1.10.3 with Oracle database and --keepdb

2016-11-05 Thread Simon Charette
Hi Carsten, > In other words, without setting an explicit (non-random) password, database > errors are expected when starting the tests with --keepdb ? You are right. I just created a ticket[0] about preventing usage of `--keepdb` without defining a `TEST.PASSWORD` setting. Simon [0] https://

Re: Related name with %(app_label)s being an actual field?

2016-11-05 Thread Simon Charette
Hi Jonty, While support for related_query_name was added in 1.6 it only supports app_label and class_name interpolation since Django 1.10. You can either upgrade to Django 1.10 or rely on related_name's support for app_label and class_name interpolation as related_query_name defaults to related

field = self.model._meta.get_field(self.field_name) returns self?

2016-11-05 Thread Brandon
I have had the error described here ( https://code.djangoproject.com/ticket/27365) show-up randomly in mulitple independent environments. The gross things to notice are: 1. It always occurs in exactly the same way. 2. It is always fixed by an apache restart. 3. It is suppressed by reducing the nu

Re: Django1.9 Mongodb support

2016-11-05 Thread mpita1984
mongoengine test is to handle mongodb with python. although not native to the Django ORM, you can use it without any problem. http://mongoengine.org/ El viernes, 4 de noviembre de 2016, 22:13:18 (UTC+1), Sudhir kumar Giri escribió: > > Hello, > I didn't find any documentation or tutorial for D

Need help to catch "cart_id" based on session.

2016-11-05 Thread Shazia Nusrat
Hi, I am using doorsale repo for building ecommerce site due to it's simplicity but I am stuck at the error while trying to catch cart session ID. The repo link is: https://github.com/mysteryjeans/doorsale Error traceback is below: Request Method: POST Request URL: http://localhost:8000/sales

Re: Django 1.10.3 with Oracle database and --keepdb

2016-11-05 Thread Mariusz Felisiak
W dniu piątek, 4 listopada 2016 17:12:09 UTC+1 użytkownik Carsten Fuchs napisał: > > supposed to work without having an explicit test password set? > > Yes. Please, make sure that your main oracle user has *ALTER USER* permission. -- You received this message because you are subscribed to th

Re: Django 1.10.3 with Oracle database and --keepdb

2016-11-05 Thread Carsten Fuchs
Hi Simon, Am 05.11.2016 um 08:46 schrieb Simon Charette: [0] https://code.djangoproject.com/ticket/27435#ticket Thank you! Best regards, Carsten -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Bug? ModelChoiceField with to_field_name incorrectly returns True on has_changed() function

2016-11-05 Thread Tim Poffenbarger
Should this be considered a bug? When you provide the to_field_name to a ModelChoiceField, the instance object's field (the primary key) will not match the form's field (the to_field_name field name). Therefore the has_changed() function will return True. In my example, I created an app calle

Re: Django 1.10.3 with Oracle database and --keepdb

2016-11-05 Thread Carsten Fuchs
Hi Mariusz, Am 2016-11-05 um 13:11 schrieb Mariusz Felisiak: Yes. Please, make sure that your main oracle user has *ALTER USER* permission. It is well possible that that is the culprit. I've set my database user's privileges as described at https://docs.djangoproject.com/en/1.10/ref/database

Rest Framework and Swagger

2016-11-05 Thread pradam programming
Hi Guys, Please I need an advice on the best approach to take on the following issues. How can i Implement Swagger for CBV and FBV in rest framework ...? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

How to delete a certain model instance in django after a given date

2016-11-05 Thread YOGITHA A N
So here are my models: * class Mess(models.Model):* muser = models.OneToOneField(User) MESS_NAME = (('GH','girls hostel top mess'), ('IH','girls hostel down mess'), ('MM','Mega mess'), ('FB','First Block mess'),

Re: Django project structure

2016-11-05 Thread YOGITHA A N
You would just have one App loyalty program. You will extend UserProfile from User and the other models would be Restaurant (name,branch location etc would be the attributes). Your structure would depend on what are the various functionalities you would like to add. On Monday, October 24, 2016

Re: django

2016-11-05 Thread YOGITHA A N
In addition to the above links if your are more comfortable watching videos then you should definetly subscribe to https://youtu.be/qgGIqRFvFFk?list=PL6gx4Cwl9DGBlmzzFcLgDhKTTfNLfX1IK (New boston django videos). It will really help if you follow django official documentation and tutorial along

Storing settings

2016-11-05 Thread Bogdan P.
Hello everyone I have the following Profile model class Profile(models.Model): user = models.OneToOneField(User, related_name='profile') quadrant1 = models.IntegerField(default=1) quadrant2 = models.IntegerField(default=1) quadrant3 = models.IntegerField(default=1) quadran

Re: How to delete a certain model instance in django after a given date

2016-11-05 Thread Vijay Khemlani
You could write a management command https://docs.djangoproject.com/en/1.10/howto/custom-management-commands/ and execute it regularly (for example using a cron job) On Sat, Nov 5, 2016 at 3:31 PM, YOGITHA A N wrote: > So here are my models: > > * class Mess(models.Model):* > muser =

Re: How to delete a certain model instance in django after a given date

2016-11-05 Thread 王安刚
i think maybe you need a schedule job to delete the model. you can mark the model with a ctime, and check whether any model with ctime 7 days from now and then delete it. 在 2016年11月6日星期日 UTC+8上午2:31:20,YOGITHA A N写道: > > So here are my models: > > * class Mess(models.Model):* > muser = m

Re: django

2016-11-05 Thread 王安刚
as a three year django developer, i think the django docs is the most help way 在 2016年11月3日星期四 UTC+8上午12:09:54,bhaskerg...@gmail.com写道: > > Hello friends, > Myself bhasker ,i am new to django ,i want learn django > and create one web application,could you please help me anyone .