2006/7/31, Gábor Farkas <[EMAIL PROTECTED]>:
>
> Jyrki Pulliainen wrote:
> > 2006/7/31, Gábor Farkas <[EMAIL PROTECTED]>:
> >>
> >> datetime.datetime inherits from datetime.
> >>
> >
> > Definetly not
> >
>
>
> sorry, of course i meant
>
> "datetime.datetime inherits from datetime.time"
My bad to
2006/7/31, Jyrki Pulliainen <[EMAIL PROTECTED]>:
> I filed a ticket for this, see http://code.djangoproject.com/ticket/2460
Json serialization is now fixed in SVN Trunk version
--
Jyrki // [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because
On Mon, 2006-07-31 at 20:39 -0500, Jorge Gajon wrote:
> Hi,
>
> Take notice that there is also a 'fileencoding' setting in vim. When
> you create a new file in vim, 'fileencoding' will not be set and so it
> will take the current value from 'encoding'.
Also the variable 'fileencodings' is import
Hello,
Using version 0.95.
I am designing a new truck transport database data service.
There will be 2 kinds of offers:
import & export
Let's name seaport 'X'.
Trucks:
1. Deliver package from Y to X (on the road from X to Y it's empty)
2. Deliver package from X to Y (on the road from Y to X it
Hi All,
After updating SVN this morning I get the error below. Reverting to
revision 3506 resolves the problem.
The error occurs with the default site (no apps installed) - just
start a project, enable admin, syncdb, runserver, log in to admin, go
to users and click on a user to view the details
I have this very simple tag
#
from django.core.template import Library, Node
from django.core import template
register = Library()
class FirstTestNode(Node):
def __init__(self, num):
self.num = num
def render(self, context):
context['print_results'] = self.num
On 1 Aug 2006, at 14:35, PythonistL wrote:
def render(self, context):
context['print_results'] = self.num
return ""
resolve_variable(self.wrapper, context)
use:
from django.template import resolve_variable
def render(self, context):
context['print_results'] = resolve_v
I have been on vaction for a week, so I haven't had time to do more
coding before now. I think I understand what you have written in the
view, but I can't understand what to write in urls.py.
My views.py in my portfolio app folder looks like this:
from django.views.generic.list_detail import obj
Part of my webapp will include a place for users to upload files that
they can save on the server. I teach high school, and this is mostly
designed as a way for students to quickly upload files so that they
can transfer them from home to school and vice versa.
What I don't understand is how
On 1 Aug 2006, at 13:23, Michael van der Westhuizen wrote:
After updating SVN this morning I get the error below. Reverting to
revision 3506 resolves the problem.
The error occurs with the default site (no apps installed) - just
start a project, enable admin, syncdb, runserver, log in to admin,
On 8/1/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>
> Part of my webapp will include a place for users to upload files that
> they can save on the server. I teach high school, and this is mostly
> designed as a way for students to quickly upload files so that they
> can transfer them from home to
Hi! All,I am new to Django and will like to use its good admin interface to build a new web app. However, we used a couple of databases on a single mysql server. So, is there any chance I can reuse them? It seems you can only have use 1 db only in the settings. Any pro and con on designing a syste
Thanks a lot.It works!
L.
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL
Hi,
>[...]#Views
> def category_view(request, cat_slug):
> [...]
> (r'^portfolio/(?P[-\w]+)/$',
> 'myproject.portfolio.views.category_view'),
>
> When I try "mydomain.com/portfolio/category_slug" (My category_slug is
> "3d") I get the error:
>
> TypeError at /portfolio/3d/
> category_view(
On 1 Aug 2006, at 15:32, Todd O'Bryan wrote:
What I don't understand is how, if the files are saved in the local
filesystem and served by Apache, how do I control access to the files
so that only users who should be able to access them can? In other
words, Bobby uploads a file which I save to t
Yes, that seems to get me one step further!
But now I get a new error:
NameError at /portfolio/3d/
global name 'object_detail' is not defined
Exception Location: /myproject/portfolio/views.py in category_view,
line 10
--~--~-~--~~~---~--~~
You received this
This might be of some help:
http://code.djangoproject.com/wiki/MultipleDatabaseSupport
It's a SoC 2006 project, so the branch has yet to be merged into trunk
but he reports it as being feature-complete. It just might not be 100%
stable.
Chris
--~--~-~--~~~---~--~---
Hi,
> NameError at /portfolio/3d/
> global name 'object_detail' is not defined
>
> Exception Location: /myproject/portfolio/views.py in category_view,
> line 10
That normally mean that you have not imported the name.
Do you have something like this in you views.py
from django.views.generic
On 8/1/06, Neboj¹a Ðorðeviæ <[EMAIL PROTECTED]> wrote:
> I submitted quick fix to http://code.djangoproject.com/ticket/2463
> which keeps 3507 changes.
Fixed in [3508] -- thanks for pointing this out!
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~--
1. Install myghty (http://www.myghty.org)
2. edit your views.
2a. The easy way to use mygthy templates is to render them and send the
result to a "Blank" django template which will show the results
a simple view:
##
from django.shortcuts import render_to_response
im
On 8/1/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> What I don't understand is how, if the files are saved in the local
> filesystem and served by Apache, how do I control access to the files
> so that only users who should be able to access them can? In other
> words, Bobby uploads a file which
Amazing! I encountered the same problem few hours ago,
and I was about to ask exactly the same question :-)
I can attest it works too!
I checked the online documentation but could not find any
mention about this magic 'resolve_name' method.
Cet été, pensez aux cartes postales de laposte.net !
On Aug 1, 2006, at 9:16 AM, [EMAIL PROTECTED] wrote:
> This might be of some help:
> http://code.djangoproject.com/wiki/MultipleDatabaseSupport
>
> It's a SoC 2006 project, so the branch has yet to be merged into trunk
> but he reports it as being feature-complete. It just might not be 100%
> stab
Hi all,
I´m currently writing an app to track expenses (using Django). For
this I´ve a simple datamodel which basically consists of two model
classes: Register and Entry. The idea is that you can book expenses in
various Registers, one Entry representing a particular Expense.
Now my issue is the
On 8/1/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> On 8/1/06, Neboj¹a Ðorðeviæ <[EMAIL PROTECTED]> wrote:
> > I submitted quick fix to http://code.djangoproject.com/ticket/2463
> > which keeps 3507 changes.
>
> Fixed in [3508] -- thanks for pointing this out!
Confirmed as fixed.
--~--~-
Hi there,
I've looked for some clue on this group but nothing similar for my
case.
I've got the following models:
class Service:
name =
...
class TimeTable:
...
class UserService:
user = ForeignKey(User)
service = ForeignKey(Service)
timetable = ForeignKey(TimeTable)
I've tried to
I'm sorry to keep bothering the list about this, but I just can't get
custom admin templates to work properly.
Here's what I have right now:
2 apps, one called Blog and one called Events2
I would like it if the branding at the top of the admin page changed
depending on the app that I am in.
I am with you on that. Gen On Aug 1, 2006, at 8:23 AM, Jacob Kaplan-Moss wrote:On Aug 1, 2006, at 9:16 AM, [EMAIL PROTECTED] wrote: This might be of some help:http://code.djangoproject.com/wiki/MultipleDatabaseSupportIt's a SoC 2006 project, so the branch has yet to be merged into trunkbut he repo
I'm not sure Django supports this 'out of the box'. You could try
adding a template tag to the base_site.html folder. I'm pretty sure
Django passes in the model name into the context of the template. You
should be able to find this in the Django source (I'm not sure where
off the top of my head
i was wondering if there is a way to use the for loop to loop through a
sequence of numbers?
i.e. in python you would:
for i in range(10):
how would you do this in the template?
i'd like to use this for some paging i'm building. i want to keep all
the html in the templates, as there i
preparing rss feeds
i hav a table in postgres and it has title and body columns, i want to
create a rss file on the fly when this table is updated wat is the best
way to get it done
thanks a lot
--~--~-~--~~~---~--~~
You received this message because you are subs
I was fiddling with a VMWare image for running and developing Django with the intention of posted the results up for anyone to use, and I got myself tied all in knots. So let me ask the community: what would be the most useful:
1) a light VMWare image (couple hundred Mb) that was completely command
On 8/1/06, a <[EMAIL PROTECTED]> wrote:
> i hav a table in postgres and it has title and body columns, i want to
> create a rss file on the fly when this table is updated wat is the best
> way to get it done
> thanks a lot
Have you read the documentation for Django's syndication system?
http://w
Sorry for resurrecting an old thread, but this is very close to what I
was wanting, and it wasn't *that* long ago ;-)
Adrian Holovaty wrote:
> I've never used Django with plain CGI, as I assume the performance
> would be bad, but if you're interested in experimenting, you should
> seek out some
On Aug 1, 2006, at 11:40 AM, Joseph Heck wrote:
> I was fiddling with a VMWare image for running and developing
> Django with
> the intention of posted the results up for anyone to use, and I got
> myself
> tied all in knots. So let me ask the community: what would be the most
> useful:
>
> 1)
On Aug 1, 2006, at 9:36 AM, a wrote:
> preparing rss feeds
>
> i hav a table in postgres and it has title and body columns, i want to
> create a rss file on the fly when this table is updated wat is the
> best
> way to get it done
> thanks a lot
If that table is part of your Django project, ju
I had posted some questions about blocking a site on TextDrive on their forums, and ultimately ended up doing it with a middleware component that I wrote myself. There was a nice example already in the wiki, but it didn't do quite what I needed - I wanted to block the site to everyone (registered u
I agree with Jacob, full image (with MySQL and PostgreSQL as well).
This is actually the setup I used at a contract gig. I had a VMWare
image setup and configured for doing both development and deployment.
So after I leave, if anyone needs to make modifications, then can just
run the VM image on
We've just launched our first 'production' Django sites to run some
Faculty 'portals' (http://bus.glam.ac.uk/, http://cci.glam.ac.uk/ etc).
When we get some time I promise to write something up about the
process, but for now a word of thanks.. Firstly to all the authors of
Django, then the communi
Try putting this in your main base_site.html template:
{{ app.name|default:"Django" }} Administration
I'm not sure if the app info is available in the changelist/change
form contexts, but it's worth a shot.
On 8/1/06, Tamara D. Snyder <[EMAIL PROTECTED]> wrote:
>
> I'm sorry to keep bothering t
Hi all,
I'm trying to implement something I'd imagine is quite simple, but
have come a bit unstuck when it comes to finding a graceful way to so
it.
What I want to do is sotre a random number (easy enough) in the users
session, then retrieve it in my base template (this is for the purpose
of sel
On Tue, 2006-08-01 at 15:27 +, Jakub 'teodor' Krajniak wrote:
> Hi there,
>
> I've looked for some clue on this group but nothing similar for my
> case.
> I've got the following models:
>
> class Service:
> name =
> ...
> class TimeTable:
> ...
>
> class UserService:
> user = Foreig
On Tue, 2006-08-01 at 16:22 +, spako wrote:
> i was wondering if there is a way to use the for loop to loop through a
> sequence of numbers?
>
> i.e. in python you would:
>
> for i in range(10):
>
>
> how would you do this in the template?
You can't. If you want a list of numbers
Context processors might work:
http://www.djangoproject.com/documentation/templates_python/
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us
Hi all,
I have a problem with HTTP, django and python 2.3.5 on linux suse.
I got multiple tracebacks like http://paste.e-scribe.com/970/
after a HTTP call from Internet Explorer 6 using HTTP-Protocol 1.0 or 1.1
The web-app is working fine, but the tracebacks are strange.
Has anybody seen such T
On Tue, 2006-08-01 at 23:20 +0200, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I have a problem with HTTP, django and python 2.3.5 on linux suse.
> I got multiple tracebacks like http://paste.e-scribe.com/970/
> after a HTTP call from Internet Explorer 6 using HTTP-Protocol 1.0 or 1.1
>
> The web-app
In other words, if my url is www.mydomain.com/foo is the template aware
that it's current directory is foo?
I'm trying to figure out how I can filter items based on location. I
have a field in the model that says foo or bar, and I want the foo
items on the foo page, and the bar items on the bar p
On Tue, 2006-08-01 at 15:00 -0700, [EMAIL PROTECTED] wrote:
> In other words, if my url is www.mydomain.com/foo is the template aware
> that it's current directory is foo?
One minor point: It's a bit dangerous to talk about the trailing
portions of a URL as directories. It is only accidental that
Login a user out works fine, but I can't get logging in working (0.95).
I keep getting 'Site matching query does not exist'. What I got:
urls.py:
(r'^accounts/login/$', 'django.contrib.auth.views.login',
{'template_name': 'registration/login.html'}),
(r'^accounts/logout/$', 'django.c
Sorry for boring the list with a slightly offtopic question.
I saw that many of you are using a Mac. (i used it perhaps
twice in my life)
Last week i needed to edit several python files on a MiniMac
(without net, b), and i used "built-in" editor of
macosx. Not was so comfortable.
What are you
Thanks for answer
Finally I get correct result, using objects.extra method:
Service.objects.extra(where=['sms_service.id not in (select
sms_userservices.service_id from sms_userservices where
sms_userservices.user_id = 9)'],tables=['sms_userservices']).distinct()
Maybe not so clean and tasty b
I'm new to Django and want to apply the patches in Ticket #1990 for the Oracle
backend to the 0.95 release version I have installed on Windows. Any pointers
as to how to handle this. I'm new to SVN and am not sure how to apply the
patch, compile the changes, and have them deployed to my exist
On Aug 1, 2006, at 3:44 PM, toth anna wrote:
> Sorry for boring the list with a slightly offtopic question.
> I saw that many of you are using a Mac. (i used it perhaps
> twice in my life)
> Last week i needed to edit several python files on a MiniMac
> (without net, b), and i used "built-in"
Hi there,
No, a template is not normally aware of the url used to get that
template. This sort of logic is more what you'd do in a view rather
than a template.
You would have something like the following in your urls.py:
r'^(?P\w+)/$, 'projectname.appname.views.filter'
And your view would look
On the Mac, I used TextWrangler (http://www.barebones.com/products/textwrangler/ also free, from Bare Bones Software) and liked it significantly better than jEdit - YMMV. Nice editor thought.
-joeOn 8/1/06, Tyson Tate <[EMAIL PROTECTED]> wrote:
On Aug 1, 2006, at 3:44 PM, toth anna wrote:> Sorry fo
vim.mainly because it works on nearly any platform I need to go into.and my fingers are trained after years of using it.On 02/08/2006, at 9:29 AM, Joseph Heck wrote:On the Mac, I used TextWrangler (http://www.barebones.com/products/textwrangler/ also free, from Bare Bones Software) and liked it sig
Or use Text Wrangler, it is free: http://www.bbedit.com/products/
textwrangler/index.shtml.
:-)
Tamara
On Aug 1, 2006, at 5:58 PM, Tyson Tate wrote:
>
> On Aug 1, 2006, at 3:44 PM, toth anna wrote:
>
>> Sorry for boring the list with a slightly offtopic question.
>> I saw that many of you are
Well, the baseline image that I've just knocked together (desktop, full servers, etc) is running in the 3Gb file range (uncompressed...)I'm building it with VMWare Server - I don't see an option for shrinking the VM image. I was planning on Zipping it to see what compression I could get - but it's
On Tue, Aug 01, 2006 at 04:29:02PM -0700, Joseph Heck wrote:
> On the Mac, I used TextWrangler
Yep, very nice... But I mostly just use emacs (which comes
with Mac OS X, as well as "vi" if you're so inclined).
--
Glenn
--~--~-~--~~~---~--~~
You received this mes
Ok. Take it easy with me because I think I understand your problem,
but the app goals seem amazing so I am going to try and help.
First of all, I think you'll be asked to show both import and export
to the same users (which are carriers and forwarders now, right?). So
there's no sense in spli
I was going to recommend a Live CD too, but let me get back a little
to the first thread email and perhaps say something really stupid:
On 7/31/06, Rob Hudson <[EMAIL PROTECTED]> wrote:
> As part of the grant review
> process, the reviewers must remain anonymous and therefore, we cannot
> simpl
On 8/1/06, toth anna <[EMAIL PROTECTED]> wrote:
> What are you using for editing sources?
GNU Emacs.
It's insanely powerful for text editing, has modes for all the
languages I work in, and has support and/or extensions available for
doing SVN commits, editing over WebDAV, editing over FTP/SFTP..
> Has anybody seen such Tracebacks ?
Hi Dirk,
I think I have seen this, but only using IE on the development server
with admin-like pages. I think it might be issues with the media going
through the dev server (i.e. probably not an issue with mod_python). If
you were able to hack the way those fi
On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
1. Install myghty (http://www.myghty.org)
Hi,Thanks for the contribution. I would suggest adding this as a page to the Wiki so that it isn't forgotten. Create a page somewhere in the vicinity of:
http://code.djangoproject.com/wiki/CookBookMygh
On 8/1/06, Joseph Heck <[EMAIL PROTECTED]> wrote:
> Well, the baseline image that I've just knocked together (desktop, full
> servers, etc) is running in the 3Gb file range (uncompressed...)
>
> I'm building it with VMWare Server - I don't see an option for shrinking the
> VM image. I was planning
On 8/1/06, toth anna <[EMAIL PROTECTED]> wrote:
> What are you using for editing sources?
If you're a native vim speaker, I have a version compiled for OSX,
using the native Aqua interface, off of my homepage here:
http://ian.casa.cavewallarts.com/vim.html
Ian Clelland
<[EMAIL PROTECTED]>
--~--
> 2a. The easy way to use mygthy templates is to render them and send the
> result to a "Blank" django template which will show the results
> a simple view:
> [...]
> def myview(request):
> file = AFile()
> #execute a template
> interpreter.execute('mytemplate.myt', out_buf
On Aug 1, 2006, at 3:44 PM, toth anna wrote:
> What are you using for editing sources?
BBEdit, for everything (well, almost, vim for the other 5%).
Don
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users
On Monday 31 July 2006 22:04, Akatemik wrote:
> I'm running the basic django server and everything works fine from lan.
> But from outside every request has a three second overhead, even if
> it's just a 304. This means that a small html-page with three JS-files
> and a stylesheet takes 15 sec
Hi!django's admin is pretty neat and I will like to customize it. I know there is a documentation to change its appearance. But how about I want to add a bit more function or buttons on the form. For example, I need to run some server side scripts/program after user click saving changes. How do I d
Hi Gen-Nan.you can override the template that the admin app uses to generate the listing page if that helps.so for example in my performance monitoring app, I created a template admin/perf/log/change_list.htmland put that file in my template directory.now when i click on the 'perf/log' model in the
Julio Nobrega wrote:
> Can't you use SSL, and tell the reviewers to use an anonymizer proxy?
Not really. We have to assume no internet connection at all and ship a
self-contained program. It makes things difficult and adds extra work.
With a PHP solution we were able to use Microweb (indigos
Hi Jay.I have a similar issue.I have stuff in http://zyons.com, which is open source, and another set of apps which build on top of it which run on multiple hosts. (http://gyspsyjobs.com & http://car-chatter.com for example)the way I set it up is:project/ common/ app1/ templates app2/ templat
我在httpd.conf下,add this:
Listen 127.0.0.1:
SetHandler python-program
PythonPath
"['C:\Python24\Lib\site-packages\Django-0.95-py2.4.egg\django\bin\work']
+ sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE n.settings_apache
On 8/2/06, 冷星独舞 <[EMAIL PROTECTED]> wrote:
>
> 我在httpd.conf下,add this:
> Listen 127.0.0.1:
>
>
> SetHandler python-program
> PythonPath
> "['C:\Python24\Lib\site-packages\Django-0.95-py2.4.egg\django\bin\work']
> + sys.path"
> PythonHandler django.core.handlers.mod
75 matches
Mail list logo