When I use requests test loginView, return 302 and response header set-cookie , in sessionid line, there are always have a "SameSite=Lax," before sessionid string. This causes client cookies parser pr

2020-01-08 Thread bjxyys XIN
{set-cookie: csrftoken=dsEtx2CP6rX5bhIbRmkTOv5LmciytID5t6ShQbgNMTALTnhCoXdxWQ1TcAzxQoDO; expires=Wed, 06 Jan 2021 17:01:00 GMT; Max-Age=31449600; Path=/; SameSite=Lax,sessionid=2rtrkbnhc8m30iqs7sw4em014hr6a3ss; expires=Wed, 22 Jan 2020 17:01:00 GMT; HttpOnly; Max-Age=1209600; Path=/;

Re: Maybe a bug, about app and view function name collision

2016-12-21 Thread Xin Belter
It works, I didn't change anything(maybe somewhere I didn't realize)... interesting... 在 2016年12月19日星期一 UTC+8下午8:17:09,Xin Belter写道: > > Here is the strange thing I just met: > > My project's name is *showMetDDA*, and has only one app named *showTable*, > in my app's vimes.

Maybe a bug, about app and view function name collision

2016-12-19 Thread Xin Belter
Here is the strange thing I just met: My project's name is *showMetDDA*, and has only one app named *showTable*, in my app's vimes.py file, I have a view function named *show_table().* When I import my view function in urls.py(~/djcode/showMetDDA/showMetDDA/urls.py) file, I cannot import it.

a design about cache(using redis) , and some problem about it

2016-04-10 Thread Xin Liu
Now, Let's look at the following scenario: A website manage 10,000 students, and show top 100 of student's achievement. I use mysql storage every student personal information(name email sex and achievement) but I have to get every student achievement and caculate Top 100, so I use redis to solve

a question about redis cache

2016-04-10 Thread Xin Liu
Let's look at the following scenario: A website has 1 player, to make question easier, I use mysql storage player with just one table: "player_table" --table here- name string score int now, I want to show Top 100 of those players by socre. if only with mysql, I have to caculate

Why django project name must be start with letter or underline? Why not number?

2016-01-25 Thread bjxyys XIN
hi, Why django project name must be start with letter or underline? Why not number? I found flask project name can begin with a number. thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django error report not being sent through email

2015-09-19 Thread Xin Ji
No, I haven't. How should I override? And Which file should I put the LOGGING settings in? 在 2015年9月19日星期六 UTC+8下午7:49:56,Xin Ji写道: > > I'm using apache + django + mod_wsgi to serve my app. > My apache version is 2.4.7 and my django version is 1.8.4 > > My django settings are: &

Django error report not being sent through email

2015-09-19 Thread Xin Ji
I'm using apache + django + mod_wsgi to serve my app. My apache version is 2.4.7 and my django version is 1.8.4 My django settings are: * DEBUG=False* * ADMINS = [ ('username','usern...@comp.nus.edu.sg'), ] MANAGERS = [ ('username','usern...@comp.nus.edu.sg'), ]

Re: How to make https work fine under django server?

2015-09-05 Thread vincent . j . xin
I find there are some configuration about using Django with Apache and mod_wsgi in Django document. So, I install apache-2.4.7 and mod_wsgi. But the thing is that I'm confused about how it can work. Should I start a server on mod_wsgi? Is that possible to support https? -- You received this

How to make https work fine under django server?

2015-09-04 Thread vincent . j . xin
Hi, everyone. I'm a new user of Django. I have established an app and run a server on Django. However, when I open a URL of my app(e.g. *https*://example.com/.../), it always shows the following error on the command line. *You're accessing the development server over HTTPS, but it only supports

Django "CSRF cookie not set" question

2014-03-13 Thread Xin Kuo
Hi, I am developing a management system by django 1.6. Using django + wsgi + apache to implement this project, there are some html on the one directory, angularjs $http use "POST" mehtod to visit the django web url to get some data (django web url on the other directory). front end

auth.Message ignores directions from database router - Possible RelatedManager bug

2010-03-28 Thread xin
I am unsure if this a bug in Django, or django-multidb-router, or something I've done wrong. I'm using django-multidb-router from here: http://github.com/jbalogh/django-multidb-router With two database definitions, a read_only_user and a read_write_user (with the intentions of having multiple

Best-practices for form with image

2007-05-22 Thread Xin Xic
Hello, First, sorry for my english. Well, I want out a form for a human verification with an image and an input field. But I don't know how is the best practice for make this. How do you do it? I need print: - An image (different in each case) - An hidden input with data relationated

Using a Django project in a python script.

2006-07-05 Thread xin
As a part of the application I'm writing I need to do certain things to the database every night. The easiest way to implement this would be a python script run every night by cron. As django offers an interactive shell (through manage.py) I figured there must be a way to use this functionality