Re: install gettext tools 0.15

2015-10-30 Thread Ramiro Morales
On Fri, Oct 30, 2015 at 5:59 PM, Dariusz Mysior wrote: > I do this and I have msfgmt is not recognized as an internal or external > command, operable program or a batch file. Then you'll need to identify, among the directories created by the installation of gettext tools,

Re: install gettext tools 0.15

2015-10-30 Thread Dariusz Mysior
I do this and I have msfgmt is not recognized as an internal or external command, operable program or a batch file. W dniu piątek, 30 października 2015 21:33:52 UTC+1 użytkownik Dariusz Mysior napisał: > > I use Windows 8 Python 3.4 Django 1.8 and I try > > I set settings and add: USE_I18N =

Re: install gettext tools 0.15

2015-10-30 Thread Ramiro Morales
On Fri, Oct 30, 2015 at 5:33 PM, Dariusz Mysior wrote: > I use Windows 8 Python 3.4 Django 1.8 and I try > > I set settings and add: USE_I18N = True > > add to MIDDLEWARE_CLASSES django.middleware.locale.LocaleMiddleware > > like in describe in link below > >

install gettext tools 0.15

2015-10-30 Thread Dariusz Mysior
I use Windows 8 Python 3.4 Django 1.8 and I try I set settings and add: USE_I18N = True add to MIDDLEWARE_CLASSES django.middleware.locale.LocaleMiddleware like in describe in link below https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#gettext-on-windows I download

Re: Does the bulk delete check the permissions correctly?

2015-10-30 Thread Tim Graham
I think there are a number of open tickets related to this. See https://code.djangoproject.com/ticket/23869 and the first comment that links to related issues. Feel free to offer a patch if you are able. On Friday, October 30, 2015 at 3:04:21 PM UTC-4, Szymon Pyżalski wrote: > > Hello! > >

Does the bulk delete check the permissions correctly?

2015-10-30 Thread Szymon Pyzalski
Hello! According to the documentation, the behaviour of has_delete_permission should look like this: If obj is None, should return True or False to indicate whether deleting objects of this type is permitted in general (e.g., False will be interpreted as meaning that the current user is not

Re: mssql databASE CONNECTION to Django

2015-10-30 Thread Sid
np...but thanks for your time -- 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: mssql databASE CONNECTION to Django

2015-10-30 Thread Tim Graham
Sorry, I haven't used the library myself and can't provide any additional help. On Friday, October 30, 2015 at 10:31:35 AM UTC-4, Sid wrote: > > sorry tim I know I am asking a dumb question...can you please tell me what > is the best way to make it work please if possibe...because I am struck

Re: mssql databASE CONNECTION to Django

2015-10-30 Thread Sid
sorry tim I know I am asking a dumb question...can you please tell me what is the best way to make it work please if possibe...because I am struck form last 2 days -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: mssql databASE CONNECTION to Django

2015-10-30 Thread Tim Graham
Please read the documentation: https://django-mssql.readthedocs.org/en/latest/quickstart.html On Friday, October 30, 2015 at 9:53:42 AM UTC-4, Sid wrote: > > so which version will be compatible... > > On Friday, October 30, 2015 at 7:54:26 AM UTC-4, Tim Graham wrote: >> >> django-mssql doesn't

Re: mssql databASE CONNECTION to Django

2015-10-30 Thread Sid
so which version will be compatible... On Friday, October 30, 2015 at 7:54:26 AM UTC-4, Tim Graham wrote: > > django-mssql doesn't support Django 1.8 yet: > > https://django-mssql.readthedocs.org/en/latest/changelog.html > > On Thursday, October 29, 2015 at 9:36:38 PM UTC-4, Sid wrote: >> >> *Hi

Re: Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Andreas Kuhne
Hmmm I'm a bit at a loss here. But does Django know where to find the .mo files? Is it only your template that isn't getting translated, because you said that the form itself is? Regards, Andréas 2015-10-30 12:45 GMT+01:00 Sean Xu : > Now I have corrected the orders

Re: Translation is not working on ModelForm when widget is specified for form field

2015-10-30 Thread Sinwar Prem
okkk now i dont hv time whenever i get ill let u know On 30 October 2015 at 17:20, Sean Xu wrote: > Hi Andréas, > > I have now applied your second approach and now the field names get > translated into Chinese as expected... > Thanks so much. > > On Friday, October 30,

Re: return values from static files to django admin

2015-10-30 Thread dc
bump!! On Thursday, October 29, 2015 at 11:40:32 PM UTC-4, dc wrote: > > I have declared a charfield 'choice_text' in one of my models. I want to > convert it to a dropdown box in django admin. The choices in the dropdown > list depend on user input to a textbox defined in another model class.

Re: mssql databASE CONNECTION to Django

2015-10-30 Thread Tim Graham
django-mssql doesn't support Django 1.8 yet: https://django-mssql.readthedocs.org/en/latest/changelog.html On Thursday, October 29, 2015 at 9:36:38 PM UTC-4, Sid wrote: > > *Hi all,* > I am trying to connect database which is in server to django, but it is > showing many errors like(platform i

Re: Translation is not working on ModelForm when widget is specified for form field

2015-10-30 Thread Sean Xu
Hi Andréas, I have now applied your second approach and now the field names get translated into Chinese as expected... Thanks so much. On Friday, October 30, 2015 at 6:12:21 PM UTC+8, Andréas Kühne wrote: > > Hi, > > The problem is that you are redifining the fields, the fields then don't >

Re: Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Sean Xu
Now I have corrected the orders of each Middleware class and removed the duplicated SessionMiddleware: MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware',

Re: Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Sean Xu
Hi Andréas, Thanks very much for providing the help. Currently the middleware classes are configured like this: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',

Re: Translation is not working on ModelForm when widget is specified for form field

2015-10-30 Thread Andreas Kuhne
Hi, The problem is that you are redifining the fields, the fields then don't get any labels (because you haven't specified them). You can achieve what you want in two ways: Either add the following to your modelform: start_time = forms.DateTimeField(label=_("start time"),

Re: Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Andreas Kuhne
Hi, Have you made sure that you have activated the languages you want in your application? Also, how is the current language being selected? See: https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#how-django-discovers-language-preference Regards, Andréas 2015-10-30 7:45 GMT+01:00

Translation is not working on ModelForm when widget is specified for form field

2015-10-30 Thread Sean Xu
Hi, I was learning Django Translation using django-swingtime as project with Django 1.7.9 installed. And I found out when Non-default widgets was originally specified for form fields, the preferred language did not show up from my Firefox browser. The problem has gone when these widgets were

Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Sean Xu
Hi, I'm learning Django Translation using django-swingtime with Django 1.7.9 installed. I followed the official docs and embedded my string to translate with {% trans "String to translate" %} in my Template and managed to create both the po and mo files successfully. But, the page is still