Converting Speedy Net to Python/Django

2015-09-10 Thread Uri Even-Chen
To Django Users, I want to convert my open source social network, Speedy Net , from PHP to Python and Django. Which Django packages do you recommend using? I prefer to start with Python 3. I saw the list of apps on https://www.djangopackages.com/grids/g/social/ , and I

Re: CSRF cookie not set issue

2015-09-10 Thread Kevin Anyanwu
base_1.html goals Cirriculmn Notes Collaborte On Thu, Sep 10, 2015 at 8:49 AM, monoBOT wrote: > show us the base_1.html > > 2015-09-10 16:18 GMT+01:00 : > >>

Re: ATOMIC_REQUESTS setting not working

2015-09-10 Thread EJ
Small update: Wrapping the view function with *@transaction.atomic* fixes the issue -- the queries execute in a transaction as expected. So I guess my immediate problem is resolved. If anyone has an idea, I'd still love to know why the view is ignoring the top-level TRANSACTION_ATOMIC setting.

ATOMIC_REQUESTS setting not working

2015-09-10 Thread EJ
Hi All, I have ATOMIC_REQUESTS set to True in my database configuration: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'abcd', 'USER': 'user', 'PASSWORD': '', 'HOST': '', 'PORT': '', 'ATOMIC_REQUESTS': True, } } But I started getting the following error

Re: Adding dynamic methods to ModelAdmin fails in 1.8

2015-09-10 Thread Simon Charette
Hi Malcolm, > With the patch to check an instance rather than a class, perhaps I should extend the checks to check the result of get_readonly_fields() rather than just obj.readonly_fields. What do you think? I think the checks should be run statically against ModelAdmin instances, that is

Re: Adding dynamic methods to ModelAdmin fails in 1.8

2015-09-10 Thread Malcolm Box
Hi Simon, On Thursday, 10 September 2015 16:57:51 UTC+1, Simon Charette wrote: > > Hi Malcolm, > > > The system check checks that all the values returned from > get_readonly_fields exist as class attributes on the ModelAdmin (or are > callable/fields on model, neither of which helps here). With

Re: Adding dynamic methods to ModelAdmin fails in 1.8

2015-09-10 Thread Simon Charette
Hi Malcolm, > The system check checks that all the values returned from get_readonly_fields exist as class attributes on the ModelAdmin (or are callable/fields on model, neither of which helps here). With them being created via __getattr__, they don't. There might be something else going on

Re: django 1.8 customize site title

2015-09-10 Thread frocco
Thank you for sharing this. On Monday, May 4, 2015 at 12:46:08 PM UTC-4, André Luiz wrote: > > You can do it in in urls.py for example[1] > > [1]: https://gist.github.com/dvl/0bed149bee4556b32d7a > > 2015-05-02 5:55 GMT-03:00 drakkan : > >> Hi, >> >> I would like to customize

Re: CSRF cookie not set issue

2015-09-10 Thread monoBOT
show us the base_1.html 2015-09-10 16:18 GMT+01:00 : > By the way, I am using Django 1.8.3 (final) > > > On Thursday, September 10, 2015 at 8:16:11 AM UTC-7, kany...@fonality.com > wrote: >> >> First of all I have done my research and found no reasonable explanation >> for

Re: DJANGO

2015-09-10 Thread Arindam sarkar
The django tutorial itselt https://docs.djangoproject.com/en/1.8/intro/tutorial01/ On Thu, Sep 10, 2015 at 8:00 PM, Nishant Shetty wrote: > BEST DJANGO TUTORIAL ON WEB? > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: CSRF cookie not set issue

2015-09-10 Thread kanyanwu
By the way, I am using Django 1.8.3 (final) On Thursday, September 10, 2015 at 8:16:11 AM UTC-7, kany...@fonality.com wrote: > > First of all I have done my research and found no reasonable explanation > for my issue. I have a site on heroku that works fine on the first page, > but when I

CSRF cookie not set issue

2015-09-10 Thread kanyanwu
First of all I have done my research and found no reasonable explanation for my issue. I have a site on heroku that works fine on the first page, but when I click a button that I have programmed to go to another page, I obtain the infamous CSRF error. The reason for this error is CSRF cookie is

DJANGO

2015-09-10 Thread Nishant Shetty
BEST DJANGO TUTORIAL ON WEB? -- 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, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-10 Thread ThomasTheDjangoFan
Hi guys, on my journey to picking my js-framework I am now trying out React.js and I opened this thread in search for good tutorials https://groups.google.com/forum/#!topic/django-users/NxDOYhqqQJw . I guess I'll also have a look at the angular stuff. This really is about having good tutorials

