Re: public-permission profile in Django allauth

2022-11-15 Thread Jun Tanaka
Logged-in users 2022年11月16日水曜日 9:56:23 UTC+9 Ryan Nowakowski: > Who should be able to view the non public tweets? Just the author? > > > On November 15, 2022 2:10:46 AM CST, Jun Tanaka wrote: >> >> Good day team, >> >> I’m making a Twitter-like applicati

public-permission profile in Django allauth

2022-11-15 Thread Jun Tanaka
Good day team, I’m making a Twitter-like application. I want to make it every user can choose his tweet public or not. I use Django allauth. Maybe, there is a configuration for this? Also, be able to access the public-permission profile link without login If anyone knows the simplest way

Re: Combining django apps

2022-10-19 Thread Jun Tanaka
Also, some website says something like INSTALLED_APPS = [ 'todo.apps.TodoConfig', You say, INSTALLED_APPS = [ 'todo', I am confused. Which is proper? And the difference? 2022年10月19日水曜日 13:49:41 UTC+9 eupaulo...@gmail.com: > First of all, you need to add all your apps in INSTALED

Re: Combining django apps

2022-10-19 Thread Jun Tanaka
Thank you for your answer. I can not see below "Let me show you an example". Probably, some of last sentences got cutoff. And I want to see an example. 2022年10月19日水曜日 13:49:41 UTC+9 eupaulo...@gmail.com: > First of all, you need to add all your apps in INSTALED APPS into the > project >

Combining django apps

2022-10-18 Thread Jun Tanaka
mysite/ manage.py config/ __init__.py settings.py urls.py wsgi.py app1/ app1a/   app1b/ app2/ app3/ I would like to know how to combine apps together just like above. Each app itself works fine when runserver. I

please tell me the best way to construct a Model of Quiz form

2016-03-08 Thread Jun Tanaka
Hi, I am trying to make a form for Quizzes. I hope to know how to construct a model which be added choices. A model should be constructed by three parts as Question the number of right answer several buttons to choose for example of a model, class Quiz(models.Model): question =

Re: how to copy data per user

2015-10-08 Thread Jun Tanaka
Hello Tim, 2015年10月7日水曜日 21時36分59秒 UTC+9 Tim Graham: > > I don't think you've provided enough details about your models for anyone > to provide an answer. > > Probably, you are right. Simply, any model with below for per users is fine. from django.contrib.auth.models import User Say

how to copy data per user

2015-10-07 Thread Jun Tanaka
Hello all! I use Django 1.6 I would like to copy data from one user to another. Say user 1 has data_set_A in database and I would like to copy data_set_A to user 2, user3, user4. If you could tell me any simple way to do so, I would appreciate it. Thank you, Jun -- You received this

CSRF Verification error appeared after I changed DNS ver2

2015-05-15 Thread Jun Tanaka
Hi, I got the same kind of an error as below. CSRF Verification error appeared after I changed DNS https://groups.google.com/forum/#!msg/django-users/dQXdPeAd6Fg/wFsEG03Qeu0J And there is no solution written in there. Hope someone can help me. Versions Djagno 1.6 python2.7 In my case, I got

Re: CSRF Verification error appeared after I changed DNS

2015-05-15 Thread Jun Tanaka
I got the same kind of an error. In my case, I got u'CSRF_COOKIE' instead of 'csrf' in request. I appreciate any solution for this issue. 2013年1月9日水曜日 8時44分49秒 UTC+9 Saqib Ali: > > > Hi. > > I have been using Django successfully for a few days now. I was running my > django application on an

CSRF Verification error appeared after I changed DNS ver2

2015-05-15 Thread Jun Tanaka
Hi, I got the same kind of an error as below. CSRF Verification error appeared after I changed DNS https://groups.google.com/forum/#!msg/django-users/dQXdPeAd6Fg/wFsEG03Qeu0J And there is no solution written in there. Hope someone can help me. Versions Djagno 1.6 python2.7 -- You received

arrange date-products data on admin

2014-09-26 Thread Jun Tanaka
Hello, I have a question on a way to arrange date-products data on admin. I want to make it looke like date productA 09/26 9:00 5 09/26 10:00 8 09/26 13:00 4 09/27 9:00 9 09/27 10:00 4

runserver => production mode

2014-07-03 Thread Jun Tanaka
Debug tool bar + runserver is very handy. But production environment have a root_path. Say, such as IPaddress/simle_project. Now we change the root_path in url.py each time for prodction. Is there any better way to resolve this problem? Two possible solutions: 1.Runserver with the

problem with variable which comes up in my Django template

2014-06-27 Thread Jun Tanaka
Hello everyone, I have a problem with a variable in my Django template showing up. Somehow it shows two different variable when it is mod_wsgi and it is runserver. One possibility is that the cache keep the old html. So I use disable cache mode in Chrome. F12 => setting => disable cache. This

Re: Many links to one function in url.py

2014-05-21 Thread Jun Tanaka
Hi Lucas, Thank you very much. It seems that I can use this. Hopefully, I can ask you one more question. \d+ is for a int. is \w+ for a string? What does \w* mean? I saw it. Jun 2014年5月21日水曜日 11時49分46秒 UTC+9 Lucas Klassmann: > > Hi Jun, > > Try this: > > Put only this line in urls.py > >

Many links to one function in url.py

2014-05-20 Thread Jun Tanaka
Hi there. I hope to know the solution for the following: say, there are several links to one function but I would like to identify which link that come from. url.py looks (r'^link1/$', 'project.apps.main.get'), (r'^link2/$', 'project.apps.main.get'), (r'^link3/$',

wsgi does not work as intended even it works fine when python manage.py runserver 0.0.0.0:8000

2014-03-22 Thread Jun Tanaka
Hello, wsgi does not work as usually even it works fine when python manage.py runserver 0.0.0.0:8000 I use django version 1.3 I have two issues here. 1. how to add projectname inside of the url 2.static is not connected right 153.xx.x.x.x:8000/simple_project this works. But not when

Re: psycopg2

2012-11-17 Thread Jun Tanaka
Thank you for your advise. I used the trace back and it says 'exceptions.ImportError'. On Windows, cay you not easy_install psycopg2? When I did, it seems that it was done correctly. Please help!!! 2012年11月18日日曜日 2時11分23秒 UTC+9 ovnicraft: > > > > > On Sat, Nov 17, 2012 a

psycopg2

2012-11-17 Thread Jun Tanaka
I run a django program with psycopg2 on Mac and then it works fine. Now, I am trying to run the same program on Windows. Then "ImportError: No module named psycopg2.extensions" shows up. I installed the same version of django, postgres, psycopg2. Please give me a help. -- You received