This was discussed a few days ago.
http://groups.google.com/group/django-users/browse_thread/thread/92c663f6fbad1003/eddf765c2ddb7499?lnk=gst&q=ssl_var_lookup#eddf765c2ddb7499
On Oct 18, 1:22 am, lmierzej <[EMAIL PROTECTED]> wrote:
> Is there a way to access apache/mod_python's SSL client cert
> I feel strange about the URL: /ajas/register/jquery.js, but I don't know how
> to get it right.
Serving static files is slightly different in Django. Check
http://www.djangoproject.com/documentation/static_files/
Cheers
Thejaswi Puthraya
--~--~-~--~~~---~--~~
Yo
On Wed, 2007-11-14 at 19:46 -0800, pacman wrote:
> Hello all,
> I'm not for sure what this error is all about. I had django up and
> running with out flaw for quite a while but last night I decided to
> svn update my django source and that's when it seemed to flip out
> giving me this error messa
Well, from what I can tell, there should not be any incompatibilities
since as of right now the farthest that I have gotten was creating
models. I didn't see anything from the wiki list that would pose a
problem. I tested out on the django built-in server yesterday and it
runs like a charm. So my
On Nov 15, 8:32 pm, pacman <[EMAIL PROTECTED]> wrote:
> Well, from what I can tell, there should not be any incompatibilities
> since as of right now the farthest that I have gotten was creating
> models. I didn't see anything from the wiki list that would pose a
> problem. I tested out on the dj
On Wed, Nov 14, [EMAIL PROTECTED] wrote:
>
> I'm receiving this error as I work thru Tutorial 1 (http://
> www.djangoproject.com/documentation/tutorial01/):
>
> [EMAIL PROTECTED] mysite]# python manage.py syncdb
> Traceback (most recent call last):
> File "/usr/lib/python2.3/site-packages/dja
pacman,
looks like you code imported in settings.py conflicts with updated
django code. Execute ./manage.py validate or ./manage.py test to find
the problem file.
--
Dima Dogadaylo,
http://www.mysoftparade.com/
On Wed, 2007-11-14 at 19:46 -0800, pacman wrote:
> Hello all,
> I'm not for sure wh
This should help with installing on OSX
http://blog.timperrett.com/2007/9/22/running-django-on-osx
Cheers
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send ema
On Thu, 2007-11-15 at 03:13 -0800, Eric Abrahamsen wrote:
> I've got a navigation menu template I'm including in pretty much every
> page of my site, and I want the content of the menu to vary depending
> on where a visitor is located. After poking through the message
> archives, it looks like t
On 11/15/07, justquick <[EMAIL PROTECTED]> wrote:
>
> from django.template.loaders import find_template_source
> import engine module
> response = HttpResponse()
> template = template(find_template_source('index.tmpl')[0])
> template.render(context, out_file=response)
> return response
>
> Instead
> Look in request.path for the request URL. That is exactly the same
> string as Django passes to django.core.urlresolvers.resolve() when it is
> working out which view to call with which parameters.
Brilliant. Thank you very much!
E
--~--~-~--~~~---~--~~
You rece
Could anyone answer my question of yesterday?
my problem is the action of the form (to launch python script from my
web page) which can be matched by urlpattern in urls.py
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
I've got a navigation menu template I'm including in pretty much every
page of my site, and I want the content of the menu to vary depending
on where a visitor is located. After poking through the message
archives, it looks like the simplest solution (I don't think I need a
custom template tag) i
hi all
when i am writting html templates for django in emacs, my code is
underline. I get some django-mode from web, but that did not solve my
problem. So please, what mode or setting you have in your .emacs to do
not have underline code in your django templates.
thank you very much
pavel srb
-
Hi
i just want to launch a python script from my web page done with
django:
--~--~-~--~~~---~--~~
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
Hi
I just want to launch a python script from my web page done with
django.
2 ways to do this-> by a form included in "mytemplate.html" for
example, like this:
With this solution a press button is created and the browser wants to
open the url: ".../spica/cgi-bin/ingestion.py" by pressing i
I am not sure I understand you question ... you want to launch a
python script from a django url ? you can just import the script into
urls.py and running from a url.
On Nov 15, 12:03 pm, Greg_IAP <[EMAIL PROTECTED]> wrote:
> Could anyone answer my question of yesterday?
>
> my problem is the act
Ok this morning it seems that I have found the error but I am not sure
why this is. So this morning I decided to try and svn update on my
django 96 source and after doing so. I was able to get my
functionality back. Next I decided to run my script that removes pyc
files. After doing so I again go
well actually I take back part of what I said. I am still getting
errors it simply gives me a django error page instead of a white text
page with python errors.
Request Method: GET
Request URL:http://django.xyz.net/blogger/
Exception Type: ImproperlyConfigured
Exception Value:
On Nov 9, 12:34 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2007-11-09 at 06:26 +, Milan Andric wrote:
>
> > On Nov 9, 12:02 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> > wrote:
> > > > Shouldn't the form give errors and not validate?
>
> > > Nope. It's a bit tricky, though.
Does anyone know if the Model class validate() method will be ready
any time soon? I am trying to learn Django but don't want to spend a
lot of time hacking save() work-arounds if new core features will
resolve the issue of business logic validation within models.
-- Eric --
On Oct 24, 12:11 am
Hi,
i'm having little trouble with my apps views. i'm getting errors:
Exception Type: ImproperlyConfigured
Exception Value:Error while importing URLconf 'project.app.urls': No
module named views
i have my urls.py in project dir, and urls.py in my app dir, all
containing dicts, t
For completeness..here is a link to this design pattern:
http://en.wikipedia.org/wiki/Post/Redirect/Get
jim
On Nov 2, 2:28 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> On Nov 2, 12:08 pm,jim<[EMAIL PROTECTED]> wrote:
>
> > OK. This approach works. Thanks.
>
> > Would you have any link to a best pr
On Nov 15, 2:08 pm, Greg_IAP <[EMAIL PROTECTED]> wrote:
> Hi
> I just want to launch a python script from my web page done with
> django.
> 2 ways to do this-> by a form included in "mytemplate.html" for
> example, like this:
>
> method="post">
> maxlength="50">
>
>
>
> With this solution a
Today, after updating django to revision 6678 method 'allow_tags'
doesn't work. Despite it is set to True I've got html code.
Regards,
WW
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
I have a form page with form A and one or more form B's. The number
of form B's is dynamic. Form B has a MultipleChoiceField. Like so:
class AForm(forms.Form):
...
class BForm(forms.Form):
b = MultipleChoiceField(widget=forms.CheckboxSelectMultiple)
...
where b has the possible v
I haven't quite figured this out myself but here's what I do.
By default all form fields have required=True. So, specifying
required=True is not necessary. If the default value is True, pre-
check the checkbox with initial={'checkme': True}. If the default
value is False, specify required=Fal
> could someone please point me where to look to solve this? since i'm a
> newbie in django, this is probably a stupid question: if i'm getting
> no module named views, does this mean that django can't find urls.py
> or is it because views.py is empty (everything is in urls.py)?
Care to paste her
hi all
when i am writting html templates for django in emacs, my code is
underline. I get some django-mode from web, but that did not solve my
problem. So please, what mode or setting you have in your .emacs to do
not have underline code in your django templates.
thank you very much
pavel
>
> When there is more than one form B, the posted data for the 'b' field
> is flattened.
Are the input fields of your two form B's being presented inside one
HTML tag? If the answer is yes *and* if the two multiple choice
fields have the same "name", then your browser will post all their
select
>
>
> ...but it doesnt like that. I've tried typing in the full path name
> and that doesn't seem to work either.
You need to define "doesn't seem to work" more clearly. For example,
if you request that stylesheet URL from your browser's URL bar, does
the stylesheet come up?
Also, serving of
yes, of course.
-
from django.views.generic.create_update import create_object,
update_object
from django.views.generic.simple import redirect_to
from voting.views import vote_on_object
from project.komentar.models import *
komentar_vote_dict = {
'model': Komentar,
On Nov 13, 3:36 pm, "Mike Feldmeier" <[EMAIL PROTECTED]> wrote:
> I know, I've seen a million posts about this, but they all seem to relate to
> m2m fields. While I do have an m2m field in the table (blog entry <->
> tags), it's one of the simple fields I'm having trouble with.
>
> def save
My users are cutting and pasting descriptions from Word, and this
causes HTTP 500 errors with Django AMF (but not Django more broadly.)
This textbox that I am typing in here on groups.google.com won't allow
me to paste the offending characters at all. Is there a way to force
the textbox in the Dja
Hi all,
I'm new to Django and new to html/css/webdesign in general. I have
a question about how to have my base.html template point to the
correct directory where I store my .css file for my site.
I noticed in the admin version, the admin .css is store in the
subdirectory /media/css/. This
On Nov 15, 2:10 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> You could control the names of the multiple choice fields by giving
> each form B a prefix[1].
>
> [1]http://www.djangoproject.com/documentation/newforms/#prefixes-for-forms
Thanks! That will do the trick. I didnt know about the prefi
>
> I'm sorry for this long paste.. i could you dpaste.
> thanks, martin
Yes, it's probably better to dpaste it when you have a lot of code
like that. That way, your indentation is preserved and it's easier for
others to review your code. I should've recommended it when I asked
you to paste here.
Thanks, RajeshD!
the problem was, indeed, "from voting.views import vote_on_object".
voting dir was in my py path but i used svn and "the true" voting dir
was actually in a subdir.. anyway, i've put it in python path and now
it works. i knew there was something strange, because this code works
fi
On Nov 15, 2007 1:04 PM, Joel Hooks <[EMAIL PROTECTED]> wrote:
>
> My users are cutting and pasting descriptions from Word, and this
> causes HTTP 500 errors with Django AMF (but not Django more broadly.)
> This textbox that I am typing in here on groups.google.com won't allow
> me to paste the of
I keep blowing up memory and crashing the server. Watching my memory
usage, it doesn't act like a leak. Instead of gradually rising, every
process will hover along at about 20 megs usage, then one will spike
to about 150, then settle down to about 100 and stay there. I've been
scouring my error lo
On Thu, 2007-11-15 at 07:54 -0800, pacman wrote:
> well actually I take back part of what I said. I am still getting
> errors it simply gives me a django error page instead of a white text
> page with python errors.
>
> Request Method: GET
> Request URL: http://django.xyz.net/blogger/
> E
Hi guys!
I was just wondering myself what the masses are using these days to
deploy Django. Are we still using the adviced approach of using
mod_python, of have some moved to something like wsgi, scgi, and.. err..
*cgi?
I've deployed with mod_python, virtualhosted mod_python with various
apps un
Perhaps someone can see the problem with my very simple model.
(Summary of this email in: http://pastebin.com/m7fba5e2c)
I just started using Django yesterday, I created a very simple model,
and a corresponding application called "stats" and database called
"gmon", with only three very small tab
Just a followup on the prefix hint: By specifying a prefix, say b1,
the posted data returns as
b1_b = [1, 2]
If I try to bind it to the form like so:
bdata = {'b1_b': [1, 2]}
f = BForm(bdata. prefix="b1")
f.is_valid() returns False. I still have to strip off the prefix and
do
bdata = {'b':
Ok,
I just got it to work by using the {% include %} tag. Is this a
fine way to include css stuff or should I not use this for some
reason?
Chris
On Nov 15, 3:41 pm, Chris Rich <[EMAIL PROTECTED]> wrote:
> Okay,
> I think I am still doing something wrong.
>
> So, I went ahead and sent my ME
Gotcha,
Ok back to trying to figure out how to make it work properly. If you
have any comments to my 2nd post that would be greatly appreciated.
Chris
On Nov 15, 3:57 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> On Nov 15, 6:54 pm, Chris Rich <[EMAIL PROTECTED]> wrote:
>
> > Ok,
> > I just got
On Nov 16, 9:40 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I keep blowing up memory and crashing the server. Watching my memory
> usage, it doesn't act like a leak. Instead of gradually rising, every
> process will hover along at about 20 megs usage, then one will spike
> to about 150, t
On Nov 15, 6:54 pm, Chris Rich <[EMAIL PROTECTED]> wrote:
> Ok,
> I just got it to work by using the {% include %} tag. Is this a
> fine way to include css stuff or should I not use this for some
> reason?
Unless your CSS is very short, you should not use this technique
because it inserts th
HI,
Permissions in django.contrib.auth seem to be broken for me. I am
using the svn trunk version. It seems to have been like this for a
while.
In [21]: p = Permission.objects.get(codename='add_person')
In [22]: p.user_set.all()
Out[22]: []
In [23]: user = p.user_set.all()[0]
In [24]: user.ge
> This is a Django bug. Looks like I inadvertently introduced it in r6650.
> All the testing I did for that change apparently missed one case. I'll
> fix this later on today.
>
> The good news is that since you're using MySQL, no harm is done: the
> default MySQL storage engine doesn't support re
Awesome,
Its working now. Thanks again!
Chris
On Nov 15, 4:16 pm, Chris Rich <[EMAIL PROTECTED]> wrote:
> Thanks for the advice!
>
> I'll go try it right now and let you know how it goes.
>
> Chris
>
> On Nov 15, 4:03 pm, RajeshD <[EMAIL PROTECTED]> wrote:
>
> > > MEDIA_ROOT = 'C:/Documents a
On Thu, 2007-11-15 at 15:23 -0800, richbodo wrote:
>
> Perhaps someone can see the problem with my very simple model.
> (Summary of this email in: http://pastebin.com/m7fba5e2c)
>
> I just started using Django yesterday, I created a very simple model,
> and a corresponding application called "s
Since the error you are seeing is in 'project.app.urls' and the error
says "No
module named views", it seems that the statement that's failing in /
project/app/urls is this one:
from voting.views import vote_on_object
This would mean that voting.views is not a valid Python module:
1. Is there a
DateFields in model instances pulled from the database appear as
datetime.date objects:
>>> from crossword.models import Puzzles
>>> p1 = Puzzles.objects.get(pk=2456)
>>> p1
>>> p1.Date
datetime.date(2001, 7, 13)
However, I don't need to pass in a datetime.date object when
creating a new
> Well, just to know. What are you using? This should also be useful for
> my "little" project, the django deployer, still unnamed.
I've been using Lighttpd + FCGI on Joyent containers (my favorite
production deployment enviroment).
In my setups, the Lighty/FCGI combo seems to use server memory
I faced this problem as well, but there is a work around. I am using
django 0.97 pre (i downloaded from svn 16th Nov, 2007)
Go to c:/python2.4/lib/site-packages/django/core/validators.py
or
/usr/lib/python2.4/site-packages/django/core/validators.py , if you
are using Fedora
comment the following
Hello,
Is it possible to digitally sign an email with django email api?
Best regards,
Luis
--~--~-~--~~~---~--~~
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@goo
On 15-Nov-07, at 7:38 PM, Greg_IAP wrote:
> With this solution a press button is created and the browser wants to
> open the url: ".../spica/cgi-bin/ingestion.py" by pressing it.
link: Click to launch script
url: r'^ingestion/$'
view:
def ingestion(request):
pythonscripthere
..
On Thu, 2007-11-15 at 16:04 -0800, Brett Elliott wrote:
> How can I 'shard' with Django? What I mean by sharding is accessing
> multiple databases to combine data from multiple databases. This would
> require access to the database connection API so that the view has
> access to multiple database
Thanks for the advice!
I'll go try it right now and let you know how it goes.
Chris
On Nov 15, 4:03 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> > MEDIA_ROOT = 'C:/Documents and Settings/Nserc2/My Documents/
> > mytemplates/media'
>
> > MEDIA_URL = /mymedia/
>
> > You also mentioned to activate the
Okay,
I think I am still doing something wrong.
So, I went ahead and sent my MEDIA_ROOT to my filepath for my template
folder as below:
MEDIA_ROOT = 'C:/Documents and Settings/Nserc2/My Documents/
mytemplates/media'
Then I set
MEDIA_URL = /mymedia/
You also mentioned to activate the appropr
On 15-Nov-07, at 11:04 PM, Martin wrote:
> or is it because views.py is empty (everything is in urls.py)?
'everything' being what? if your urls are pointing to views.py and if
views is empty the error is logical. Could you paste your urls.py - I
am very curious to know *what* you mean by 'e
On Thu, 2007-11-15 at 11:34 -0800, wowar wrote:
> Today, after updating django to revision 6678 method 'allow_tags'
> doesn't work. Despite it is set to True I've got html code.
Please provide a (very small) example of how to repeat the problem and
file a ticket. It's almost related to the auto-
On Thu, 2007-11-15 at 20:07 -0500, Karen Tracey wrote:
> DateFields in model instances pulled from the database appear as
> datetime.date objects:
>
> >>> from crossword.models import Puzzles
> >>> p1 = Puzzles.objects.get(pk=2456)
> >>> p1
>
> >>> p1.Date
> datetime.date(2001, 7, 13)
>
>
On Nov 15, 2:34 pm, wowar <[EMAIL PROTECTED]> wrote:
> Today, after updating django to revision 6678 method 'allow_tags'
> doesn't work. Despite it is set to True I've got html code.
If it used to work previously, this may have to do with the auto-
escaping code commit from revision 6671. See the
I know this isn't really a job bulletin board, so I'll keep this
brief!
We're in Cambridge, UK, and we're building a fun architecture with
lots of Python and a significant Django-based component. We've got an
opportunity which might be of interest if you like Django. More
information on camvine
On Thu, 2007-11-15 at 06:47 -0800, Milan Andric wrote:
>
>
> On Nov 9, 12:34 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > On Fri, 2007-11-09 at 06:26 +, Milan Andric wrote:
> >
> > > On Nov 9, 12:02 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> > > wrote:
> > > > > Shouldn't the f
On Thu, 2007-11-15 at 17:21 -0800, [EMAIL PROTECTED] wrote:
> Hello,
>
> Is it possible to digitally sign an email with django email api?
No. The email API only provides very simple capabilities, wrapping
Python's native stuff. What you would do in this case is create the
content and generate t
On Nov 15, 4:39 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-11-15 at 16:04 -0800, Brett Elliott wrote:
> > How can I 'shard' with Django? What I mean by sharding is accessing
> > multiple databases to combine data from multiple databases. This would
> > require access to the
>
> MEDIA_ROOT = 'C:/Documents and Settings/Nserc2/My Documents/
> mytemplates/media'
>
>
> MEDIA_URL = /mymedia/
>
> You also mentioned to activate the appropriate context processor. I
> didn't have any TEMPLATE_CONTEXT_PROCESSOR in my settings file to
> begin with so I added the lines:
>
> TEMP
How can I 'shard' with Django? What I mean by sharding is accessing
multiple databases to combine data from multiple databases. This would
require access to the database connection API so that the view has
access to multiple database connections. Perhaps I could add code to a
filter to set up the
Kenneth,
What exactly do you mean by sanitize. The biggest problem is word users do
is they cut and paste stuff into the text area boxes, and even tiny_mce is
not of much help.
But is there a setting in tiny_mce which we are missing? Do advise
Ramdas
On Nov 16, 2007 7:06 AM, Kenneth Gonsalves <[
>I am finding myself writing a lot of code that looks like this:
>
>if 'REMOTE_ADDR' in request.META:
>remote_address = request.META['REMOTE_ADDR']
>else:
>remote_address = ''
You can slurp this into one line (though it's the same check) like so:
remote_address = request.META['REMOTE_ADD
On Nov 16, 10:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Verticityhttp://www.verticity.com is currently hiring software
> enginers and programmers
> specialy dot net developers in thier regional office Karachi.
> little about verticity inc:
>
> VertiCity was founded on the premise t
Many thanks for the fast and useful help. i have upgraded to the new
stable version of Django so i can use the newer help files and
functionalities. I am going through the beta book on line and waiting
for the book's release. Thansk again, markandeya
--~--~-~--~~~---~--
Sorry for what is probably a pretty basic issue but after installing
Django (.96.1) on my MacBook Pro I am getting an odd error that is
telling me that template 500.html is not available. There's nothing
in the documentation (for installation / setup) on this so I have a
feeling that it may be a
I'm working on a project that involves logging large amounts of
information about each visitor to the site.
I understand that the contents of request.META cannot be depended
upon, but I would like to log things like REMOTE_ADDR and
HTTP_REFERER.
I am finding myself writing a lot of code that loo
Verticity http://www.verticity.com is currently hiring software
enginers and programmers
specialy dot net developers in thier regional office Karachi.
little about verticity inc:
VertiCity was founded on the premise that through the medium of the
internet geographic barriers could be broken down
On Nov 15, 8:51 pm, Steve Potter <[EMAIL PROTECTED]> wrote:
> It just seem that there should be a better way of doing this. I was
> thinking about a method that would perform the test for me and return
> either the contents or a blank string.
Often times, when it seems like something should ex
79 matches
Mail list logo