Re: Django setup with elsatic beanstalk

2012-10-23 Thread Andrzej Winnicki
Try with python.config instead of simple .config file (this is just an file extension, not file name). Requirements.txt should be at 'top-level directory of your source bundle'. More info here: http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Python_custom_container.htm

Re: Django setup with elsatic beanstalk

2012-10-23 Thread Andrzej Winnicki
Try also to change settings in .elasticbeanstalk/optionsettings. [aws:elasticbeanstalk:application:environment] DJANGO_SETTINGS_MODULE = PARAM1 = PARAM2 = PARAM4 = PARAM3 = PARAM5 = [aws:elasticbeanstalk:container:python] WSGIPath = application.py NumProcesses = 1 StaticFiles = /static=

ValidationError code attribute

2013-10-31 Thread Andrzej Winnicki
Hi, I have a question about handling ValidationErrors in templates. ValidationError allows to pass custom error code to its constructor like this: ValidationError(_('Error 1'), code='error1'), But I can't find any way to access this code in template. Actually in forms/forms.py class in Djan

When permissions from meta are saved in database?

2014-07-12 Thread Andrzej Winnicki
Hello, I have a trouble understanding when exactly extra permissions (in Meta) are added to database. In doc I can read that: Extra permissions to enter into the permissions table when creating this > object. Add, delete and change permissions are automatically created for > each model. But