How to split the settings on per-user.

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed the system which works for single user. But, now, all models can be seen by admin user. I must split the user on per-user on admin web page. One can not see each other's admin page. Could you tell me how do you set settings?

How to split the models on per-user.

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed the system which works for a single user. For later plan, I would split the models on per-user. This is the model below which I must split on per-user. class Questions(models.Model): qid = models.IntegerField(

How to split the models on a per-user.

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed system which develop. But, the system has designed mistook the logical design. I must split the models on a per-user. This is the model below which I must split on a per-user. class Questions(models.Model): qid =

How to split admin on a per-user

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed system which develop. But, now, all models can be seen by admin user. I must split the user on a per-user on admin web page. I want to not see a model that each other is owned by another user. Could you tell me how do you set

Re: How to check appname via Django commands?

2015-01-20 Thread Sugita Shinsuke
gt; do you mean the order the apps appear in the INSTALLED_APPS setting? > > On Sat, Jan 17, 2015 at 6:38 AM, Sugita Shinsuke <shin...@gmail.com > > wrote: > >> Hi there. >> >> I use Django 1.6 version. >> >> The database of Django store the information of

How to check appname via Django commands?

2015-01-17 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. The database of Django store the information of application. So, I know that if I change the hierarchy of the Django project folders, some trouble occurs. That is why, I'd like to check the name of my application. I think some of Django commands like

Re: CSRF verification failed when I use smart phone

2015-01-09 Thread Sugita Shinsuke
Hi Zach Borboa Thank you for replying. Do you mean that both of PC and Mobile device are caching an incorrect csrf token? I use iframe. Child frame html page uses form, and can it use csrf? 2015年1月9日金曜日 15時14分55秒 UTC+9 Zach Borboa: > > Mobile device could also be caching an incorrect csrf

Re: CSRF verification failed when I use smart phone

2015-01-09 Thread Sugita Shinsuke
> -Abraham V. > > > On Thursday, January 8, 2015 2:15:21 PM UTC+5:30, Sugita Shinsuke wrote: >> >> Hello Vijay Khemlani >> >> Thank you for replying. >> But, of cause I appended the tag in my form like below >> >> >> {% csrf_token

Re: How to run background application via Django

2015-01-08 Thread Sugita Shinsuke
ady(): print 'processing...' print result.get() return HttpResponse("test") 2015年1月9日金曜日 13時49分15秒 UTC+9 Sugita Shinsuke: > > Hi Vijay Khemlani > > Thank you for replying. > > >Have you done the celery tutorial? > I have not done the celery tutorial yet

Re: How to run background application via Django

2015-01-08 Thread Sugita Shinsuke
you done the celery tutorial? > > Async tasks require you to have a broker (rabbitmq or something) and also > to create some workers that actually execute the task. > > On Fri, Jan 9, 2015 at 12:55 AM, Sugita Shinsuke <shin...@gmail.com > > wrote: > >> Hi somecalli

Re: How to run background application via Django

2015-01-08 Thread Sugita Shinsuke
lp me? 2015年1月8日木曜日 19時19分20秒 UTC+9 somecallitblues: > > Look into celery. It's the best and easiest way to run bg jobs imo > On 08/01/2015 9:10 pm, "Sugita Shinsuke" <shin...@gmail.com > > wrote: > >> Hi there. >> >> I'd like to run background

How to run background application via Django

2015-01-08 Thread Sugita Shinsuke
Hi there. I'd like to run background application. I coded this code. I wrote the urls.py and I added in the view. def run_junix(request): cmd = "cd app_path;nohup python background_app.py &" import subprocess proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,

Re: CSRF verification failed when I use smart phone

2015-01-08 Thread Sugita Shinsuke
. 2015年1月6日火曜日 23時00分10秒 UTC+9 Vijay Khemlani: > > ¿Did you include de {% csrf_token %} tag in the form? ¿Is it generating > the corresponding hidden input tag in the html? > > On Tue, Jan 6, 2015 at 6:09 AM, Sugita Shinsuke <shin...@gmail.com > > wrote: > >> Hello. >

CSRF verification failed when I use smart phone

2015-01-06 Thread Sugita Shinsuke
Hello. When I use Django via my smart phone Android and iOS. The error sometimes occurred. Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token missing or incorrect. In general, this can occur when there is a genuine Cross Site Request Forgery,

Re: I can't syncdb via django_pyodbc of Django.

2014-12-12 Thread Sugita Shinsuke
; 'DATABASE=my_db_name;' > 'UID=my_username;' > 'PWD=my_password') > >>> conn > > > > ### > > Hope this helps! > > --F

Re: I can't syncdb via django_pyodbc of Django.

2014-12-11 Thread Sugita Shinsuke
nents are displayed on the web site. > > Works like a charm > > One dependency is pyodbc to be installed. > > > > On Wednesday, December 10, 2014 4:22:44 AM UTC-5, Sugita Shinsuke wrote: >> >> Hi there. >> >> Could you tell me a good way to use

Re: I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread Sugita Shinsuke
components are displayed on the web site. > > Works like a charm > > One dependency is pyodbc to be installed. > > > > On Wednesday, December 10, 2014 4:22:44 AM UTC-5, Sugita Shinsuke wrote: >> >> Hi there. >> >> Could you tell me a good way to use

Re: I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread Sugita Shinsuke
re displayed on the web site. > > Works like a charm > > One dependency is pyodbc to be installed. > > > > On Wednesday, December 10, 2014 4:22:44 AM UTC-5, Sugita Shinsuke wrote: >> >> Hi there. >> >> Could you tell me a good way to use Django with Micro

I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread Sugita Shinsuke
Hi there. Could you tell me a good way to use Django with Micro Soft DB SQL server. I tried django_pyodbc. Any suggestion is appreciated. my PC of Environment is below. Database: SQL Server 2014 Express OS: Windows 7 Home Premium SP1 I used the django module, django_pyodbc. And, I tried to

Re: What is different of handling character code between pure Python and Django?

2014-05-26 Thread Sugita Shinsuke
Hello Tom I finally resolved the problem. I used subprocess.Popen's option "shell=False" And, make cm by list. I resolved. Thank you. 2014年5月8日木曜日 17時45分52秒 UTC+9 Tom Evans: > > On Thu, May 8, 2014 at 5:05 AM, Sugita Shinsuke > <shin...@gmail.com> >

Re: What is different of handling character code between pure Python and Django?

2014-05-07 Thread Sugita Shinsuke
ed sys.stdout = codecs.getwriter('utf-8')(sys.stdout) But, I couldn't resolve... >language that user requests (if supported and USE_i18N=True) or LANGUAGE_CODE otherwise. Both of them are True. USE_I18N = True USE_L10N = True 2014年5月8日木曜日 1時23分01秒 UTC+9 Tom Evans: > > On Sun, Apr 27, 2014 at 7

Re: What is different of handling character code between pure Python and Django?

2014-05-07 Thread Sugita Shinsuke
suggestion. But error happened like below. >> >> 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in >> range(128) >> >> >> >> >> 2014-05-06 17:10 GMT+09:00 Hannu Krosing <ha...@2ndquadrant.com >> >: >> >>>

Re: What is different of handling character code between pure Python and Django?

2014-05-06 Thread Sugita Shinsuke
Dear François I checked Django's encoding again. locale.getpreferredencoding() is ANSI_X3.4-1968 sys.getdefaultencoding() is ascii 2014年5月5日月曜日 20時12分52秒 UTC+9 Sugita Shinsuke: > > Dear François Schiettecatte > > Hello. > Thank you for replying. > > I checked s

Re: What is different of handling character code between pure Python and Django?

2014-05-05 Thread Sugita Shinsuke
//stackoverflow.com/questions/15740236/stdout-encoding-in-python > > http://stackoverflow.com/questions/492483/setting-the-correct-encoding-when-piping-stdout-in-python > > > François > > On Apr 27, 2014, at 2:13 AM, Sugita Shinsuke <shin...@gmail.com>

What is different of handling character code between pure Python and Django?

2014-04-27 Thread Sugita Shinsuke
Hi there I’d like to run Java code via Django. The Java code, javaprogram use like below. — java javaprogram [text] [file_name] — text is parameter. multi-byte character is also okey. file_name is generate file name. So, I run the stand-alone Python program like below could run fine. —