Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Swaroop Shankar V
As Alasdair pointed out, i had few custom permission which had pretty big name. I reduce it and it got fixed. Thank you both for helping me out. Thanks and Regards, Swaroop Shankar V On Sun, Mar 18, 2012 at 6:27 AM, Sithembewena Lloyd Dube wrote: > ^^ What Alasdair said. If you still cannot so

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Sithembewena Lloyd Dube
^^ What Alasdair said. If you still cannot solve this after shortening your models' names, can we see your models? On Sat, Mar 17, 2012 at 11:54 PM, Alasdair Nicol wrote: > On 17/03/12 20:49, Swaroop Shankar V wrote: > >> Hello All, >> I was developing a website and the development was all done u

filtered admin change-list

2012-03-17 Thread omerd
Hi, I want to be able to show parts of the change list, by the user that view it. The case is that every super-user can create instances of a certain model. I wan't that in the change-list page of that model in the admin site, every user will see only the instances that he'd created. Of course, th

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Alasdair Nicol
On 17/03/12 20:49, Swaroop Shankar V wrote: Hello All, I was developing a website and the development was all done using sqlite database. Now the development is almost complete so i need to test the site using mysql. When i did a syncdb on a fresh database i got the following error: Tracebac

Re: problem with admin settings

2012-03-17 Thread Swaroop Shankar V
Did you run the syncdb after enabling it? While doing a syncdb did you encounter any errors? From the error it looks like django_session table is not created. Thanks and Regards, Swaroop Shankar V On Sun, Mar 18, 2012 at 3:07 AM, Sophia wrote: > Thank you for helping, I had enabled it. But I

Re: problem with admin settings

2012-03-17 Thread Sophia
Thank you for helping, I had enabled it. But I don't know what's wrong with it! On Saturday, March 17, 2012 2:23:10 PM UTC-7, Swaroop Shankar wrote: > > Sophia, > Please check if you have enabled the app 'django.contrib.sessions' in > your INSTALLED_APPS, if not do that and then do a syncdb, thi

Re: problem with admin settings

2012-03-17 Thread Swaroop Shankar V
Sophia, Please check if you have enabled the app 'django.contrib.sessions' in your INSTALLED_APPS, if not do that and then do a syncdb, this issue should be resolved. Thanks and Regards, Swaroop Shankar V On Sun, Mar 18, 2012 at 2:41 AM, Sophia wrote: > Hi all, > > I'm trying to set my admin

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Swaroop Shankar V
Swaroop Shankar V Sithembewena, Its not because i have not installed mysql module for python. syncdb worked fine for many of the apps in my project and created the tables for those apps. This issue arise when creating the table for few apps. Thanks and Regards, Swaroop Shankar On Sun, Mar 18, 20

problem with admin settings

2012-03-17 Thread Sophia
Hi all, I'm trying to set my admin settings so I will get the web page asking for user name and password, I did all the settings that is needed and mentioned in the online django book(chapter6), but the page keep giving me this error : Exception Type: DatabaseError Exception Value: no such

Re: NullBooleanField default to unknown

2012-03-17 Thread Ben Racine
yes. On Mar 16, 2012 8:07 PM, "Mike Dewhirst" wrote: > On 17/03/2012 11:02am, Ben wrote: > >> I have a NullBooleanField that I would like to show up in my admin >> interface as radio buttons with unknown selected by default. >> >> # I have the following simplified files >> >> ## models.py ## >> c

Re: Trouble setting up website with mysql as backend

2012-03-17 Thread Sithembewena Lloyd Dube
Did you install mysql-python? If not, you can find it on Sourceforge. On Sat, Mar 17, 2012 at 10:49 PM, Swaroop Shankar V wrote: > Hello All, > I was developing a website and the development was all done using sqlite > database. Now the development is almost complete so i need to test the site >

Trouble setting up website with mysql as backend

2012-03-17 Thread Swaroop Shankar V
Hello All, I was developing a website and the development was all done using sqlite database. Now the development is almost complete so i need to test the site using mysql. When i did a syncdb on a fresh database i got the following error: Traceback (most recent call last): File "./manage.py", l

syncdb failure in new project with 1.4c2

