Re: 3 table many to many relationship

2014-04-23 Thread Simon Charette
Django allows you to explicitly specify an intermediary model for many-to-many relationships with the `through` option. class A(models.Model): b_set = models.ManyToMany('B', related_name='a_

3 table many to many relationship

2014-04-23 Thread Malik Rumi
I was designing the models I will need for this project. I designed an intermediate table for two models, A and B, and then started to sketch out an intermediate table for two other models, A and C, when I realized that these two intermediate tables both use A, and further, the information in

Re: django-cache-machine with Redis

2014-04-23 Thread Mike Megally
Did you figure this out? I'm currently in the same situation. On Thursday, March 28, 2013 9:56:13 PM UTC-7, Alan Johnson wrote: > > How does one configure this? The documentation only explains how to use > locmem or memcached, and yet the commit logs reference Redis multiple > times, so it must

Re: Django ユーザー登録について

2014-04-23 Thread hito koto
Ok, Thank you very much! 曜日 7時08分05秒 UTC+9 Lachlan Musicman: > > > On 23 April 2014 17:59, hito koto >wrote: > >> Thank you! >> i can do create! >> >> Sorry! i'm don't understand create staff site, >> i want to create staff site , staff site should have when rogin using >> ID/PW and have staff

How can I set up Debian x86_64 so a Django project sees django.contrib.staticfiles?

2014-04-23 Thread Christos Jonathan Seth Hayward
I have a new Debian VPS, and a Django project that I am trying to deploy is not seeing django.contrib.staticfiles.*. Doing a "pip install django-staticfiles" has not observably changed things. What is the best way to have things running well enough that such Django projects will run? Thanks, --

Django and Zinnia + DjangoCMS

2014-04-23 Thread Silvio Siefke
Hello, im not sure is allowed to ask here. I want run Django CMS, Django is sympa but im not a programmer so i think django cms make it easier to run a Website. At moment i try local tests to convert my pages in this system. I has 2 problems with the this system. 1.) Must i activate in settin

Re: Django ユーザー登録について

2014-04-23 Thread Lachlan Musicman
On 23 April 2014 17:59, hito koto wrote: > Thank you! > i can do create! > > Sorry! i'm don't understand create staff site, > i want to create staff site , staff site should have when rogin using > ID/PW and have staff profile > i'm realy don't know! > > pleae help me > So you need to create

Re: why does django user require create database privlages for testing

2014-04-23 Thread Alex Mandel
If you don't want to setup a test db with permissions for a test app, use sqlite. I can't see why you'd ever want to give your web app carte blanc permissions to run all over your db server. Seems to me "you create a test database as super user" is the same as changing to a db admin user, creating

Re: why does django user require create database privlages for testing

2014-04-23 Thread Bill Freeman
Because virtually all of us don't want our production database used for testing. On Wed, Apr 23, 2014 at 4:18 PM, dacresni wrote: > Rails doesn't require this, you create a test database as super user and > it uses it for testing. Why doesn't django allow this? > > -- > You received this messag

why does django user require create database privlages for testing

2014-04-23 Thread dacresni
Rails doesn't require this, you create a test database as super user and it uses it for testing. Why doesn't django allow this? -- 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,

Model Design, Nesting by Year

2014-04-23 Thread Christopher Grande
I'm in the process of designing an internal system and I'm having trouble designing the model so that it will function as I need it. The basic idea is that everything is "Season" based, where a season is a year (2014, 2015, etc) >From the there we have Events and the the Seasons they are functi

Re: Bilingual Content Creation

2014-04-23 Thread Andreas Kuhne
That really depends on what you want to do with it. We are using both dbgettext with Rosetta and transmeta in our application. Transmeta creates extra database fields with _en and _es (or other language-codes). You then edit the fields in django admin, like regular fields. It is an easy way to cr

Bilingual Content Creation

2014-04-23 Thread Nate
I'm making a Django site that will have Spanish and English content. I know I will be using i18n. I want users to be able to create and translate content easily from the django admin. I am wondering how I should implement this. I've looked

Re: Interesting Django project folder structure.

2014-04-23 Thread Amirouche Boubekki
2014-04-21 16:00 GMT+02:00 Tianyi Wang : > Today I was reading through > http://www.deploydjango.com/django_project_structure (great resource) > > The suggested folder structure for a Django project from this site is like > below: > (I'm only interested in layout for Django apps, not requirements

Re: Form wizard get_template_names()

2014-04-23 Thread Juan Miguel Taboada
On Wednesday, July 13, 2011 4:31:58 AM UTC+2, Dario Vergara wrote: > > Here is the solution: > > def get_template_names(self): > next_step = int(self.steps.current) > return 'step_%s.html' % next_step > > > Simple solution. What is confusing is that the documentation says

Re: Django

2014-04-23 Thread Srinivasulu Reddy
Hi Daniel , you asked me copy and paste the error i got. In dealing of poll app part 4 help me to find a way to solve the problem in dealing with results.html and results view . Before changing results view it's working good. After changing result view and after creating in results.

Re: Django ユーザー登録について

2014-04-23 Thread hito koto
Thank you! i can do create! Sorry! i'm don't understand create staff site, i want to create staff site , staff site should have when rogin using ID/PW and have staff profile i'm realy don't know! pleae help me 2014年4月23日水曜日 16時18分44秒 UTC+9 Lachlan Musicman: > > > On 23 April 2014 14:11, hito

Re: Django

2014-04-23 Thread Daniel Roseman
Why have you posted screenshots of text to a text-based newsgroup? Please copy and paste the relevant text into a message (the Django error page even has a special link to go to a copy and paste view). -- DR. -- You received this message because you are subscribed to the Google Groups "Django

Re: Django ユーザー登録について

2014-04-23 Thread Lachlan Musicman
On 23 April 2014 14:11, hito koto wrote: > Thank you very much good idea! > i'm was try but i'm have error when create new staff ! > > >>Request Method: POST >>Request URL: http://articles/create/ >>Django > Version: 1.6.2 >>Exception Type: IntegrityError >>Exception Value: > > (1048, "Column