Re: problem with deploying django using mod wsgi

2013-08-07 Thread Nick Dokos
sah writes: > Though i remove those two line it did not change anything. It works > the same as before, i get the search_form page and if i give some > value for search, I get a 404 error page saying that the page is not > available in the server. > Then check the /var/log/apache2/error.log file

Re: Foreign Key problems with legacy database

2013-07-23 Thread Nick Dokos
Avraham Serour writes: > you don't need songid = models.Integerfield() ... and the ForeignKey should not specify a db_column. > > On Tue, Jul 23, 2013 at 6:04 AM, Brian Millham wrote: > > I have the following models: > > class Requestlist(models.Model): >    id = models.Int

Re: Views, Forms not working.

2013-07-01 Thread Nick Dokos
Nigel Legg writes: > template datatables.html: > > > >     Make Tables > >     >     enctype="multipart/formdata">{% csrf_token %} >     >

Re: Problem setting up django server

2013-06-18 Thread Nick Dokos
smy28 writes: > Okay, so I ran python manage.py shell and I got the following error: > TypeError: Error when calling the metaclass bases > __init__() keywords must be strings > I'd suggest that you remove everything and start from scratch. Make sure that all the requirements are met and that

Re: Problem with csrf

2013-06-12 Thread Nick Dokos
MattDale writes: > You are correct in assuming that your first view using > render_to_response shouldn't work without sending a RequestContext in. > A much cleaner way is just to use the render function. > https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#render > which takes a lot of

Problem with csrf

2013-06-12 Thread Nick Dokos
I have a simple application and it DTRT before turning on CSRF (this is on Django 1.5.1). So I tried to follow the documentation to turn on CSRF detection and was getting intro trouble. First I tried to follow this page: https://docs.djangoproject.com/en/1.5/ref/contrib/csrf/ I did steps 1 an

Re: Fwd: Delivery Status Notification (Failure)

2013-03-11 Thread Nick Dokos
jesmine chaudhuri wrote: > Hello, > > I am new in Python and Django. This is my first test project following the > site : > > https://docs.djangoproject.com/en/1.3/intro/tutorial01/ > > I am using database MySQL. > > I configured in > > INSTALLED_APPS = ( >     'django.contrib.auth', >     '

Re: cannot install django-tracking

2013-03-11 Thread Nick Dokos
frocco wrote: > Hello, > > I am getting > django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but > settings are not > configured. You must either define the environment variable > DJANGO_SETTINGS_MODULE or call > settings.configure() before accessing settings. > > trying p

Re: Stuck

2012-12-26 Thread Nick Dokos
rktur...@gmail.com wrote: > I'll keep this as short as possible. When I input python manage.py sql > polls, i get the following > error: > > C:\Python27\Lib\site-packages\django\bin\mysite>python manage.py sql pol > Traceback (most recent call last): > File "manage.py", line 10, in > ex

Re: invalid syntax (admin.py, line 25)

2012-10-09 Thread Nick Dokos
Jim Wombles wrote: > I'm working through the Django Tutorial: Photo Organizer and Sharing App and > I am getting an invalid syntax error in line 25 of admin.py: > > 1st = [x[1] for x in self.tags.values_list()] > Forget django: just go into the python interpreter and say 1st = 3 Same error,

Re: i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-28 Thread Nick Dokos
Laxmikant Gurnalkar wrote: > Thats the same I'm saying to you. > In your settings.conf. There is no section named 'database' Look again: there *is* a [database] section at the very bottom: [database] engine    : django.db.backends.mysql name  : kasakoo user  : root p