2012-03-17 Thread Thomas Lockhart
I see this is an old ticket (#16017) but the same failure is showing in 1.4c2 and the code does not reflect the solution suggested in the ticket comments: python manage.py syncdb ... Creating tables ... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group

Re: logs complaining about 404 url(css-files)

2012-03-17 Thread ionic drive
hello yati, thank you for your reply! unfortunately the change from {{ MEDIA_URL }} to {{ STATIC_URL }} did not fix the 404 error. I think I do have a problem with django-localeurl redirection. As soon as I have a fix, I post to the list. Cheers, ionic On Sat, 2012-03-17 at 23:36 +0530, yati

Re: logs complaining about 404 url(css-files)

2012-03-17 Thread yati sagade
try using {{ STATIC_URL }} instead of {{MEDIA_URL}} - It has worked for me, and where it doesn't, pass settings.STATIC_URL as a context variable from the view. On Sat, Mar 17, 2012 at 11:27 PM, ionic drive wrote: > ** > > hello *django friends*, > > my log files do complain about strange 4*04 er

logs complaining about 404 url(css-files)

2012-03-17 Thread ionic drive
hello django friends, my log files do complain about strange 404 errors when serving static css files to IE, because I do use special CSS files to please IE-versions via @import for CSS. The css files are included as follows in the html code: @import url({{ media_url }}css/sty

Re: Permission denied when saving a record with an ImageField in the model

2012-03-17 Thread Jonathan Baker
Chown *ch*anges the *own*er of a file. If you navigate to the directory giving you trouble using terminal and run 'ls -latr', you'll get a print out of both the owner and group for the directory contents. The first name listed is the owner, the second is the group. You need to ensure that the group

Re: Permission denied when saving a record with an ImageField in the model

2012-03-17 Thread Sithembewena Lloyd Dube
Thanks Jonathan, I actualyl came across that answer but am stupmed. I checked *man chown* in my terminal and I never understand those manuals. I will try to find my python process id. On Sat, Mar 17, 2012 at 6:58 PM, Jonathan Baker < jonathandavidba...@gmail.com> wrote: > Sithembewena, > > I was

Re: Permission denied when saving a record with an ImageField in the model

2012-03-17 Thread Jonathan Baker
Sithembewena, I wasn't exactly right in my response, but close. You need to make sure that the same process running your python interpreter has write permissions to your media directory. >From StackOverflow: "The process that is running your Python interpreter doesn't have permission to write int

Re: Permission denied when saving a record with an ImageField in the model

2012-03-17 Thread Sithembewena Lloyd Dube
Hi Jonathan, Thanks for the response. How do I do that? I ran *sudo chmod -R a+rwX Projects/* and I still get the same error. How do I go about making the folder writable? Thanks. On Sat, Mar 17, 2012 at 6:13 PM, Jonathan D. Baker < jonathandavidba...@gmail.com> wrote: > You need to make sure y

Re: Permission denied when saving a record with an ImageField in the model

2012-03-17 Thread Jonathan D. Baker
You need to make sure your server has write permissions on the home/projects directory. Sent from my iPhone On Mar 17, 2012, at 9:02 AM, Sithembewena Lloyd Dube wrote: > Hi all, > > I have a model with an ImageField and when I try to save a record in the > admin site, I get the following: >

CSRF_FAILURE_VIEW Not Working

2012-03-17 Thread Rico
I'm still pretty new to Django and have been following some online tutorials to learn it. I've run into a problem where the CSRF_FAILURE_VIEW doesn't seem to get used correctly and I'm not sure why. Here is the relevant code: *myProject/custom/csrf/views.py* from django.shortcuts import r

Re: how to display development server page

2012-03-17 Thread Alex Glaros
thanks sayakurt I'm on my PC at home, logged onto a SSH session on the host Linux server. So I'm typing the command on the server. Thanks, Alex Glaros On Mar 17, 12:53 am, Iqbal Hasnan wrote: > Hello, > > I'm trying to help you as much as I can, but lets make the question more > clear first.

Re: Django application performance estimates?

2012-03-17 Thread Sithembewena Lloyd Dube
Thanks a lot for your contributons, everyone. Much appreciated. On Fri, Mar 16, 2012 at 3:58 AM, Kurtis Mullins wrote: > Just a quick correction on one of my last statements :) > > In my opinion, paying $1,000 for a web application, and therefore >> expecting a large amount of traffic and probabl

geodjango error

2012-03-17 Thread rohan
I am following the geodjango tutorial on djangoproject. I have installed postgresql with postgis. and tested orginfo with GDAL sucessfully. However, I am getting an error while running syncdb. django.core.exceptions.ImproperlyConfigured: Could not import user- defined GEOMETRY_BACKEND "geos". I a

empty media_root inside custom admin template

2012-03-17 Thread Reikje
Hi, I am trying to add a Rich Text Fields to my Django admin app following this blog post: http://www.beshrkayali.com/blog/2009/02/tinymce-django-admin/ However, I in my custom admin template "base_site.html" the {{media_root}} placeholder is always replaced with a blank. My settings.py in the pr

Re: how to display development server page

2012-03-17 Thread Iqbal Hasnan
Hello, I'm trying to help you as much as I can, but lets make the question more clear first. so, you have a linux server? and run "python manage.py runserver" command on your computer terminal or ssh from you server? -sayakurt On Sat, Mar 17, 2012 at 1:23 AM, Alex Glaros wrote: > Newbie trying

Passing a query set into a template

2012-03-17 Thread Stanwin Siow
Hello, I have the following view method: def index(request): form = OpinionOptionForm(initial={'keyword': 'singtel', 'start_date': datetime.today()-timedelta(days=7), 'end_date': datetime.today(),

django openid

2012-03-17 Thread siva
We have used openid ( http://code.google.com/p/django-openid-consumer/ ) application for our site I got proper response from provider but where/how i can get required details ( Is it stored in session - how can get ? ) -- You received this message because you are subscribed to the Google

Re: how to display development server page

2012-03-17 Thread Eugene Gavrish
Use ip-adress of your server. Like that: manage.py runserver 123.45.67.89:8000 If your are lucky and nothing blocks this port you will see this from desktop. IP-adress of your server you can see in ifconfig output On 17 мар, 09:44, Alex Glaros wrote: > Thanks Daniel, > > Does that mean I have