Re: Question about users system

2016-04-15 Thread Luis Zárate
I thing Sites framework do something similiar to you problem, so you could study how is implemented. https://docs.djangoproject.com/en/1.9/ref/contrib/sites/ El viernes, 15 de abril de 2016, Eduardo Leones < edua...@ypytecnologia.com.br> escribió: > Javier, thanks for the answer. > Very

Problem with django.contrib.session datetimes after Django upgrade

2016-04-15 Thread Jens Wetzl
Hi, I upgraded from Django 1.7.x to 1.9.5 and now get sporadic errors like this that come from the django.contrib.sessions module (the full stack trace is below): Exception Type: ValueError at /subscriptions/ Exception Value: make_aware expects a naive datetime, got 2016-04-21

How to customizing CSS in djangocms-table

2016-04-15 Thread Régis Silva
I use djangocms-table . And this plugin return Tabela exemplo 2 3 5 8 a b c d e

Re: Design hints for a sanity checker

2016-04-15 Thread Derek
You probably want to use Celery for asynchronous processing e.g. see http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html (plus a TON on material on the web...). PS We welcome all refugees from the "static-only-HTML" 1990's here ;) On Friday, 15 April 2016 14:23:51

Re: Question about users system

2016-04-15 Thread Eduardo Leones
Javier, thanks for the answer. Very interesting "multi-Tenat" solution, including found this really cool below: https://github.com/bernardopires/django-tenant-schemas What worried me was his observation that is not a simple implementation to be done in Django. What is the biggest difficulty

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
Glad to hear it, sorry I wasn't more help. On Fri, Apr 15, 2016 at 10:49 AM, wrote: > Hey John, > cool it runs now. > I had multiple problems: > > 1.) I granted ALL rights to my user on the test DB. > ==> This solved the issue with the TransactionManagementError. > > 2.) I

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hey John, cool it runs now. I had multiple problems: 1.) I granted ALL rights to my user on the test DB. ==> This solved the issue with the TransactionManagementError. 2.) I had to do some changes in my configuration and play around. Afterwards the tests were running. But not all green :-|

Re:

2016-04-15 Thread Mads Viborg Jørgensen
I'm kind of stuck on the same thing here. And I'm interested in a solution as I beleive it is causing me some troubles. My relevant settings.py are: STATICFILES_DIRS = ( os.path.join(PROJECT_ROOT, 'static'), ) INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth',

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
No I have not added a target. The reason is that there is a class deriving from NoseTestSuiteRunner. This class defines the run_tests function which modifies the test_labels passed to the base 'constructor'. If I add a Target for a single test (testclass.testMethod) then just this test method

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
The next step (for me at least) would be to start removing/commenting out things from the tests file until you stop getting the error. Hopefully that will tell you what statement(s) may be causing the problem. Although I fear you may be correct in thinking this is a configuration issue. Have you

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hi John, I did now comment out those two files, but still get the same error. Maybe I have a wrong configuration or so. I'm quite new in Django / Python. Regards schaf Am Freitag, 15. April 2016 15:11:40 UTC+2 schrieb John Griebel: > > That's what I would try. > > On Fri, Apr 15, 2016 at 9:02

Re: Question about users system

2016-04-15 Thread Javier Guerra Giraldez
On 15 April 2016 at 12:17, Eduardo Leones wrote: > I am developing a system in which my clients are companies. Every company > needs to have its isolated from other business data. google for "multi-tenant" web applications. warning: there are quite strong opinions

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
That's what I would try. On Fri, Apr 15, 2016 at 9:02 AM, wrote: > Hi John, > thanks, but I did already check for @transaction.commit_manually in the > code, but PyCHarm serahc just finds this in the > virtualenv/python2.7/site-packages/django_extensions/management/commands.

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hi John, thanks, but I did already check for @transaction.commit_manually in the code, but PyCHarm serahc just finds this in the virtualenv/python2.7/site-packages/django_extensions/management/commands. So in my code there is nothing, would you recommend to comment those out, even if it is not

Design hints for a sanity checker

2016-04-15 Thread Erik Cederstrand
Hi list, I need to implement a sanity checker for my (power) users. Basically they should press a button on my website, and my backend runs a checklist of 20-30 items to check that their setup is OK and report progress while the checks are running. Some checks are fast, and others could take a

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
If you have methods using the @transaction.commit_manually decorator, comment those out temporarily. You should get a more helpful error message after doing so. On Fri, Apr 15, 2016 at 4:44 AM, wrote: > Hi All, > I took over some projects written with Python 2.7 / Django

Question about users system

2016-04-15 Thread Eduardo Leones
Good Morning. First, excuse my English, I hope to have been understood my question. I'm new in this Django world. My question is more theoretical because I have little coded thing in the project. I am developing a system in which my clients are companies. Every company needs to have its

Development Server Loading Time Issue: posix.waitpid

2016-04-15 Thread chris mc
Hi guys, I'm fairly new to Django. I'm running Django 1.3 (stuck with it unfortunately) and on my own machine I'm using the development server: python manage.py runserver When I make a change to a pyhton file the development server restarts but it's extremely slow to load again. Is this how

Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hi All, I took over some projects written with Python 2.7 / Django 1.5.1. For unit tests the django-nose 1.2 (nose 1.3.3) is used and the project structure has its own tests directory which contains the testrunner.py. As a development environment I use PyCharm. As I wanted to run the unit tests I