Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-03-02 Thread sillyou su
like this: your_project--- |---__init__.py |---settings.py |---urls.py |---manage.py |---app_A--- | |---__init__.py

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-03-02 Thread Sami Balbaky
Thank you for the clarification DR. I finished the beginning tutorial on djangoproject.com. I'm certainly going to need a lot more practice. I'll fix my code with your changes. Best, SB On Fri, Mar 2, 2012 at 2:21 PM, Daniel Roseman wrote: > On Friday, 2 March 2012

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-03-02 Thread Daniel Roseman
On Friday, 2 March 2012 21:47:54 UTC, Django_for_SB wrote: > > Thank you everyone for your very insightful and helps remarks. I had 2 > issues with my code: > > 1) I didn't properly separate my directory strings with commas and > 2) I need to code the directory structure, and the absolute path

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-03-02 Thread Sami Balbaky
Thank you everyone for your very insightful and helps remarks. I had 2 issues with my code: 1) I didn't properly separate my directory strings with commas and 2) I need to code the directory structure, and the absolute path to the file itself. Here is the correct code from within settings.py:

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-03-01 Thread Python_Junkie
On Wednesday, February 29, 2012 2:46:11 PM UTC-5, Django_for_SB wrote: > > Hello All, > > I'm going through the tutorial on djangoproject.com, and can't seem to > hurdle over this section that reads "Write views that actually do > something" > > Here's the code I have so far, which is

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-03-01 Thread Python_Junkie
Just to get you past the error and display your data, I suggest hard coding the directory path in your view. The work your way backwards to the settings file try t = loader.get_template('C:\\Python27\\my_Djando_projects\\mysite\\My_Templates\\polls\\index.html'') You could also add a

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Daniel Roseman
On Wednesday, 29 February 2012 20:03:21 UTC, Django_for_SB wrote: > > Hi Anoop, > > Thank you for the kind reply, I've tried that already. Here are the 3 > variations that I've attempted so far within settings.py in TEMPLATE_DIRS: > >

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Sandro Dutra
Try: 'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\index.html' 'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\' 'C:\Python27\my_Djando_projects\mysite\My_Templates\' Or: abspath = lambda *p: os.path.abspath(os.path.join(*p)) PROJECT_ROOT = abspath(os.path.dirname(__file__))

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Sami Balbaky
Hi Anoop, Thank you for the kind reply, I've tried that already. Here are the 3 variations that I've attempted so far within settings.py in TEMPLATE_DIRS: 'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/index.html' 'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/'

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Anoop Thomas Mathew
You have to give template directories, not template names in the settings.py. Thanks, Anoop atm ___ Life is short, Live it hard. On 1 March 2012 01:16, Django_for_SB wrote: > Hello All, > > I'm going through the tutorial on djangoproject.com, and can't seem to >

Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Django_for_SB
Hello All, I'm going through the tutorial on djangoproject.com, and can't seem to hurdle over this section that reads "Write views that actually do something" Here's the code I have so far, which is directly copied from the tutorial or prescribed by the tutorial: views.py: "from django.template