like this:
your_project---
|---__init__.py
|---settings.py
|---urls.py
|---manage.py
|---app_A---
|
|---__init__.py
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
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
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:
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
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
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:
>
>
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__))
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/'
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
>
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
11 matches
Mail list logo