Adding relationship to User model

2010-10-21 Thread easylancer
I want to create s many to one in the users model so that a account can contain many users. How do i do this since User model exists in django core? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us..

Re: admin media permission error on Nginx, can anyone help

2010-12-27 Thread easylancer
I server up my django apps on nginx using the following config file server { listen 80; server_name domain.com; root /location/of/application access_log /location/to/logs/application.access.log; error_log /location/to/logs/application.error.log;

Re: admin media permission error on Nginx, can anyone help

2010-12-27 Thread easylancer
open the sources in site_media/static/ & > site_media/media/ corrected > > but can not open the sources in site_media/admin (from the message in > nginx error_log) > > the xxx.xxx.xxx.xxx/admin looked wired without css. > > On Dec 27, 9:56 pm, easylancer wrote: > >

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-27 Thread easylancer
I had this same issue before and it was due to TEMPLATE_CONTEXT_PROCESSORS being missing. Try adding code below in settings.py if not already there. TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.conte

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-28 Thread easylancer
1.2.1 > on windows. > > On Dec 28, 12:56 am, Kenneth Gonsalves wrote: > > > > > > > > > On Mon, 2010-12-27 at 08:03 -0800, easylancer wrote: > > > TEMPLATE_CONTEXT_PROCESSORS = ( > > >     'django.contrib.auth.con

django-taggit how to get tags based on foreign key

2011-02-19 Thread easylancer
I have a model [http://pastie.org/1582079] which I am trying to get tags based on the Worksheet foreign key, so tags per worksheet. I am unable to find any examples of ways how to do this? I was able to accomplish this easily with django-tagging by doing Tag.objects.usage_for_queryset(Cashflow.obj