Hello All,
I am being very perplexed and annoyed by models.FileField database
fields. I have two problems:
1. The filefield.url attribute gives the path on my hard disk, not the
internet URL that the file is being served to. The filefield.path and
filefield.name attributes also give the exact sa
Hello All,
I am afraid that I might have to write my own middleware to do this. I
really want to do something like the following:
#In views.py:
def welcome( request ):
return HttpResponse( "Welcome to my website" )
#No code after the 'return' statement will ever be executed, but I
wish
Oh wait, you told me that too:
MIDDLEWARE
Okay, I'm all set, thanks so much.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
T
Yes, thank you, but I already figured that out and made a stupid
function add_to_log(request). What I am really wondering is, how do I
avoid having to call add_to_log(request) in every single view function
in views.py?
Thanks.
On Jan 28, 8:04 pm, Malcolm Tredinnick
wrote:
> You have access to a
Hello,
I would like some suggestions for how to do refbacks in Django. Every
time someone clicks a link that brings them to my site, I want to
record what site referred them. This is done using the HTTP referrer
header. Here are my questions:
1. Does the code to do this already exist somewhere (
On Jan 27, 9:14 pm, Malcolm Tredinnick
wrote:
> This isn't anything to do with reverse(). It's a Python thing. The
> "args" argument has to be a sequence. A list or a tuple, for example.
Ah, I hadn't thought of that. Somewhere deep within the Django source,
something probably says "for arg in ar
Hello All,
I have a question. When I use the function
django.core.urlresolvers.reverse(), it works fine with args=(), and it
works fine with args=(string1, string2 [, ...more strings]), and it
even works fine with args=(anyOneCharacterLongString). However, if I
give it args=(multiCharacterString)
I have a philosophical question. How should I implement code that runs
in the background, automatically, and continuously? What is a safe and
kosher way to do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
en able to modify existing models. In order to get
> some functionality like that, look into
> django-evolution:http://code.google.com/p/django-evolution/
>
> -Chris
>
> On Thu, Dec 25, 2008 at 1:11 AM, Fluoborate wrote:
>
> > Running the command:
> > python man
I have a website that generates images (PNG's of graphs), and I want
those images to show up on the website, but I don't know how to do
this.
Is this possible:
1. Store the image file in an ImageField() in the SQLite 3 database.
How do I do this?
2. Get the image from the database and easily serv
Running the command:
python manage.py syncdb
Used to add tables and modify tables if necessary. I don't remember if
it ever dropped tables. It was great, I would modify models.py and
syncdb and it would just work. Then something changed, and I don't
know why.
Now, syncdb never modifies or drops t
11 matches
Mail list logo