Beginner

2009-03-15 Thread TP
I have just started to use Django on a Linux machine and when trying to create a new problem I get the following error: django-admin.py: command not found Any suggestions ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Beginner

2009-03-15 Thread TP
jango/bin/django- > admin.py > Or you can do it the long way "python /usr/lib/python2.5/site-packages/ > django/bin/django-admin.py startproject foo" > > On Mar 15, 3:26 pm, TP wrote: > > > I have just started to use Django on a Linux machine and when trying >

Re: Beginner

2009-03-15 Thread TP
I get the same problem that I got when I tried to do it. ln: creating symbolic link `scs5tdp/lib/python2.5/site-packages/django/ bin/django-admin.py': No such file or directory On Mar 15, 2:59 pm, Alex Gaynor wrote: > On Sun, Mar 15, 2009 at 9:57 AM, TP wrote: > > > Th

Re: Beginner

2009-03-15 Thread TP
I now get this: ln: creating symbolic link `python/lib/python2.5/site-packages/django/ bin/django-admin.py': File exists Has that worked? On Mar 15, 2:59 pm, Alex Gaynor wrote: > On Sun, Mar 15, 2009 at 9:57 AM, TP wrote: > > > Thanks for you help. > > > I have tr

Port in use Error

2009-03-16 Thread TP
After creating a new project, when running manage.py i get the following: Validating models... 0 errors found Django version 1.0.2 final, using settings 'mylu.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Error: That port is already in use.

Re: Port in use Error

2009-03-16 Thread TP
t; Dougal Matthews - @d0ugalhttp://www.dougalmatthews.com/ > > 2009/3/16 TP > > > > > After creating a new project, when running manage.py i get the > > following: > > > Validating models... > > 0 errors found > > > Django version 1.0.2 final, using

Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
I am currently running through the first tutorial on the django projects site. When I have added the __unicode__() method to my models I don't see any change in how they're represented. I am using Django 1.0.2 So an old version is not the problem. My models.py looks like this: from django.db i

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
Right I have now changed to use __unicode__ This looks like: from django.db import models class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.question def was_publishe

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
>>> from mysite.polls.models import Poll, Choice >>> Poll.objects.all() [] Is my output. The desired output is: >>> Poll.objects.all() [] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
When I try to run the Python shell again I get this: python manage.py shell Traceback (most recent call last): File "manage.py", line 4, in import settings # Assumed to be in the same directory. File "/home/cserv2_a/ug/scs5tdp/Desktop/mysite/mysite/settings.py", line 79 'mysite.poll

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
This relates to the first tutorial on django project. My models.py file: from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.que

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
I have fixed this error: now when I comes to view the admin site I get the error: AttributeError at /admin/ 'AdminSite' object has no attribute 'urls' On the webpage. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
0//intro/tutorial02/#activate-the-... > > On Mar 17, 1:21 pm, TP wrote: > > > I have fixed this error: > > > now when I comes to view the admin site I get the error: > > > AttributeError at /admin/ > > > 'AdminSite' object has no attribute 'urls'

Editing base_site.html

2009-03-17 Thread TP
How would people recommend me to do this? By editing the base_site.html file in text editor? By creating my own html page called base_site.html and putting it in the right Dir? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread TP
Still working through this tutorial. I have got the problem: TemplateDoesNotExist at /polls/ polls/index.html Traceback: Environment: Request Method: GET Request URL: http://localhost:8060/polls/ Django Version: 1.0.2 final Python Version: 2.5.1 Installed Applications: ['django.contrib.auth'

TemplateDoesNotExist

2009-03-17 Thread TP
I have an error in my traceback saying the index.html file does not exist, but it has been created in the correct DIR. This is my traceback, help would be appreciated: have got the problem: TemplateDoesNotExist at /polls/ polls/index.html Traceback: Environment: Request Method: GET Request

Re: Port in use Error

2009-03-17 Thread TP
gordyt Thanks this does help, I managed to overcome this problem yesterday, but was still slightly confused as to why I had the error in the first place, this helps me understand! Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: TemplateDoesNotExist

2009-03-17 Thread TP
Still stuck on this. The tutorial says: Put the following code in that template: {% if latest_poll_list %} {% for poll in latest_poll_list %} {{ poll.question }} {% endfor %} {% else %} No polls are available. {% endif %} by the template does it meant the index.h

HTML

2009-03-25 Thread TP
I have created a few Django applications now and want to put them onto a webpage. I have designed a HTML webapge, and just wondered where would be the best place to put the HTML files within my Django project folder? And how do I link these to my Apps? Thanks. --~--~-~--~~--

Re: HTML

2009-03-25 Thread TP
I have read the documentation and I am still a bit unsure as how I make one web page for all Apps, how do I link them all to one page? Thanks. On Mar 25, 10:08 am, Kenneth Gonsalves wrote: > On Wednesday 25 March 2009 15:24:51 TP wrote: > > > I have designed a HTML webapge, and j

Re: HTML

2009-03-25 Thread TP
That makes sense, thanks. So if I situate the basic.html page into my main project dir, then have all other pages inherit from it that will work? Or does the basic.html page have to be in each App folder? On Mar 25, 10:29 am, Kenneth Gonsalves wrote: > On Wednesday 25 March 2009 15:46:27