Any good tutorials for django-rest-framework and React.Js?

2015-09-10 Thread ThomasTheDjangoFan
Hi guys, I'm trying to get my head into how to use React.Js with Django. I did the tutorial http://facebook.github.io/react/docs/tutorial.html in combination with checking out https://github.com/HorizonXP/react-tutorial-django, which is an implementation if it with running django 1.6. I'm

Re: Customization in User Add screen

2015-09-10 Thread Tom Lockhart
> On Sep 9, 2015, at 22:36, Pawanesh Gautam wrote: > > how to add extra field in user add screen ?? afaik you will need to use your own form (in forms.py) which includes the fields you want. hth - Tom -- You received this message because you are subscribed to the

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-10 Thread Jani Tiainen
I've been developing with Dojotoolkit and ExtJS. Both integrate with Django as well as any other JS framework. On 10.09.2015 09:47, Mario Gudelj wrote: +1 angular. Stack overflow is your friend and there's a lot of angular on it. You can do a lot with it with basic knowledge as well. And

Re: customize app ordering in django admin

2015-09-10 Thread 'Tom Evans' via Django users
On Thu, Sep 10, 2015 at 11:50 AM, Pawanesh Gautam wrote: > hi > > i have list of app (app1,app2.app3,app3,app4).i would like to change the app > order in admin site so that it will look like dis : > (app1,app3,app4,app2). > please suggest some tips to perform this . > > thanks

Re: Adding dynamic methods to ModelAdmin fails in 1.8

2015-09-10 Thread Malcolm Box
Ticket filed: https://code.djangoproject.com/ticket/25374 On Thursday, 10 September 2015 11:27:13 UTC+1, Malcolm Box wrote: > > Hi Simon, > > I've tried that, and it still fails the same system check. > > The system check checks that all the values returned from > get_readonly_fields exist as

customize app ordering in django admin

2015-09-10 Thread Pawanesh Gautam
hi i have list of app (app1,app2.app3,app3,app4).i would like to change the app order in admin site so that it will look like dis : (app1,app3,app4,app2). please suggest some tips to perform this . thanks -- You received this message because you are subscribed to the Google Groups "Django

Re: Adding dynamic methods to ModelAdmin fails in 1.8

2015-09-10 Thread Malcolm Box
Hi Simon, I've tried that, and it still fails the same system check. The system check checks that all the values returned from get_readonly_fields exist as class attributes on the ModelAdmin (or are callable/fields on model, neither of which helps here). With them being created via __getattr__,

Re: Dynamically alter a list based on selections on other widgets

2015-09-10 Thread Derek
Try using Django smart selects: https://pypi.python.org/pypi/django-smart-selects/1.1.1 On Tuesday, 8 September 2015 18:45:07 UTC+2, Baktha Muralidharan wrote: > > Hello > > I am looking to develop a GUI (Form?) in which I can display a list the > contents of which change on the fly as the

Re: Possible bug in interaction between 'block' and 'include' in Django Templates

2015-09-10 Thread Suriya Subramanian
I got the answer on IRC that this is not a bug as explained in the documentation for include https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#include Suriya On Thursday, September 10, 2015 at 2:55:42 PM UTC+5:30, Suriya Subramanian wrote: > > Hi, > > I think there is a bug in how

Possible bug in interaction between 'block' and 'include' in Django Templates

2015-09-10 Thread Suriya Subramanian
Hi, I think there is a bug in how 'block' and 'include' template tags interact in the Django Template Language. I have created a Gist showing this issue: https://gist.github.com/anonymous/2627bb35955db77dbfaa The order of the files in the Gist can be a bit confusing. I will explain what I am

Re: Hide specific users from auth user model for non super users

2015-09-10 Thread Xavier Palacín Ayuso
I solve this overrite a UserAdmin class of admin.ModelAdmin: from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django.utils.translation import ugettext, ugettext_lazy as _ from django.core.exceptions import PermissionDenied class

Re: Get current user in model signal pre_save

2015-09-10 Thread Xavier Palacín Ayuso
Finally overrite a UserAdmin ModelAdmin: from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django.utils.translation import ugettext, ugettext_lazy as _ from django.core.exceptions import PermissionDenied class UserAdmin(admin.ModelAdmin):

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-10 Thread Mario Gudelj
+1 angular. Stack overflow is your friend and there's a lot of angular on it. You can do a lot with it with basic knowledge as well. And template syntax will make sense going to it from django On 10 Sep 2015 3:53 pm, "Gergely Polonkai" wrote: > Hello, > > this is a bit off