Hi Friends,
I have been using Django for quite sometime now. It has been working well
for me all this while.
For the past couple of days am not able to see the Fancy Error Pages of
Django. Whenever an error occurs all I see is the name of the error -
'OperationalError', 'SyntaxError' etc on the t
Thanks for the solution =)
but on everypage the navigation will be called so there wont be
unneccecary code,
Thanks for the tip though will surely look at it for some other
project
On 1 jan, 08:01, Sam Lai wrote:
> The one downside to this solution is that these variables will fetched
> for every
On 1 jan, 08:01, Sam Lai wrote:
(snip)
> An alternative solution would be to create a template tag
(snip)
> It's a little bit more complicated in code though (made a lot easier
> in Django 1.3 with simple_tag)
"simple_tag" is nothing new - it has been here since the 0.96 days
IIRC.
And FWIW, w
Quote from "Writing your first Django app, part 1":
>From the command line, cd into a directory where you’d like to store
your code, then run the command django-admin.py startproject mysite.
This will create a mysite directory in your current directory.
Put your code in some directory outside of
I've found many books that demonstrate how Django can be used.
Django 1.0 Web Site Development
Practical Django Projects, Second Edition
and The Definitive Guide to Django: Web Development Done Right, Second
Edition are all pretty nice. I'd recommend checking these out.
On Dec 31 2010, 6:17 am,
On 2 January 2011 00:56, bruno desthuilliers
wrote:
> "simple_tag" is nothing new - it has been here since the 0.96 days
> IIRC.
But only the version in v1.3 has the ability to manipulate the context
object (which is what's needed in the suggested alternative solution),
thanks to the new takes_co
Hi,
I'm using Satchmo to build a store for a Django-powered webpage.
Satchmo provides a convenient middleware
('satchmo_store.shop.SSLMiddleware.SSLRedirect') which allows me to
add { 'SSL' : True } arguments to my view specifications (in urls.py).
This forwards requests to using the HTTPS protoco
You can put your code anywhere you like although you shouldn't put it
anywhere public.
Just pick a private folder somewhere and let django-admin.py set up the folder.
On 1 January 2011 16:14, Anthony Pearce wrote:
> Quote from "Writing your first Django app, part 1":
>
> From the command line, c
class Word:
fWord=models.CharField(blank=True, default='')
fsmth=models.CharField(blank=True, default='')
def __init__(self, fWord):
self.fWord=fWord
self.fsmth=fWord+fWord
I need to add entrance to fsmth automatically.
The code above gives mistakes in sites.py about T
On Sat, Jan 1, 2011 at 9:27 PM, gintare wrote:
>
> class Word:
>fWord=models.CharField(blank=True, default='')
>fsmth=models.CharField(blank=True, default='')
>def __init__(self, fWord):
>self.fWord=fWord
>self.fsmth=fWord+fWord
>
> I need to add entrance to fsmth auto
OK thank you. One last question though. What makes a folder private?
Sorry but I really am a noob at this.
On Jan 2, 3:31 am, Acorn wrote:
> You can put your code anywhere you like although you shouldn't put it
> anywhere public.
>
> Just pick a private folder somewhere and let django-admin.py se
/home/mycode or /home is a linux location. Apparently, you are using
windows.
I would suggest creating a folder for all your django projects, say
C:\DjangoProjects\ , and run django-admin.py from there.
You do not want to put your django project folder in your www folder,
since that may allow ac
Thank you, that helps. Will give it a shot.
On Jan 2, 10:00 am, Blue Cuenca wrote:
> /home/mycode or /home is a linux location. Apparently, you are using
> windows.
>
> I would suggest creating a folder for all your django projects, say
> C:\DjangoProjects\ , and run django-admin.py from there.
Hey,
could someone have a look at this, I updated to Django trunk and face
some problems.
I get the error message ' 'ModelForm' object has no attribute
'_meta''. But the traceback doesn't have any position of my own code
inside. Only Django internal function calls. So I don't really know
how to l
I have made it to the "Writing your first Django app, part 2" page
down to "Customize the admin look and feel", at the bottom. I'm stuck
with this paragraph..
Now copy the template admin/base_site.html from within the default
Django admin template directory in the source code of Django itself
15 matches
Mail list logo