Re: HTML

2009-03-25 Thread TP
Thanks for the help :) On Mar 25, 10:39 am, Kenneth Gonsalves wrote: > On Wednesday 25 March 2009 16:08:54 TP wrote: > > > That makes sense, thanks. > > > So if I situate the basic.html page into my main project dir, then > > have all other pages inherit from

Still Learning...!

2009-04-06 Thread TP
Hi, Just wondering what the best way to add Django Apps to a webpage is? Is is best to create the Apps first then add them to the website? Or visa versa? I have a created HTML Website and want to add a Calendar & Django- Registration App to it. I have read the documentation but I am still a l

Re: Still Learning...!

2009-04-07 Thread TP
Thanks for the help guys, much appreciated! I have now made a simple HTML web page. I am struggling as to where I should locate the Django-admin app --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Registration

2009-04-17 Thread TP
Hi I have a HTML website and im looking to use Django-registration with it. I have downloaded the registration app, but cannot see how I add it to my already made website. Any help would be great. --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Registration

2009-04-19 Thread TP
Still having the same problem if anyone can help? On Apr 17, 3:35 pm, TP wrote: > Hi I have a HTML website and im looking to use Django-registration > with it. > > I have downloaded the registration app, but cannot see how I add it to > my already made website. > > An

Re: Registration

2009-04-20 Thread TP
On Apr 20, 9:50 am, soniiic wrote: > you can't just add django funcationality to an already-made HTML > site.  The whole site has to be moved on the django platform. Sorry for the lack of detail surrounding my problem. soniiic, thanks for the help. How should I go about moving the site onto

Re: Registration

2009-04-20 Thread TP
I am working through the following tutorial : http://www.mangoorange.com/2008/09/17/django-registration-tutorial/ A sample working document is provided, im just not sure how to get it working! I am unsure whether I have to provide the HTML myself to create the forms for the registration, as its

Re: Registration

2009-04-20 Thread TP
I have a fair understanding of Python, and have been interested in Django for a while now, I have read the documentation and done some tutorials. Now I want to get my teeth stuck into a working project, As I said I want to set up a working registration application, and I am working through the tu

Re: Registration

2009-04-20 Thread TP
Thanks for the continued help. I have written the URLS.py now they are as below: urlpatterns = patterns('', # Activation keys get matched by \w+ instead of the more specific # [a-fA-F0-9]{40} because a bad activation key should still get to the view;

Re: Registration

2009-04-20 Thread TP
Thanks for the continued help. I have written the URLS.py now they are as below: urlpatterns = patterns('', # Activation keys get matched by \w+ instead of the more specific # [a-fA-F0-9]{40} because a bad activation key should still get to the view;

Re: Queryset-refactor branch has been merged into trunk

2008-04-27 Thread TP
Great! I tried trunk as of a few minutes ago with a moderately complicated project I have using MySQL and everything seems to work fine. Will keep testing it over the next few days and report any problems. On Apr 26, 11:04 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > I merged queryset-refa

Re: I think psyco breaks Django trunk (post qs-rf merge)

2008-04-29 Thread TP
We've had periodic problems using Pyscho and have resorted to just enabling it for the few key functions that really need it. In our case there are a couple functions that do significant number crunching and so it makes sense to Psycho them but not the rest of the site. On Apr 29, 12:35 pm, Ken <

Re: Code works with Django's server, but not with Apache+mod_python?

2008-05-05 Thread TP
Could you have different PYTHONPATH settings for mod_python vs command line where you're running the admin server? Different versions of PIL or something between those two versions? libjpeg and friends installed in non-standard locations where they're found by the command line python but not the p

Re: django-admin.py not working on OS X 10.5

2008-05-07 Thread TP
Does django-admin.py have execute permissions? Does the #! line at the top point to where your python interpreter lives? On May 7, 6:46 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I'm setting up a dev environment on a co-worker's Mac running 10.5.2 > > I have Django cehcke

Re: Thread-safe or not?

2008-05-13 Thread TP
How about specifically whether mod_wsgi can be used to run many threads serving web requests for Django? On May 13, 5:13 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On May 13, 2:52 pm, Goodrone <[EMAIL PROTECTED]> wrote: > > > What is the most up-to-date information about multithread safety i

Strange FastCGI problems

2007-12-05 Thread TP
I've been using Django for the past few months and had great results with Apache and mod_python. However, I'd like to try and reduce the amount of memory that is used by having multiple Apache's each with their own copy of my application. I decided to try mod_fastcgi in Apache and Django's FastCGI

Re: Strange FastCGI problems

2007-12-05 Thread TP
TED]> wrote: > On Dec 6, 12:04 pm, TP <[EMAIL PROTECTED]> wrote: > > > I've been using Django for the past few months and had great results > > with Apache and mod_python. However, I'd like to try and reduce the > > amount of memory that is used by having mu

Re: Strange FastCGI problems

2007-12-06 Thread TP
No, not using @user_passes_test anywhere. Thanks though! On Dec 6, 1:43 pm, yml <[EMAIL PROTECTED]> wrote: > TP are you using @user_passes_test decorator with urlresolvers (url, > reverse ...). I had a problem similar to what you are describing and I > finally find out that t