Gah dumb groups thinking I was quoting something...
del context['request'].session['some key']
sess = SessionMiddleware()
http = HttpResponse()
sess.process_response(context['request'], http)
--~--~-~--~~~---~--~~
You received this message because you are
So I realize I'm doing something non-standard here, but still I have
my reasons, and if I can pull this off, it'll make life easier for me
in the future.
.. is it possible to save to the Session within a TemplateTag? I don't
really see how it is, but I'm hoping someone knows something that I
The minimum wage in the UK for people over 22 is £5.35 which at current
exchange rates is $10.70
On 7/5/07, wrb <[EMAIL PROTECTED]> wrote:
>
> 10usd/h? for god's sake
>
> 2007/7/4, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> >
> > Django Users,
> >
> > First let me apologize for this spammy
Hello,
I'm currently hosting my Django websites on a dedicated server and it
works fine. I restart Apache when I make modifications since I'm alone
on the box.
But I've made evangelism for Django and I've convinced some friends to
use it. So I would like to take a new server and to set up a
Do I understand correctly that with the unicode branch, databases are
supposed to be providing and accepting utf-8 data ? This assumption is
ok for self-constructed databases, but I am interacting with a legacy
database that is in iso-8859-1 and I can't change that.
Is there a setting somewhere
Hi all
I have a problem I have been struggeling with for a while.
I have two models:
InfoProxy and Permission
A InfoProxy can have several Permissions
class Permission(models.Model):
info_proxy = models.ForeignKey(InfoProxy,
related_name='permissions')
permission_type =
Fabien Schwob wrote:
> Hello,
>
> I'm currently hosting my Django websites on a dedicated server and it
> works fine. I restart Apache when I make modifications since I'm alone
> on the box.
>
> But I've made evangelism for Django and I've convinced some friends to
> use it. So I would like to
On 7/4/07, Chris Brand <[EMAIL PROTECTED]> wrote:
> If you go to edit that same user in the Admin, the group should be selected
> in that same multiselect box.
>
> It's as simple as that.
Aha - it did not occur me. I was looking for some gadget proof against
an accidental (re)selection. This
On Jul 4, 4:35 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> On Jul 4, 12:14 pm, AnaReis <[EMAIL PROTECTED]> wrote:
>
> > Hi again,
> > Thanks for the suggestion, but this still isn't working... the
> > difference between this module and the others that I have already made
> > is that (besides the
On Thu, 2007-07-05 at 01:10 -0700, koenb wrote:
> Do I understand correctly that with the unicode branch, databases are
> supposed to be providing and accepting utf-8 data ? This assumption is
> ok for self-constructed databases, but I am interacting with a legacy
> database that is in iso-8859-1
> Textdrive (Joyent) offers Django hosting.
>
> There is an install script that will setup Django for you:
> http://textusers.com/wiki/Installing_Django
The problem is that I would like to make my own configuration from a
raw Linux distribution (In my case a Ubuntu 6.10 or 7.04). So, with
this
Bryan Veloso skrev:
(I am only commenting on the model (database and Django) in this post -
I don't really know enough about imports to help you with that bit)
> I have 2 models for an MMORPG control panel I'm building. Each set of
> data is within it's own app with related models, etc. So
On 7/5/07, Alexander Solovyov <[EMAIL PROTECTED]> wrote:
>
> Hi all.
>
> I want to build forms in HTML by hands, without helpers from django
> (like outputting field with label and etc), but I can't find one thing
> - how I can get value from field (to select appropriate field in
> radioselect,
Great work Malcolm !
Thank you very much.
On 4 Lug, 14:41, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Thankyou to this group of early adopters for your early testing feedback.
Well, as an early adopter of unicode branch, I should have reported
that in a few weeks of usage I didn't find any
On 6/29/07, Michael Sylvan <[EMAIL PROTECTED]> wrote:
>
> Is there a way to do this sort of things cleanly, short of using the
> newforms-admin branch of Django? Or do I have to do something like
> changing the form's fields attribute by hand?
Using formsets from newforms-admin will be the
On Jul 5, 5:38 pm, "Fabien Schwob" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm currently hosting my Django websites on a dedicated server and it
> works fine. I restart Apache when I make modifications since I'm alone
> on the box.
>
> But I've made evangelism for Django and I've convinced some
Hi,
after updating to the trunk with the merged Unicode branch I get
errors for my json pages. Everything is normal until I request
something where it would serialize data with foreign language letters
which comes as Unicode from the database.
And as far as I can tell I have done everything it
Hi again,
>From what I could understand, I would have to recreate the database so
that django could create an ID field for me. Unfortunately that isn't
possible because I'm using a legacy database and I can't change it. In
this database, the primary key is the two fields combined, so their
Hi again,
>From what I could understand, I would have to recreate the database so
that django could create an ID field for me. Unfortunately that isn't
possible because I'm using a legacy database and I can't change it. In
this database, the primary key is the two fields combined, so their
okay, seems this ensure_ascii=False is useless, without it there's no
error.
On 5 Jul., 14:13, web-junkie <[EMAIL PROTECTED]> wrote:
> Hi,
>
> after updating to the trunk with the merged Unicode branch I get
> errors for my json pages. Everything is normal until I request
> something where it
On Thu, 5 Jul 2007, Oliver Charles wrote:
>
> Just to give an update, I've tried forking the view, and then turning
> the child process into a daemon with a double fork, and then exiting
> before it gets to the return, and letting the parent do the return,
> but this is not working either...
>
>
I´m having trouble using newforms with an intermediary table
(although I´m not sure that my problem relates to newforms anyhow).
models:
class UserExtendedProfile(models.Model):
...
class UserExtendedProfileFavourites(models.Model):
userextendedprofile =
On Jul 5, 8:44 am, AnaReis <[EMAIL PROTECTED]> wrote:
> Hi again,>From what I could understand, I would have to recreate the database
> so
>
> that django could create an ID field for me. Unfortunately that isn't
> possible because I'm using a legacy database and I can't change it.
Right.
> In
Thank you, Malcolm!
--~--~-~--~~~---~--~~
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
Just to give an update, I've tried forking the view, and then turning
the child process into a daemon with a double fork, and then exiting
before it gets to the return, and letting the parent do the return,
but this is not working either...
I'm stumped, and don't really want to have to create a
On Thu, 5 Jul 2007, Oliver Charles wrote:
>
> That doesn't work, I've tried that, it still hangs the view.
>
> Give it a shot with a long python script (while True: time.sleep(1)
> would do) and you'll find that the view never returns. If you can get
> it to return, I'd love to see your code,
That doesn't work, I've tried that, it still hangs the view.
Give it a shot with a long python script (while True: time.sleep(1)
would do) and you'll find that the view never returns. If you can get
it to return, I'd love to see your code, but it's no go for me...
On Jul 5, 2:57 pm, Simon
On 7/5/07, RajeshD <[EMAIL PROTECTED]> wrote:
> Not sure. What RDBMS are you using? I understand about the need to
> retain your DB structure as is but are you allowed to *add* new
> constraints to the DB?
Django does not support multi-column primary key tables.
If you'll be doing
On most of my form posts, I redirect to another page once I save
whatever data has been posted on the form. ( I am not using new
forms, and in some cases I'm even using old fashioned hand rolled
forms to post from a view. )
In the cases where an existing record is being edited, this doesn't
On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In the cases where an existing record is being edited, this doesn't
> really matter, but when a user adds a new record, and I redirect him
> to the page to view all of the objects in that table, if he then hits
> refresh, it adds the
Use HttpResponseRedirect from django.http
[EMAIL PROTECTED] пишет:
> On most of my form posts, I redirect to another page once I save
> whatever data has been posted on the form. ( I am not using new
> forms, and in some cases I'm even using old fashioned hand rolled
> forms to post from a
Ahhh, I got it now - Thanks so much Simon! The problem was I had left
out close_fds, so it was still spawning as a child process I think.
With close_fds it works a treat - thank you once again :D
- Ollie
On Jul 5, 3:18 pm, Simon Drabble <[EMAIL PROTECTED]> wrote:
> On Thu, 5 Jul 2007, Oliver
I am using HttpResponseRedirect... it still seems to allow a duplicate
post though if refresh is hit on the page it's been redirected to.
On Jul 5, 10:34 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > In the cases where an existing
Hi list,
my django is completely utf8-configured. I'm using I18N and my msg-ids
(po-files) are utf8-encoded, too.
But now I've run into a strange problem: Translation of strings
containing non-ascii characters is working great in templates, but it
fails if I try to translate non-ascii strings
Hi all,
Is there a way to translate text (and make the msgids appear in the po
files) that does not appear in python source nor in templates. I try
to translate text stored in the database.
Thanks & Greets,
Aeby
--~--~-~--~~~---~--~~
You received this message
> I am using HttpResponseRedirect... it still seems to allow a
> duplicate post though if refresh is hit on the page it's been
> redirected to.
Is this happening when a user clicks the Submit button twice
before the redirect comes in (thus Django processes two requests
from the same
solution:
user_extended_profile.userextendedprofilefavourites_set.all().delete()
before inserting the new related object works.
Am 05.07.2007 um 15:44 schrieb va:patrick.kranzlmueller:
>
> I´m having trouble using newforms with an intermediary table
> (although I´m not sure that my problem
Hi,
from django.utils.translation import ugettext as _
My guess is that if you import ugettext, then you should supply a
Unicode string as an argument:
def index(request):
teststring = _(u"Lösung")
[...]
(notice the 'u' before the string).
That works here, at least using an utf-8
I would make a pickle field, too.
I tried this:
-
class Preference(models.Model):
...
def _get_value(self):
return pickle.loads(self._value)
def _set_value(self, value):
self._value =
Hi Todd --
You might find writing those "nested" template tags a bit tricky;
there's a not-very-well-documented method you'll need to pull out the
sub-tags.
I've got an example of how you can do these types of nested tags here:
http://www.djangosnippets.org/snippets/300/
Good luck!
Jacob
I have an "Event" model that has a foreignkey relationship with
"Club", and I'm using form_for_model to create the form. This spits
out all "Club" entries in a dropdown.
The trick is, "Club" has a boolean field for "approved", and I want to
filter according to that.
So, is there some way to
It' seems that the md5 is not a middleware, but you have write it in the
setting.py file's middleware setting part.
- Original Message -
From: "e-gor" <[EMAIL PROTECTED]>
To: "Django users"
Sent: Friday, July 06, 2007 2:59 AM
Subject: No module named _md5
I have python 2.5.1, django report errors:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/mod_python/apache.py",
line 193, in Dispatch
result = object(req)
File
so what should i do? :) i'm newby :) there are no md5 module
requirements in the setting.py
On 5 июл, 22:13, "nick feng" <[EMAIL PROTECTED]> wrote:
> It' seems that the md5 is not a middleware, but you have write it in the
> setting.py file's middleware setting part.
>
> - Original Message
I'll have to check with my QA person to see exactly what they are
doing. Perhaps they didn't tell me everything and they are hitting
the back button... then going forward again...
I've only gotten this to happen once, and had a bug on that page where
I was saving twice..heh :)
On Jul 5, 11:13
I'm trying to use the SelectDateTime widget but I can't figure out how
to get it to correctly display a value retrieved from a database. For
example:
client = Client.objects.get(Client_ID=client_id)
ClientForm = forms.models.form_for_instance(client)
ClientForm.base_fields['Birth_Dat'].widget =
I take it you're using a default {{form}} view instead of outputting
your own?
If you output your own, it's as simple as using the |date:"" filter.
On Jul 5, 3:09 pm, Bob Dively <[EMAIL PROTECTED]> wrote:
> I'm trying to use the SelectDateTime widget but I can't figure out how
> to get it to
Im having such a hard time transitioning from ROR to Django and I am
looking for instructions to make a photo app.
Can anybody help out a newby??
I been experimenting with making the app I been using the Google video
that Jacob comes out in as a reference but I cant get the images to
show
On Jul 5, 4:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I take it you're using a default {{form}} view instead of outputting
> your own?
> If you output your own, it's as simple as using the |date:"" filter.
It's not a formatting problem. I can't figure out how to get the
correct
e-gor wrote:
> so what should i do? :) i'm newby :) there are no md5 module
> requirements in the setting.py
>
> On 5 июл, 22:13, "nick feng" <[EMAIL PROTECTED]> wrote:
>> It' seems that the md5 is not a middleware, but you have write it in the
>> setting.py file's middleware setting part.
>>
Exactly what sort of photo app are you trying to build?
What text is it outputting?
Where are the images?
On Jul 5, 3:25 pm, Naco <[EMAIL PROTECTED]> wrote:
> Im having such a hard time transitioning from ROR to Django and I am
> looking for instructions to make a photo app.
>
> Can anybody help
On Jul 5, 10:13 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> ...
> To prevent this, you need to uniquely identify the page from
> which it was submitted (a hash of the IP address, timestamp the
> form was generated, user info, whatever) ...
You might want to consider a uuid:
import uuid
If you haven't already, check out http://www.aswmc.com/dbmigration/
It's quite a good solution for migration.
I've been writing a wrapper on top of that to handle auto-migration,
which I'm mostly happy with. Just have to tie some loose ends and I'll
put it up somewhere to share.
Or you could do {{ "class1,class2,class3,class4"|split:","|random }}
(you'd need to make the |split filter too, Django only comes with |
join)
On Jul 4, 3:21 pm, Bryan Veloso <[EMAIL PROTECTED]> wrote:
> > If you want to hardcode the availability of the 'classes' variable in
> > every context
Thanks for the help guys. Splitting the models up was mostly a
cosmetic thing for the admin, but these problems quickly kicked me out
of that state. Anyway, yes, the database design is really bad, mostly
because that's not what the game developers are experts at
unfortunately.
Oh also, I thought OneToOneFields were discouraged in favor of
ForeignKeys with unique=True as per
http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
thank you for replying so fast
Well im looking for tutorials on building a simple photo app to start
with
i started to mess around with the following in my models.py
from django.db.models import *
# Create your models here.
class photo(Model):
image= ImageField(upload_to="photos/")
Could anyone help me identify if the error message below (from apache log)
might be a network/apache error or something in my Django/python code. My
site is deployed using apache and mod_python.
[error] [client ] PythonHandler django.core.handlers.modpython: Traceback
(most recent call last):,
On 7/6/07, SmileyChris <[EMAIL PROTECTED]> wrote:
>
> If you haven't already, check out http://www.aswmc.com/dbmigration/
>
> It's quite a good solution for migration.
> I've been writing a wrapper on top of that to handle auto-migration,
> which I'm mostly happy with. Just have to tie some loose
On 7/6/07, Naco <[EMAIL PROTECTED]> wrote:
>
Please don't use ---+++ highlighting for the subject of messages when
writing to this list. Its very impolite.
Yours,
Russ Magee %-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
sorry didnt mean to
On Jul 5, 7:07 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 7/6/07, Naco <[EMAIL PROTECTED]> wrote:
>
>
>
> Please don't use ---+++ highlighting for the subject of messages when
> writing to this list. Its very impolite.
>
> Yours,
> Russ Magee %-)
I can't get a form to validate and for the life of me, can't figure
out why.
I keep getting an error on the topics. Regardless of how many I
choose, it returns an "Enter a list of values." error. It looks like
even though the form returns a list of topics, it doesn't send the
list to the
Hello all,
I'm having some issues getting a basic django project in production
mode.
I'm using Ubuntu 6.06 LTS with the default versions of apache, python,
mod_python, etc.
- I've checked out the development version of Django in my home
directory, i.e. /home/john-scott/workspace/django_src and
Hello,
Your problem could be that the permissions to /home/john-scott do not
allow directory traversal down into this directory for "other" users.
You probably need to do:
$ chmod 0755 /home/john-scott
$ chmod 0755 /home/john-scott/workspace
$ cd /home/john-scott/workspace
$ find -type d |
Try adding the following in the location block:
PythonPath "['/home/john-scott/workspace'] + sys.path"
Vincent
On 7/5/07 9:03 PM, "John-Scott" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I'm having some issues getting a basic django project in production
> mode.
>
> I'm using Ubuntu
On Jul 6, 9:38 am, Vincent Nijs <[EMAIL PROTECTED]>
wrote:
> Could anyone help me identify if the error message below (from apache log)
> might be a network/apache error or something in my Django/python code. My
> site is deployed using apache and mod_python.
>
> [error] [client ] PythonHandler
Thanks for the prompt replies.
@Nimrod - You were right about the permissions on /home/john-scott/
workspace, chmod 755 fixed that. But I still have to have the django
development code in /opt to get it to load. Any ideas why symlinking
to /home/john-scott/workspace/django_src/django doesn't
On 7/5/07, John-Scott <[EMAIL PROTECTED]> wrote:
> @Nimrod - You were right about the permissions on /home/john-scott/
> workspace, chmod 755 fixed that. But I still have to have the django
> development code in /opt to get it to load. Any ideas why symlinking
> to
Thanks! I'd actually thought about how to do this, but it's nice to have
real code...
On Thu, 2007-07-05 at 13:50 -0500, Jacob Kaplan-Moss wrote:
> Hi Todd --
>
> You might find writing those "nested" template tags a bit tricky;
> there's a not-very-well-documented method you'll need to pull
On Jul 5, 11:33 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> You want to have the 'django_src' directory linked onto your Python
> path, not the 'django' directory -- the Python path should contain the
> *parent* directories of any modules you want Python to be able to
> find.
According to
On 7/5/07, John-Scott <[EMAIL PROTECTED]> wrote:
> (i.e. MEDIA_ROOT, MEDIA_URL, ADMIN_MEDIA_PREFIX) are
> supposed to interact with the Apache config. back to the docs...
MEDIA_ROOT is used for uploads (like FileField and ImageField.
MEDIA_URL should be the service URL matching MEDIA_ROOT; it is
On Jul 6, 1:24 pm, John-Scott <[EMAIL PROTECTED]> wrote:
> @Vincent - Is specifying the path necessary because I'm using the
> development version of django and not an official installer? In the
> official docs it says you only have to specify the path "if you've
> manually altered your
In one of the applications I maintain, I use a view that takes the
following inputs, crunches a lot of data from over the course of a
month, and spits out a view:
def month_detail(request, year, month, check=True):
This could be the current month, the previous month, a month 3 years
ago, etc.
On Jul 6, 12:29 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> Hmmm, I'm not sure the documentation is actually accurate. When you
> use manage.py to run up development server for Django, it will
> automatically add the parent directory of where the manage.py file is
> located into sys.path
On 7/5/07, Clint Ecker <[EMAIL PROTECTED]> wrote:
> It would be super cool to invalidate the cache (or not) at the
> moment I update the data, but it's not mission critical.
How's the data updated? Need to know how to get the update info to
the cache. :)
> Long story short, my current
On 7/5/07, John-Scott <[EMAIL PROTECTED]> wrote:
> In my settings.py, I now have:
> MEDIA_ROOT = '/var/www/mysite.com/media/'
> MEDIA_URL = 'http://mysite.com/media/'
> ADMIN_MEDIA_PREFIX = '/media/'
Err, I don't have my code or settings file handy. This is the kind
of thing you forget, since
76 matches
Mail list logo