Best way of render differnt types of a Model

2014-09-17 Thread Julo Waks
Good day list! After much dealing with this problem I decided to share it with fresh minds to get a new perspective. situation: In the project we have a model that is Promo, which in turn has different types of promos (FK to Promo models) and these types of promo are different and defined which

Constants values and best practices

2014-08-28 Thread Julo Waks
Good day! How are you? I have the following situation: In more than one django project I come across the situation where I need to define a model that has a State. So what I usually do is: # Pseudo code here def State (models.Model): name = models.CharField () def Purchase (models.Model):

Facebook permisson - django-allauth

2014-08-16 Thread Julo Waks
I have this problem, i am working in an app that uses django-allauth for login with facebook. When i ask for login i need to ask for publish_stream scope. In local environment this work great. In production does not. Does anyone have a clue? here my settings/base.py SOCIALACCOUNT_PROVIDERS = { >